![]() |
Midnight Sun Firmware
|
Data for the display, CAN RX or internal. More...
#include <steering.h>
Public Attributes | |
| uint8_t | pedal_percentage |
| uint8_t | brake_percentage |
| int16_t | motor_heatsink_temp |
| int16_t | motor_temp |
| int16_t | vehicle_velocity |
| int16_t | motor_velocity |
| uint16_t | bps_fault |
| uint8_t | bps_fault_cell |
| uint16_t | ws22_flags |
| float | state_of_charge |
| int16_t | dcdc_voltage |
| int16_t | dcdc_current |
| int16_t | aux_voltage |
| int16_t | aux_current |
| uint16_t | pack_voltage |
| uint16_t | cell_voltages [36] |
| uint16_t | motor_bus_voltage |
| uint16_t | pack_current |
| uint16_t | min_cell_voltage_mv |
| uint16_t | max_cell_voltage_mv |
| uint16_t | max_cell_temp |
| VehicleDriveState | drive_state |
| uint8_t | brake_enabled |
| uint8_t | regen_enabled |
| uint8_t | precharge_complete |
Data for the display, CAN RX or internal.
| int16_t aux_current |
Auxiliary bus current (mA)
| int16_t aux_voltage |
Auxiliary bus voltage (mV)
| uint16_t bps_fault |
BPS fault bitfield
| uint8_t bps_fault_cell |
BPS fault cell number (if it exists)
| uint16_t cell_voltages[36] |
All cell voltages
| int16_t dcdc_current |
DC/DC or PCS bus current (mA)
| int16_t dcdc_voltage |
Battery percentage from 0-100, two decimal points of precision DC/DC or PCS bus voltage (mV)
| uint16_t max_cell_temp |
Maximum cell temperature reading (C)
| uint16_t max_cell_voltage_mv |
Maximum cell voltage reading (mV)
| uint16_t min_cell_voltage_mv |
Minimum cell voltage reading (mV)
| uint16_t motor_bus_voltage |
Motor bus voltage reading (V)
| int16_t motor_heatsink_temp |
Temperature of the motor heatsink
| int16_t motor_temp |
Temperature of the motor
| int16_t motor_velocity |
Angular velocity of the motor in ???
| uint16_t pack_current |
Pack current reading (mA)
| uint16_t pack_voltage |
Pack voltage reading (mV)
| uint8_t pedal_percentage |
Pedal percentage, from (0, 100)
| int16_t vehicle_velocity |
Velocity of the vehicle in kph
| uint16_t ws22_flags |
Error and limit flags from the WS22