forked from raess1/PyVESC-FW3.33
-
Notifications
You must be signed in to change notification settings - Fork 0
/
motor1.xml
127 lines (127 loc) · 6.25 KB
/
motor1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<MCConfiguration>
<l_watt_min>-15000</l_watt_min>
<m_drv8301_oc_mode>0</m_drv8301_oc_mode>
<foc_sensor_mode>1</foc_sensor_mode>
<m_bldc_f_sw_min>3000</m_bldc_f_sw_min>
<foc_current_kp>0.0148</foc_current_kp>
<s_pid_min_erpm>0</s_pid_min_erpm>
<foc_pll_kp>2000</foc_pll_kp>
<cc_min_current>0.1</cc_min_current>
<foc_encoder_offset>30</foc_encoder_offset>
<m_dc_f_sw>35000</m_dc_f_sw>
<cc_startup_boost_duty>0.01</cc_startup_boost_duty>
<l_temp_motor_end>100</l_temp_motor_end>
<l_min_erpm>-100000</l_min_erpm>
<foc_pll_ki>40000</foc_pll_ki>
<comm_mode>0</comm_mode>
<sl_max_fullbreak_current_dir_change>10</sl_max_fullbreak_current_dir_change>
<pwm_mode>1</pwm_mode>
<foc_sl_openloop_time>0.1</foc_sl_openloop_time>
<m_fault_stop_time_ms>500</m_fault_stop_time_ms>
<foc_hall_table_1>255</foc_hall_table_1>
<hall_table_6>4</hall_table_6>
<l_temp_fet_start>85</l_temp_fet_start>
<l_current_min>-10</l_current_min>
<motor_type>2</motor_type>
<l_min_vin>8</l_min_vin>
<foc_f_sw>30000</foc_f_sw>
<sl_phase_advance_at_br>0.8</sl_phase_advance_at_br>
<hall_table_2>3</hall_table_2>
<l_abs_current_max>100</l_abs_current_max>
<l_battery_cut_end>18.6</l_battery_cut_end>
<foc_observer_gain_slow>0.3</foc_observer_gain_slow>
<foc_hall_table_2>255</foc_hall_table_2>
<foc_encoder_ratio>20</foc_encoder_ratio>
<foc_sl_openloop_hyst>0.1</foc_sl_openloop_hyst>
<l_max_vin>57</l_max_vin>
<l_temp_motor_start>85</l_temp_motor_start>
<m_drv8301_oc_adj>16</m_drv8301_oc_adj>
<motor_quality_description><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-size:11pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Some comments about the motor quality. Images can be added as well.</p></body></html></motor_quality_description>
<foc_hall_table_3>255</foc_hall_table_3>
<foc_encoder_inverted>1</foc_encoder_inverted>
<sl_cycle_int_rpm_br>80000</sl_cycle_int_rpm_br>
<cc_gain>0.0046</cc_gain>
<foc_hall_table_7>255</foc_hall_table_7>
<m_invert_direction>0</m_invert_direction>
<motor_loss_torque>0.03</motor_loss_torque>
<l_max_erpm_fbrake>300</l_max_erpm_fbrake>
<motor_quality_bearings>0</motor_quality_bearings>
<foc_temp_comp_base_temp>25</foc_temp_comp_base_temp>
<motor_description><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-size:11pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A motor description can be edited here.</p></body></html></motor_description>
<hall_table_7>-1</hall_table_7>
<motor_poles>20</motor_poles>
<motor_quality_magnets>0</motor_quality_magnets>
<l_min_duty>0.005</l_min_duty>
<foc_hall_table_0>255</foc_hall_table_0>
<foc_duty_dowmramp_ki>200</foc_duty_dowmramp_ki>
<p_pid_kp>0.06</p_pid_kp>
<p_pid_ki>0.0</p_pid_ki>
<p_pid_kd>0.0004</p_pid_kd>
<s_pid_kp>0.011</s_pid_kp>
<s_pid_ki>0.0004</s_pid_ki>
<s_pid_kd>0.0</s_pid_kd>
<l_temp_accel_dec>0.15</l_temp_accel_dec>
<l_max_duty>0.95</l_max_duty>
<l_slow_abs_current>1</l_slow_abs_current>
<foc_hall_table_6>255</foc_hall_table_6>
<foc_temp_comp>0</foc_temp_comp>
<foc_openloop_rpm>500</foc_openloop_rpm>
<foc_duty_dowmramp_kp>10</foc_duty_dowmramp_kp>
<foc_hall_table_5>255</foc_hall_table_5>
<sl_min_erpm_cycle_int_limit>1100</sl_min_erpm_cycle_int_limit>
<foc_motor_r>0.0374</foc_motor_r>
<l_temp_fet_end>100</l_temp_fet_end>
<foc_motor_flux_linkage>0.002732</foc_motor_flux_linkage>
<l_current_max>10</l_current_max>
<foc_sl_erpm>8000</foc_sl_erpm>
<motor_quality_construction>0</motor_quality_construction>
<l_in_current_max>60</l_in_current_max>
<foc_hall_table_4>255</foc_hall_table_4>
<l_max_erpm_fbrake_cc>1500</l_max_erpm_fbrake_cc>
<foc_sl_d_current_duty>0</foc_sl_d_current_duty>
<m_current_backoff_gain>0.5</m_current_backoff_gain>
<foc_sat_comp>0</foc_sat_comp>
<cc_ramp_step_max>0.04</cc_ramp_step_max>
<m_encoder_counts>16384</m_encoder_counts>
<m_ntc_motor_beta>3380</m_ntc_motor_beta>
<s_pid_allow_braking>1</s_pid_allow_braking>
<hall_table_4>5</hall_table_4>
<m_duty_ramp_step>0.02</m_duty_ramp_step>
<hall_table_3>2</hall_table_3>
<sl_bemf_coupling_k>600</sl_bemf_coupling_k>
<motor_brand>9235 100kv</motor_brand>
<motor_sensor_type>0</motor_sensor_type>
<foc_sample_v0_v7>0</foc_sample_v0_v7>
<l_max_erpm>100000</l_max_erpm>
<foc_dt_us>0.08</foc_dt_us>
<m_sensor_port_mode>2</m_sensor_port_mode>
<motor_weight>0</motor_weight>
<l_battery_cut_start>20.4</l_battery_cut_start>
<foc_sl_d_current_factor>0</foc_sl_d_current_factor>
<sensor_mode>0</sensor_mode>
<m_bldc_f_sw_max>40000</m_bldc_f_sw_max>
<motor_model>Not Specified</motor_model>
<sl_cycle_int_limit>62</sl_cycle_int_limit>
<l_watt_max>15000</l_watt_max>
<hall_table_5>6</hall_table_5>
<hall_table_1>1</hall_table_1>
<hall_sl_erpm>2000</hall_sl_erpm>
<sl_min_erpm>150</sl_min_erpm>
<foc_current_ki>37.42</foc_current_ki>
<hall_table_0>-1</hall_table_0>
<foc_observer_gain>1.3398e+8</foc_observer_gain>
<foc_sample_high_current>0</foc_sample_high_current>
<l_in_current_min>-40</l_in_current_min>
<p_pid_ang_div>1</p_pid_ang_div>
<foc_motor_l>1.476e-5</foc_motor_l>
<l_erpm_start>0.5</l_erpm_start>
</MCConfiguration>