BOLT Dash (C++)
Loading...
Searching...
No Matches
our_candata Struct Reference

This is a struct that contains all the data that we get from the CAN bus and is used in the dash project. More...

#include <can.h>

Public Attributes

uint8_t aux_voltage {}
 The voltage of the aux pack.
 
uint8_t aux_percent {}
 The battery percentage of the aux pack.
 
uint8_t pack_state_of_charge {}
 The state of charge of the main pack as a percentage.
 
uint16_t pack_voltage {}
 The voltage of the main pack.
 
int16_t pack_current {}
 The current of the main pack.
 
uint16_t high_cell_temp {}
 The temperature of the hottest cell group in the main pack.
 
uint16_t low_cell_temp {}
 The temperature of the coldest cell group in the main pack.
 
int16_t motor_temperature {}
 The temperature of the motor.
 
uint16_t bms_temperature {}
 The temperature of the BMS.
 
uint16_t mc_temperature {}
 The temperature of the motor controller.
 
int16_t motor_speed {}
 The RPM of the motor.
 
int16_t bike_speed {}
 The speed of the bike in mph.
 
uint8_t bms_fault {}
 The fault status of the BMS.
 
uint8_t bms_error {}
 Whether the BMS has any errors.
 
uint8_t bms_warning {}
 Whether the BMS has any warnings.
 
uint32_t bms_error_codes {}
 The actual error codes of the BMS concatenated together.
 
uint8_t mc_fault {}
 Whether or no the MC has a fault.
 
uint8_t motor_on {}
 Whether or not the motor is active.
 
uint8_t bike_status {}
 The internal state of the bike, not used rn.
 
uint16_t highest_cell_voltage {}
 The highest cell voltage in the main pack.
 
uint16_t lowest_cell_voltage {}
 The lowest cell voltage in the main pack.
 

Detailed Description

This is a struct that contains all the data that we get from the CAN bus and is used in the dash project.


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