Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <MCConfiguration>
  3.     <pwm_mode>1</pwm_mode>
  4.     <comm_mode>0</comm_mode>
  5.     <motor_type>0</motor_type>
  6.     <sensor_mode>0</sensor_mode>
  7.     <l_current_max>37.412</l_current_max>
  8.     <l_current_min>-37.412</l_current_min>
  9.     <l_in_current_max>99</l_in_current_max>
  10.     <l_in_current_min>-60</l_in_current_min>
  11.     <l_abs_current_max>130</l_abs_current_max>
  12.     <l_min_erpm>-100000</l_min_erpm>
  13.     <l_max_erpm>100000</l_max_erpm>
  14.     <l_erpm_start>0.8</l_erpm_start>
  15.     <l_max_erpm_fbrake>300</l_max_erpm_fbrake>
  16.     <l_max_erpm_fbrake_cc>1500</l_max_erpm_fbrake_cc>
  17.     <l_min_vin>8</l_min_vin>
  18.     <l_max_vin>57</l_max_vin>
  19.     <l_battery_cut_start>6</l_battery_cut_start>
  20.     <l_battery_cut_end>6</l_battery_cut_end>
  21.     <l_slow_abs_current>1</l_slow_abs_current>
  22.     <l_temp_fet_start>85</l_temp_fet_start>
  23.     <l_temp_fet_end>100</l_temp_fet_end>
  24.     <l_temp_motor_start>85</l_temp_motor_start>
  25.     <l_temp_motor_end>100</l_temp_motor_end>
  26.     <l_temp_accel_dec>0.15</l_temp_accel_dec>
  27.     <l_min_duty>0.005</l_min_duty>
  28.     <l_max_duty>0.95</l_max_duty>
  29.     <l_watt_max>1.5e+06</l_watt_max>
  30.     <l_watt_min>-1.5e+06</l_watt_min>
  31.     <l_current_max_scale>1</l_current_max_scale>
  32.     <l_current_min_scale>1</l_current_min_scale>
  33.     <sl_min_erpm>150</sl_min_erpm>
  34.     <sl_min_erpm_cycle_int_limit>1100</sl_min_erpm_cycle_int_limit>
  35.     <sl_max_fullbreak_current_dir_change>10</sl_max_fullbreak_current_dir_change>
  36.     <sl_cycle_int_limit>341.8</sl_cycle_int_limit>
  37.     <sl_phase_advance_at_br>0.8</sl_phase_advance_at_br>
  38.     <sl_cycle_int_rpm_br>80000</sl_cycle_int_rpm_br>
  39.     <sl_bemf_coupling_k>327.44</sl_bemf_coupling_k>
  40.     <hall_table__0>-1</hall_table__0>
  41.     <hall_table__1>1</hall_table__1>
  42.     <hall_table__2>3</hall_table__2>
  43.     <hall_table__3>2</hall_table__3>
  44.     <hall_table__4>5</hall_table__4>
  45.     <hall_table__5>6</hall_table__5>
  46.     <hall_table__6>4</hall_table__6>
  47.     <hall_table__7>-1</hall_table__7>
  48.     <hall_sl_erpm>2000</hall_sl_erpm>
  49.     <foc_current_kp>0.0195</foc_current_kp>
  50.     <foc_current_ki>13.55</foc_current_ki>
  51.     <foc_f_sw>25000</foc_f_sw>
  52.     <foc_dt_us>0.12</foc_dt_us>
  53.     <foc_encoder_inverted>0</foc_encoder_inverted>
  54.     <foc_encoder_offset>180</foc_encoder_offset>
  55.     <foc_encoder_ratio>7</foc_encoder_ratio>
  56.     <foc_encoder_sin_gain>1</foc_encoder_sin_gain>
  57.     <foc_encoder_cos_gain>1</foc_encoder_cos_gain>
  58.     <foc_encoder_sin_offset>1.65</foc_encoder_sin_offset>
  59.     <foc_encoder_cos_offset>1.65</foc_encoder_cos_offset>
  60.     <foc_encoder_sincos_filter_constant>0.5</foc_encoder_sincos_filter_constant>
  61.     <foc_sensor_mode>0</foc_sensor_mode>
  62.     <foc_pll_kp>2000</foc_pll_kp>
  63.     <foc_pll_ki>30000</foc_pll_ki>
  64.     <foc_motor_l>7.808e-05</foc_motor_l>
  65.     <foc_motor_r>0.0542</foc_motor_r>
  66.     <foc_motor_flux_linkage>0.013487</foc_motor_flux_linkage>
  67.     <foc_observer_gain>1.01e+06</foc_observer_gain>
  68.     <foc_observer_gain_slow>0.3</foc_observer_gain_slow>
  69.     <foc_duty_dowmramp_kp>10</foc_duty_dowmramp_kp>
  70.     <foc_duty_dowmramp_ki>200</foc_duty_dowmramp_ki>
  71.     <foc_openloop_rpm>300</foc_openloop_rpm>
  72.     <foc_sl_openloop_hyst>0.1</foc_sl_openloop_hyst>
  73.     <foc_sl_openloop_time>0.1</foc_sl_openloop_time>
  74.     <foc_sl_d_current_duty>0</foc_sl_d_current_duty>
  75.     <foc_sl_d_current_factor>0</foc_sl_d_current_factor>
  76.     <foc_hall_table__0>255</foc_hall_table__0>
  77.     <foc_hall_table__1>255</foc_hall_table__1>
  78.     <foc_hall_table__2>255</foc_hall_table__2>
  79.     <foc_hall_table__3>255</foc_hall_table__3>
  80.     <foc_hall_table__4>255</foc_hall_table__4>
  81.     <foc_hall_table__5>255</foc_hall_table__5>
  82.     <foc_hall_table__6>255</foc_hall_table__6>
  83.     <foc_hall_table__7>255</foc_hall_table__7>
  84.     <foc_sl_erpm>2000</foc_sl_erpm>
  85.     <foc_sample_v0_v7>0</foc_sample_v0_v7>
  86.     <foc_sample_high_current>0</foc_sample_high_current>
  87.     <foc_sat_comp>0</foc_sat_comp>
  88.     <foc_temp_comp>0</foc_temp_comp>
  89.     <foc_temp_comp_base_temp>25</foc_temp_comp_base_temp>
  90.     <foc_current_filter_const>0.1</foc_current_filter_const>
  91.     <foc_cc_decoupling>2</foc_cc_decoupling>
  92.     <foc_observer_type>0</foc_observer_type>
  93.     <foc_hfi_voltage_start>20</foc_hfi_voltage_start>
  94.     <foc_hfi_voltage_run>4</foc_hfi_voltage_run>
  95.     <foc_hfi_voltage_max>10</foc_hfi_voltage_max>
  96.     <foc_sl_erpm_hfi>2000</foc_sl_erpm_hfi>
  97.     <foc_hfi_start_samples>65</foc_hfi_start_samples>
  98.     <foc_hfi_obs_ovr_sec>0.001</foc_hfi_obs_ovr_sec>
  99.     <foc_hfi_samples>1</foc_hfi_samples>
  100.     <gpd_buffer_notify_left>200</gpd_buffer_notify_left>
  101.     <gpd_buffer_interpol>0</gpd_buffer_interpol>
  102.     <gpd_current_filter_const>0.1</gpd_current_filter_const>
  103.     <gpd_current_kp>0.03</gpd_current_kp>
  104.     <gpd_current_ki>50</gpd_current_ki>
  105.     <s_pid_kp>0.004</s_pid_kp>
  106.     <s_pid_ki>0.004</s_pid_ki>
  107.     <s_pid_kd>0.0001</s_pid_kd>
  108.     <s_pid_kd_filter>0.2</s_pid_kd_filter>
  109.     <s_pid_min_erpm>900</s_pid_min_erpm>
  110.     <s_pid_allow_braking>1</s_pid_allow_braking>
  111.     <p_pid_kp>0.03</p_pid_kp>
  112.     <p_pid_ki>0</p_pid_ki>
  113.     <p_pid_kd>0.0004</p_pid_kd>
  114.     <p_pid_kd_filter>0.2</p_pid_kd_filter>
  115.     <p_pid_ang_div>1</p_pid_ang_div>
  116.     <cc_startup_boost_duty>0.01</cc_startup_boost_duty>
  117.     <cc_min_current>0.05</cc_min_current>
  118.     <cc_gain>0.0046</cc_gain>
  119.     <cc_ramp_step_max>0.04</cc_ramp_step_max>
  120.     <m_fault_stop_time_ms>500</m_fault_stop_time_ms>
  121.     <m_duty_ramp_step>0.02</m_duty_ramp_step>
  122.     <m_current_backoff_gain>0.5</m_current_backoff_gain>
  123.     <m_encoder_counts>8192</m_encoder_counts>
  124.     <m_sensor_port_mode>0</m_sensor_port_mode>
  125.     <m_invert_direction>0</m_invert_direction>
  126.     <m_drv8301_oc_mode>0</m_drv8301_oc_mode>
  127.     <m_drv8301_oc_adj>16</m_drv8301_oc_adj>
  128.     <m_bldc_f_sw_min>3000</m_bldc_f_sw_min>
  129.     <m_bldc_f_sw_max>35000</m_bldc_f_sw_max>
  130.     <m_dc_f_sw>25000</m_dc_f_sw>
  131.     <m_ntc_motor_beta>3380</m_ntc_motor_beta>
  132.     <m_out_aux_mode>0</m_out_aux_mode>
  133.     <m_motor_temp_sens_type>0</m_motor_temp_sens_type>
  134.     <m_ptc_motor_coeff>0.61</m_ptc_motor_coeff>
  135.     <si_motor_poles>46</si_motor_poles>
  136.     <si_gear_ratio>1</si_gear_ratio>
  137.     <si_wheel_diameter>0.3048</si_wheel_diameter>
  138.     <si_battery_type>2</si_battery_type>
  139.     <si_battery_cells>2</si_battery_cells>
  140.     <si_battery_ah>9</si_battery_ah>
  141.     <motor_brand>Unnamed</motor_brand>
  142.     <motor_model>Not Specified</motor_model>
  143.     <motor_weight>0</motor_weight>
  144.     <motor_poles>14</motor_poles>
  145.     <motor_sensor_type>0</motor_sensor_type>
  146.     <motor_description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
  147. &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
  148. p, li { white-space: pre-wrap; }
  149. &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
  150. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;A motor description can be edited here.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</motor_description>
  151.     <motor_loss_torque>0.03</motor_loss_torque>
  152.     <motor_quality_bearings>0</motor_quality_bearings>
  153.     <motor_quality_magnets>0</motor_quality_magnets>
  154.     <motor_quality_construction>0</motor_quality_construction>
  155.     <motor_quality_description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
  156. &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
  157. p, li { white-space: pre-wrap; }
  158. &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
  159. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Some comments about the motor quality. Images can be added as well.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</motor_quality_description>
  160. </MCConfiguration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement