Struct mc_configuration
Defined in File datatypes.hpp
Struct Documentation
-
struct mc_configuration
Public Members
-
mc_pwm_mode pwm_mode
-
mc_comm_mode comm_mode
-
mc_motor_type motor_type
-
mc_sensor_mode sensor_mode
-
float l_current_max
-
float l_current_min
-
float l_in_current_max
-
float l_in_current_min
-
float l_abs_current_max
-
float l_min_erpm
-
float l_max_erpm
-
float l_erpm_start
-
float l_max_erpm_fbrake
-
float l_max_erpm_fbrake_cc
-
float l_min_vin
-
float l_max_vin
-
float l_battery_cut_start
-
float l_battery_cut_end
-
bool l_slow_abs_current
-
float l_temp_fet_start
-
float l_temp_fet_end
-
float l_temp_motor_start
-
float l_temp_motor_end
-
float l_temp_accel_dec
-
float l_min_duty
-
float l_max_duty
-
float l_watt_max
-
float l_watt_min
-
float l_current_max_scale
-
float l_current_min_scale
-
float l_duty_start
-
float lo_current_max
-
float lo_current_min
-
float lo_in_current_max
-
float lo_in_current_min
-
float lo_current_motor_max_now
-
float lo_current_motor_min_now
-
float sl_min_erpm
-
float sl_min_erpm_cycle_int_limit
-
float sl_max_fullbreak_current_dir_change
-
float sl_cycle_int_limit
-
float sl_phase_advance_at_br
-
float sl_cycle_int_rpm_br
-
float sl_bemf_coupling_k
-
int8_t hall_table[8]
-
float hall_sl_erpm
-
float foc_current_kp
-
float foc_current_ki
-
float foc_f_sw
-
float foc_dt_us
-
float foc_encoder_offset
-
bool foc_encoder_inverted
-
float foc_encoder_ratio
-
float foc_encoder_sin_offset
-
float foc_encoder_sin_gain
-
float foc_encoder_cos_offset
-
float foc_encoder_cos_gain
-
float foc_encoder_sincos_filter_constant
-
float foc_motor_l
-
float foc_motor_r
-
float foc_motor_flux_linkage
-
float foc_observer_gain
-
float foc_observer_gain_slow
-
float foc_pll_kp
-
float foc_pll_ki
-
float foc_duty_dowmramp_kp
-
float foc_duty_dowmramp_ki
-
float foc_openloop_rpm
-
float foc_sl_openloop_hyst
-
float foc_sl_openloop_time
-
float foc_sl_d_current_duty
-
float foc_sl_d_current_factor
-
mc_foc_sensor_mode foc_sensor_mode
-
uint8_t foc_hall_table[8]
-
float foc_sl_erpm
-
bool foc_sample_v0_v7
-
bool foc_sample_high_current
-
float foc_sat_comp
-
bool foc_temp_comp
-
float foc_temp_comp_base_temp
-
float foc_current_filter_const
-
mc_foc_cc_decoupling_mode foc_cc_decoupling
-
mc_foc_observer_type foc_observer_type
-
float foc_hfi_voltage_start
-
float foc_hfi_voltage_run
-
float foc_hfi_voltage_max
-
float foc_sl_erpm_hfi
-
uint16_t foc_hfi_start_samples
-
float foc_hfi_obs_ovr_sec
-
FOC_HFI_SAMPLES foc_hfi_samples
-
int gpd_buffer_notify_left
-
int gpd_buffer_interpol
-
float gpd_current_filter_const
-
float gpd_current_kp
-
float gpd_current_ki
-
float s_pid_kp
-
float s_pid_ki
-
float s_pid_kd
-
float s_pid_kd_filter
-
float s_pid_min_erpm
-
bool s_pid_allow_braking
-
float p_pid_kp
-
float p_pid_ki
-
float p_pid_kd
-
float p_pid_kd_filter
-
float p_pid_ang_div
-
float cc_startup_boost_duty
-
float cc_min_current
-
float cc_gain
-
float cc_ramp_step_max
-
int32_t m_fault_stop_time_ms
-
float m_duty_ramp_step
-
float m_current_backoff_gain
-
uint32_t m_encoder_counts
-
sensor_port_mode m_sensor_port_mode
-
bool m_invert_direction
-
drv8301_oc_mode m_drv8301_oc_mode
-
int m_drv8301_oc_adj
-
float m_bldc_f_sw_min
-
float m_bldc_f_sw_max
-
float m_dc_f_sw
-
float m_ntc_motor_beta
-
out_aux_mode m_out_aux_mode
-
temp_sensor_type m_motor_temp_sens_type
-
float m_ptc_motor_coeff
-
uint8_t si_motor_poles
-
float si_gear_ratio
-
float si_wheel_diameter
-
BATTERY_TYPE si_battery_type
-
int si_battery_cells
-
float si_battery_ah
-
mc_pwm_mode pwm_mode