Midnight Sun Firmware
Loading...
Searching...
No Matches
DisplayData

Data for the display, CAN RX or internal. More...

#include <steering.h>

Collaboration diagram for DisplayData:

Public Attributes

float state_of_charge
 
uint16_t cell_voltages [36]
 
int16_t vehicle_velocity
 
int16_t dcdc_voltage
 
int16_t dcdc_current
 
int16_t aux_voltage
 
int16_t aux_current
 
float pack_voltage
 
float pack_current
 
uint16_t min_cell_voltage_mv
 
uint16_t max_cell_voltage_mv
 
uint16_t max_cell_temp
 
uint16_t thermistor_temp_c [NUMBER_OF_THERMISTORS]
 
float energy_used_wh
 
uint16_t bps_fault
 
uint8_t bps_fault_cell
 
bool bps_fault_live
 
BpsFaultData bps_fault_data
 
VehicleDriveState drive_state
 
uint8_t pedal_percentage
 
uint8_t brake_percentage
 
uint8_t brake_enabled
 
uint8_t regen_enabled
 
uint8_t precharge_complete
 
TickType_t display_rx_medium_last_start
 

Detailed Description

Data for the display, CAN RX or internal.

Member Data Documentation

◆ aux_current

int16_t aux_current

Auxiliary bus current (mA)

◆ aux_voltage

int16_t aux_voltage

Auxiliary bus voltage (mV)

◆ bps_fault

uint16_t bps_fault

BPS fault bitfield

◆ bps_fault_cell

uint8_t bps_fault_cell

BPS fault cell number (if it exists)

◆ bps_fault_data

BpsFaultData bps_fault_data

Fault detail snapshot from bps_fault_info CAN signal

◆ bps_fault_live

bool bps_fault_live

TRUE if the fault is live (blocks drive); FALSE for a fault restored from flash

◆ brake_percentage

uint8_t brake_percentage

Brake percentage, from (0, 100)

◆ cell_voltages

uint16_t cell_voltages[36]

Battery percentage from 0-100, two decimal points of precision All cell voltages

◆ dcdc_current

int16_t dcdc_current

DC/DC or PCS bus current (mA)

◆ dcdc_voltage

int16_t dcdc_voltage

DC/DC or PCS bus voltage (mV)

◆ energy_used_wh

float energy_used_wh

Net energy drawn from the pack since power-on (Wh), integrated on the display

◆ max_cell_temp

uint16_t max_cell_temp

Maximum cell temperature reading (C)

◆ max_cell_voltage_mv

uint16_t max_cell_voltage_mv

Maximum cell voltage reading (mV)

◆ min_cell_voltage_mv

uint16_t min_cell_voltage_mv

Minimum cell voltage reading (mV)

◆ pack_current

float pack_current

Pack current reading (A), signed (regen negative)

◆ pack_voltage

float pack_voltage

Pack voltage reading (V)

◆ pedal_percentage

uint8_t pedal_percentage

Pedal percentage, from (0, 100)

◆ thermistor_temp_c

uint16_t thermistor_temp_c[NUMBER_OF_THERMISTORS]

AFE thermistor temperatures (whole degrees C) from the AFE_temperature message

◆ vehicle_velocity

int16_t vehicle_velocity

Velocity of the vehicle in kph


The documentation for this struct was generated from the following file: