|
MCU
|
#include <DrivetrainSystem.h>

Public Member Functions | |
| DrivetrainSystem (const std::array< InverterType *, 4 > &inverters, MCUInterface *mcu_interface, int init_time_limit_ms, uint16_t min_hv_voltage=60, int min_cmd_period_ms=1, float max_torque_setpoint_nm=21.42) | |
| order of array: 0: FL, 1: FR, 2: RL, 3: RR More... | |
| void | tick (const SysTick_s &tick) |
| void | setup_retry () |
| bool | handle_inverter_startup (unsigned long curr_time) |
| void | command_drivetrain_no_torque () |
| void | command_drivetrain_debug () |
| bool | inverter_init_timeout (unsigned long curr_time) |
| bool | hv_over_threshold_on_drivetrain () |
| void | disable () |
| void | disable_no_pins () |
| bool | drivetrain_error_occured () |
| void | reset_drivetrain () |
| void | command_drivetrain (const DrivetrainCommand_s &data) |
| void | enable_drivetrain_reset () |
| void | check_reset_condition () |
| DrivetrainDynamicReport_s | get_dynamic_data () |
Private Member Functions | |
| void | enable_drivetrain_hv_ (unsigned long curr_time) |
| void | request_enable_ () |
| bool | drivetrain_ready_ () |
| bool | check_drivetrain_quit_dc_on_ () |
| bool | drivetrain_enabled_ () |
Private Attributes | |
| std::array< InverterType *, 4 > | inverters_ |
| MCUInterface * | mcu_interface_ |
| int | init_time_limit_ms_ |
| uint16_t | min_hv_voltage_ |
| int | motor_pole_pairs_ |
| float | lambda_magnetic_flux_wb_ |
| float | L_d_inductance_H_ |
| bool | hv_en_requested_ |
| bool | enable_requested_ |
| bool | reset_requested_ |
| unsigned long | last_reset_pressed_time_ |
| unsigned long | reset_interval_ |
| unsigned long | curr_system_millis_ |
| unsigned int | min_cmd_period_ |
| unsigned long | last_no_torque_cmd_time_ |
| unsigned long | last_reset_cmd_time_ |
| unsigned long | last_disable_cmd_time_ |
| unsigned long | last_general_cmd_time_ |
| unsigned long | drivetrain_initialization_phase_start_time_ |
| DrivetrainCommand_s | current_drivetrain_command_ |
| DrivetrainDynamicReport_s | dynamic_data_ |
| float | max_torque_setpoint_nm_ |
Definition at line 13 of file DrivetrainSystem.h.
|
inline |
order of array: 0: FL, 1: FR, 2: RL, 3: RR
| inverters | inverter pointers |
Definition at line 18 of file DrivetrainSystem.h.
|
private |
| void DrivetrainSystem< InverterType >::check_reset_condition | ( | ) |
| void DrivetrainSystem< InverterType >::command_drivetrain | ( | const DrivetrainCommand_s & | data | ) |
| void DrivetrainSystem< InverterType >::command_drivetrain_debug | ( | ) |
| void DrivetrainSystem< InverterType >::command_drivetrain_no_torque | ( | ) |
| void DrivetrainSystem< InverterType >::disable | ( | ) |
| void DrivetrainSystem< InverterType >::disable_no_pins | ( | ) |
|
private |
| bool DrivetrainSystem< InverterType >::drivetrain_error_occured | ( | ) |
|
private |
|
private |
| curr_time | current system tick time (millis()) that sets the init phase start time |
| void DrivetrainSystem< InverterType >::enable_drivetrain_reset | ( | ) |
| DrivetrainDynamicReport_s DrivetrainSystem< InverterType >::get_dynamic_data | ( | ) |
| bool DrivetrainSystem< InverterType >::handle_inverter_startup | ( | unsigned long | curr_time | ) |
| bool DrivetrainSystem< InverterType >::hv_over_threshold_on_drivetrain | ( | ) |
| bool DrivetrainSystem< InverterType >::inverter_init_timeout | ( | unsigned long | curr_time | ) |
|
private |
| void DrivetrainSystem< InverterType >::reset_drivetrain | ( | ) |
|
inline |
Definition at line 39 of file DrivetrainSystem.h.
| void DrivetrainSystem< InverterType >::tick | ( | const SysTick_s & | tick | ) |
|
private |
Definition at line 90 of file DrivetrainSystem.h.
|
private |
Definition at line 95 of file DrivetrainSystem.h.
|
private |
Definition at line 94 of file DrivetrainSystem.h.
|
private |
Definition at line 96 of file DrivetrainSystem.h.
|
private |
Definition at line 73 of file DrivetrainSystem.h.
|
private |
Definition at line 73 of file DrivetrainSystem.h.
|
private |
Definition at line 68 of file DrivetrainSystem.h.
|
private |
Definition at line 66 of file DrivetrainSystem.h.
|
private |
Definition at line 71 of file DrivetrainSystem.h.
|
private |
Definition at line 71 of file DrivetrainSystem.h.
|
private |
Definition at line 92 of file DrivetrainSystem.h.
|
private |
Definition at line 92 of file DrivetrainSystem.h.
|
private |
Definition at line 92 of file DrivetrainSystem.h.
|
private |
Definition at line 92 of file DrivetrainSystem.h.
|
private |
Definition at line 76 of file DrivetrainSystem.h.
|
private |
Definition at line 97 of file DrivetrainSystem.h.
|
private |
Definition at line 67 of file DrivetrainSystem.h.
|
private |
Definition at line 91 of file DrivetrainSystem.h.
|
private |
Definition at line 69 of file DrivetrainSystem.h.
|
private |
Definition at line 70 of file DrivetrainSystem.h.
|
private |
Definition at line 77 of file DrivetrainSystem.h.
|
private |
Definition at line 75 of file DrivetrainSystem.h.