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

Class that handles message scheduling over a SocketCAN interface. More...

#include <can_scheduler.h>

Public Member Functions

 CanScheduler ()
 Constructs a CanScheduler object. More...
 
void startCanScheduler ()
 Starts the CAN scheduler and sets all messages to 0. Must only be called once. More...
 
void update_battery_status_fault (uint16_t fault_value)
 Update the CAN value for battery_status fault. More...
 
void update_battery_status_fault_val (uint16_t fault_val_value)
 Update the CAN value for battery_status fault_val. More...
 
void update_battery_status_aux_batt_v (uint16_t aux_batt_v_value)
 Update the CAN value for battery_status aux_batt_v. More...
 
void update_battery_status_afe_status (uint8_t afe_status_value)
 Update the CAN value for battery_status afe_status. More...
 
void update_battery_vt_voltage (uint16_t voltage_value)
 Update the CAN value for battery_vt voltage. More...
 
void update_battery_vt_current (uint16_t current_value)
 Update the CAN value for battery_vt current. More...
 
void update_battery_vt_temperature (uint16_t temperature_value)
 Update the CAN value for battery_vt temperature. More...
 
void update_battery_vt_batt_perc (uint16_t batt_perc_value)
 Update the CAN value for battery_vt batt_perc. More...
 
void update_battery_info_fan1 (uint8_t fan1_value)
 Update the CAN value for battery_info fan1. More...
 
void update_battery_info_fan2 (uint8_t fan2_value)
 Update the CAN value for battery_info fan2. More...
 
void update_battery_info_max_cell_v (uint16_t max_cell_v_value)
 Update the CAN value for battery_info max_cell_v. More...
 
void update_battery_info_min_cell_v (uint16_t min_cell_v_value)
 Update the CAN value for battery_info min_cell_v. More...
 
void update_afe1_status_id (uint8_t id_value)
 Update the CAN value for afe1_status id. More...
 
void update_afe1_status_temp (uint8_t temp_value)
 Update the CAN value for afe1_status temp. More...
 
void update_afe1_status_v1 (uint16_t v1_value)
 Update the CAN value for afe1_status v1. More...
 
void update_afe1_status_v2 (uint16_t v2_value)
 Update the CAN value for afe1_status v2. More...
 
void update_afe1_status_v3 (uint16_t v3_value)
 Update the CAN value for afe1_status v3. More...
 
void update_afe2_status_id (uint8_t id_value)
 Update the CAN value for afe2_status id. More...
 
void update_afe2_status_temp (uint8_t temp_value)
 Update the CAN value for afe2_status temp. More...
 
void update_afe2_status_v1 (uint16_t v1_value)
 Update the CAN value for afe2_status v1. More...
 
void update_afe2_status_v2 (uint16_t v2_value)
 Update the CAN value for afe2_status v2. More...
 
void update_afe2_status_v3 (uint16_t v3_value)
 Update the CAN value for afe2_status v3. More...
 
void update_afe3_status_id (uint8_t id_value)
 Update the CAN value for afe3_status id. More...
 
void update_afe3_status_temp (uint8_t temp_value)
 Update the CAN value for afe3_status temp. More...
 
void update_afe3_status_v1 (uint16_t v1_value)
 Update the CAN value for afe3_status v1. More...
 
void update_afe3_status_v2 (uint16_t v2_value)
 Update the CAN value for afe3_status v2. More...
 
void update_afe3_status_v3 (uint16_t v3_value)
 Update the CAN value for afe3_status v3. More...
 
void update_fast_one_shot_msg_sig1 (uint16_t sig1_value)
 Update the CAN value for fast_one_shot_msg sig1. More...
 
void update_fast_one_shot_msg_sig2 (uint16_t sig2_value)
 Update the CAN value for fast_one_shot_msg sig2. More...
 
void update_medium_one_shot_msg_sig1 (uint16_t sig1_value)
 Update the CAN value for medium_one_shot_msg sig1. More...
 
void update_medium_one_shot_msg_sig2 (uint16_t sig2_value)
 Update the CAN value for medium_one_shot_msg sig2. More...
 
void update_slow_one_shot_msg_sig1 (uint16_t sig1_value)
 Update the CAN value for slow_one_shot_msg sig1. More...
 
void update_slow_one_shot_msg_sig2 (uint16_t sig2_value)
 Update the CAN value for slow_one_shot_msg sig2. More...
 
void update_cc_pedal_throttle_output (uint32_t throttle_output_value)
 Update the CAN value for cc_pedal throttle_output. More...
 
void update_cc_pedal_brake_output (uint8_t brake_output_value)
 Update the CAN value for cc_pedal brake_output. More...
 
void update_cc_info_target_velocity (uint32_t target_velocity_value)
 Update the CAN value for cc_info target_velocity. More...
 
void update_cc_info_drive_state (uint8_t drive_state_value)
 Update the CAN value for cc_info drive_state. More...
 
void update_cc_info_cruise_control (uint8_t cruise_control_value)
 Update the CAN value for cc_info cruise_control. More...
 
void update_cc_info_regen_braking (uint8_t regen_braking_value)
 Update the CAN value for cc_info regen_braking. More...
 
void update_cc_info_hazard_enabled (uint8_t hazard_enabled_value)
 Update the CAN value for cc_info hazard_enabled. More...
 
void update_cc_steering_input_cc (uint8_t input_cc_value)
 Update the CAN value for cc_steering input_cc. More...
 
void update_cc_steering_input_lights (uint8_t input_lights_value)
 Update the CAN value for cc_steering input_lights. More...
 
void update_cc_regen_percentage_percent (uint32_t percent_value)
 Update the CAN value for cc_regen_percentage percent. More...
 

Private Member Functions

void scheduleCanMessages ()
 Schedules all CAN data by updating the Broacast Manager socket. More...
 

Private Attributes

const std::string CAN_INTERFACE_NAME = "vcan0"
 
struct {
   struct bcm_msg_head   msg_head
 
   struct can_frame   frame [NUM_FAST_CYCLE_MESSAGES]
 
canFastCycleBCM
 Fast cycle Broadcast Manager message for the Linux Kernel.
 
struct {
   struct bcm_msg_head   msg_head
 
   struct can_frame   frame [NUM_MEDIUM_CYCLE_MESSAGES]
 
canMediumCycleBCM
 Medium cycle Broadcast Manager message for the Linux Kernel.
 
struct {
   struct bcm_msg_head   msg_head
 
   struct can_frame   frame [NUM_SLOW_CYCLE_MESSAGES]
 
canSlowCycleBCM
 Slow cycle Broadcast Manager message for the Linux Kernel.
 
int m_bcmCanSocket
 
std::atomic< bool > m_isConnected
 

Static Private Attributes

static const constexpr unsigned int FAST_CYCLE_SPEED_MS = 1U
 
static const constexpr unsigned int MEDIUM_CYCLE_SPEED_MS = 100U
 
static const constexpr unsigned int SLOW_CYCLE_SPEED_MS = 1000U
 
static const constexpr unsigned int SLOW_CYCLE_BCM_ID = 0U
 
static const constexpr unsigned int MEDIUM_CYCLE_BCM_ID = 1U
 
static const constexpr unsigned int FAST_CYCLE_BCM_ID = 2U
 
static const constexpr unsigned int NUM_FAST_CYCLE_MESSAGES = 3U
 
static const constexpr unsigned int NUM_MEDIUM_CYCLE_MESSAGES = 5U
 
static const constexpr unsigned int NUM_SLOW_CYCLE_MESSAGES = 5U
 
static const constexpr unsigned int NUM_TOTAL_MESSAGES = 13U
 
static const constexpr unsigned int MAX_MESSAGE_LENGTH = 8U
 
static const constexpr unsigned int FAST_BMS_CARRIER_BATTERY_VT_FRAME_INDEX = 0U
 
static const constexpr unsigned int FAST_CAN_COMMUNICATION_FAST_ONE_SHOT_MSG_FRAME_INDEX = 1U
 
static const constexpr unsigned int FAST_CENTRE_CONSOLE_CC_PEDAL_FRAME_INDEX = 2U
 
static const constexpr unsigned int MEDIUM_BMS_CARRIER_BATTERY_STATUS_FRAME_INDEX = 0U
 
static const constexpr unsigned int MEDIUM_CAN_COMMUNICATION_MEDIUM_ONE_SHOT_MSG_FRAME_INDEX = 1U
 
static const constexpr unsigned int MEDIUM_CENTRE_CONSOLE_CC_INFO_FRAME_INDEX = 2U
 
static const constexpr unsigned int MEDIUM_CENTRE_CONSOLE_CC_STEERING_FRAME_INDEX = 3U
 
static const constexpr unsigned int MEDIUM_CENTRE_CONSOLE_CC_REGEN_PERCENTAGE_FRAME_INDEX = 4U
 
static const constexpr unsigned int SLOW_BMS_CARRIER_BATTERY_INFO_FRAME_INDEX = 0U
 
static const constexpr unsigned int SLOW_BMS_CARRIER_AFE1_STATUS_FRAME_INDEX = 1U
 
static const constexpr unsigned int SLOW_BMS_CARRIER_AFE2_STATUS_FRAME_INDEX = 2U
 
static const constexpr unsigned int SLOW_BMS_CARRIER_AFE3_STATUS_FRAME_INDEX = 3U
 
static const constexpr unsigned int SLOW_CAN_COMMUNICATION_SLOW_ONE_SHOT_MSG_FRAME_INDEX = 4U
 

Detailed Description

Class that handles message scheduling over a SocketCAN interface.

This class is responsible scheduling CAN messages based on their cycle speed Only 3 cycle speeds are supported, Fast (1kHz), medium (10Hz) and slow (1Hz) The class shall support message updating during run-time for further bus simulation

Constructor & Destructor Documentation

◆ CanScheduler()

Constructs a CanScheduler object.

Initializes the CanScheduler. The constructor sets up internal variables

Warning
This file is autogenerated

Member Function Documentation

◆ scheduleCanMessages()

void scheduleCanMessages ( )
private

Schedules all CAN data by updating the Broacast Manager socket.

This function is called by startCanScheduler This function shall initialize all CAN message values to 0

◆ startCanScheduler()

void startCanScheduler ( )

Starts the CAN scheduler and sets all messages to 0. Must only be called once.

This function will connect to the Linux Broadcast Manager This function must only be called once, and it will set all messages to 0

◆ update_afe1_status_id()

void update_afe1_status_id ( uint8_t  id_value)

Update the CAN value for afe1_status id.

Parameters
id_valueNew value for the signal

◆ update_afe1_status_temp()

void update_afe1_status_temp ( uint8_t  temp_value)

Update the CAN value for afe1_status temp.

Parameters
temp_valueNew value for the signal

◆ update_afe1_status_v1()

void update_afe1_status_v1 ( uint16_t  v1_value)

Update the CAN value for afe1_status v1.

Parameters
v1_valueNew value for the signal

◆ update_afe1_status_v2()

void update_afe1_status_v2 ( uint16_t  v2_value)

Update the CAN value for afe1_status v2.

Parameters
v2_valueNew value for the signal

◆ update_afe1_status_v3()

void update_afe1_status_v3 ( uint16_t  v3_value)

Update the CAN value for afe1_status v3.

Parameters
v3_valueNew value for the signal

◆ update_afe2_status_id()

void update_afe2_status_id ( uint8_t  id_value)

Update the CAN value for afe2_status id.

Parameters
id_valueNew value for the signal

◆ update_afe2_status_temp()

void update_afe2_status_temp ( uint8_t  temp_value)

Update the CAN value for afe2_status temp.

Parameters
temp_valueNew value for the signal

◆ update_afe2_status_v1()

void update_afe2_status_v1 ( uint16_t  v1_value)

Update the CAN value for afe2_status v1.

Parameters
v1_valueNew value for the signal

◆ update_afe2_status_v2()

void update_afe2_status_v2 ( uint16_t  v2_value)

Update the CAN value for afe2_status v2.

Parameters
v2_valueNew value for the signal

◆ update_afe2_status_v3()

void update_afe2_status_v3 ( uint16_t  v3_value)

Update the CAN value for afe2_status v3.

Parameters
v3_valueNew value for the signal

◆ update_afe3_status_id()

void update_afe3_status_id ( uint8_t  id_value)

Update the CAN value for afe3_status id.

Parameters
id_valueNew value for the signal

◆ update_afe3_status_temp()

void update_afe3_status_temp ( uint8_t  temp_value)

Update the CAN value for afe3_status temp.

Parameters
temp_valueNew value for the signal

◆ update_afe3_status_v1()

void update_afe3_status_v1 ( uint16_t  v1_value)

Update the CAN value for afe3_status v1.

Parameters
v1_valueNew value for the signal

◆ update_afe3_status_v2()

void update_afe3_status_v2 ( uint16_t  v2_value)

Update the CAN value for afe3_status v2.

Parameters
v2_valueNew value for the signal

◆ update_afe3_status_v3()

void update_afe3_status_v3 ( uint16_t  v3_value)

Update the CAN value for afe3_status v3.

Parameters
v3_valueNew value for the signal

◆ update_battery_info_fan1()

void update_battery_info_fan1 ( uint8_t  fan1_value)

Update the CAN value for battery_info fan1.

Parameters
fan1_valueNew value for the signal

◆ update_battery_info_fan2()

void update_battery_info_fan2 ( uint8_t  fan2_value)

Update the CAN value for battery_info fan2.

Parameters
fan2_valueNew value for the signal

◆ update_battery_info_max_cell_v()

void update_battery_info_max_cell_v ( uint16_t  max_cell_v_value)

Update the CAN value for battery_info max_cell_v.

Parameters
max_cell_v_valueNew value for the signal

◆ update_battery_info_min_cell_v()

void update_battery_info_min_cell_v ( uint16_t  min_cell_v_value)

Update the CAN value for battery_info min_cell_v.

Parameters
min_cell_v_valueNew value for the signal

◆ update_battery_status_afe_status()

void update_battery_status_afe_status ( uint8_t  afe_status_value)

Update the CAN value for battery_status afe_status.

Parameters
afe_status_valueNew value for the signal

◆ update_battery_status_aux_batt_v()

void update_battery_status_aux_batt_v ( uint16_t  aux_batt_v_value)

Update the CAN value for battery_status aux_batt_v.

Parameters
aux_batt_v_valueNew value for the signal

◆ update_battery_status_fault()

void update_battery_status_fault ( uint16_t  fault_value)

Update the CAN value for battery_status fault.

Parameters
fault_valueNew value for the signal

◆ update_battery_status_fault_val()

void update_battery_status_fault_val ( uint16_t  fault_val_value)

Update the CAN value for battery_status fault_val.

Parameters
fault_val_valueNew value for the signal

◆ update_battery_vt_batt_perc()

void update_battery_vt_batt_perc ( uint16_t  batt_perc_value)

Update the CAN value for battery_vt batt_perc.

Parameters
batt_perc_valueNew value for the signal

◆ update_battery_vt_current()

void update_battery_vt_current ( uint16_t  current_value)

Update the CAN value for battery_vt current.

Parameters
current_valueNew value for the signal

◆ update_battery_vt_temperature()

void update_battery_vt_temperature ( uint16_t  temperature_value)

Update the CAN value for battery_vt temperature.

Parameters
temperature_valueNew value for the signal

◆ update_battery_vt_voltage()

void update_battery_vt_voltage ( uint16_t  voltage_value)

Update the CAN value for battery_vt voltage.

Parameters
voltage_valueNew value for the signal

◆ update_cc_info_cruise_control()

void update_cc_info_cruise_control ( uint8_t  cruise_control_value)

Update the CAN value for cc_info cruise_control.

Parameters
cruise_control_valueNew value for the signal

◆ update_cc_info_drive_state()

void update_cc_info_drive_state ( uint8_t  drive_state_value)

Update the CAN value for cc_info drive_state.

Parameters
drive_state_valueNew value for the signal

◆ update_cc_info_hazard_enabled()

void update_cc_info_hazard_enabled ( uint8_t  hazard_enabled_value)

Update the CAN value for cc_info hazard_enabled.

Parameters
hazard_enabled_valueNew value for the signal

◆ update_cc_info_regen_braking()

void update_cc_info_regen_braking ( uint8_t  regen_braking_value)

Update the CAN value for cc_info regen_braking.

Parameters
regen_braking_valueNew value for the signal

◆ update_cc_info_target_velocity()

void update_cc_info_target_velocity ( uint32_t  target_velocity_value)

Update the CAN value for cc_info target_velocity.

Parameters
target_velocity_valueNew value for the signal

◆ update_cc_pedal_brake_output()

void update_cc_pedal_brake_output ( uint8_t  brake_output_value)

Update the CAN value for cc_pedal brake_output.

Parameters
brake_output_valueNew value for the signal

◆ update_cc_pedal_throttle_output()

void update_cc_pedal_throttle_output ( uint32_t  throttle_output_value)

Update the CAN value for cc_pedal throttle_output.

Parameters
throttle_output_valueNew value for the signal

◆ update_cc_regen_percentage_percent()

void update_cc_regen_percentage_percent ( uint32_t  percent_value)

Update the CAN value for cc_regen_percentage percent.

Parameters
percent_valueNew value for the signal

◆ update_cc_steering_input_cc()

void update_cc_steering_input_cc ( uint8_t  input_cc_value)

Update the CAN value for cc_steering input_cc.

Parameters
input_cc_valueNew value for the signal

◆ update_cc_steering_input_lights()

void update_cc_steering_input_lights ( uint8_t  input_lights_value)

Update the CAN value for cc_steering input_lights.

Parameters
input_lights_valueNew value for the signal

◆ update_fast_one_shot_msg_sig1()

void update_fast_one_shot_msg_sig1 ( uint16_t  sig1_value)

Update the CAN value for fast_one_shot_msg sig1.

Parameters
sig1_valueNew value for the signal

◆ update_fast_one_shot_msg_sig2()

void update_fast_one_shot_msg_sig2 ( uint16_t  sig2_value)

Update the CAN value for fast_one_shot_msg sig2.

Parameters
sig2_valueNew value for the signal

◆ update_medium_one_shot_msg_sig1()

void update_medium_one_shot_msg_sig1 ( uint16_t  sig1_value)

Update the CAN value for medium_one_shot_msg sig1.

Parameters
sig1_valueNew value for the signal

◆ update_medium_one_shot_msg_sig2()

void update_medium_one_shot_msg_sig2 ( uint16_t  sig2_value)

Update the CAN value for medium_one_shot_msg sig2.

Parameters
sig2_valueNew value for the signal

◆ update_slow_one_shot_msg_sig1()

void update_slow_one_shot_msg_sig1 ( uint16_t  sig1_value)

Update the CAN value for slow_one_shot_msg sig1.

Parameters
sig1_valueNew value for the signal

◆ update_slow_one_shot_msg_sig2()

void update_slow_one_shot_msg_sig2 ( uint16_t  sig2_value)

Update the CAN value for slow_one_shot_msg sig2.

Parameters
sig2_valueNew value for the signal

Member Data Documentation

◆ CAN_INTERFACE_NAME

const std::string CAN_INTERFACE_NAME = "vcan0"
private

SocketCAN interface name

◆ FAST_BMS_CARRIER_BATTERY_VT_FRAME_INDEX

const constexpr unsigned int FAST_BMS_CARRIER_BATTERY_VT_FRAME_INDEX = 0U
staticconstexprprivate

Broadcast Manager battery_vt to Frame index mapping

◆ FAST_CAN_COMMUNICATION_FAST_ONE_SHOT_MSG_FRAME_INDEX

const constexpr unsigned int FAST_CAN_COMMUNICATION_FAST_ONE_SHOT_MSG_FRAME_INDEX = 1U
staticconstexprprivate

Broadcast Manager fast_one_shot_msg to Frame index mapping

◆ FAST_CENTRE_CONSOLE_CC_PEDAL_FRAME_INDEX

const constexpr unsigned int FAST_CENTRE_CONSOLE_CC_PEDAL_FRAME_INDEX = 2U
staticconstexprprivate

Broadcast Manager cc_pedal to Frame index mapping

◆ FAST_CYCLE_BCM_ID

const constexpr unsigned int FAST_CYCLE_BCM_ID = 2U
staticconstexprprivate

Linux Broadcast Manager Id for tracking slow cycle messages

◆ FAST_CYCLE_SPEED_MS

const constexpr unsigned int FAST_CYCLE_SPEED_MS = 1U
staticconstexprprivate

CAN fast cycle period in milliseconds

◆ frame

struct can_frame frame[NUM_SLOW_CYCLE_MESSAGES]

CAN message frames that shall be scheduled for fast cycle

CAN message frames that shall be scheduled for medium cycle

CAN message frames that shall be scheduled for slow cycle

◆ m_bcmCanSocket

int m_bcmCanSocket
private

The CAN schedulers Broadcast Manager socket FD

◆ m_isConnected

std::atomic<bool> m_isConnected
private

Boolean flag to track the CAN schedulers connection status

◆ MAX_MESSAGE_LENGTH

const constexpr unsigned int MAX_MESSAGE_LENGTH = 8U
staticconstexprprivate

Max message length in bytes

◆ MEDIUM_BMS_CARRIER_BATTERY_STATUS_FRAME_INDEX

const constexpr unsigned int MEDIUM_BMS_CARRIER_BATTERY_STATUS_FRAME_INDEX = 0U
staticconstexprprivate

Broadcast Manager battery_status to Frame index mapping

◆ MEDIUM_CAN_COMMUNICATION_MEDIUM_ONE_SHOT_MSG_FRAME_INDEX

const constexpr unsigned int MEDIUM_CAN_COMMUNICATION_MEDIUM_ONE_SHOT_MSG_FRAME_INDEX = 1U
staticconstexprprivate

Broadcast Manager medium_one_shot_msg to Frame index mapping

◆ MEDIUM_CENTRE_CONSOLE_CC_INFO_FRAME_INDEX

const constexpr unsigned int MEDIUM_CENTRE_CONSOLE_CC_INFO_FRAME_INDEX = 2U
staticconstexprprivate

Broadcast Manager cc_info to Frame index mapping

◆ MEDIUM_CENTRE_CONSOLE_CC_REGEN_PERCENTAGE_FRAME_INDEX

const constexpr unsigned int MEDIUM_CENTRE_CONSOLE_CC_REGEN_PERCENTAGE_FRAME_INDEX = 4U
staticconstexprprivate

Broadcast Manager cc_regen_percentage to Frame index mapping

◆ MEDIUM_CENTRE_CONSOLE_CC_STEERING_FRAME_INDEX

const constexpr unsigned int MEDIUM_CENTRE_CONSOLE_CC_STEERING_FRAME_INDEX = 3U
staticconstexprprivate

Broadcast Manager cc_steering to Frame index mapping

◆ MEDIUM_CYCLE_BCM_ID

const constexpr unsigned int MEDIUM_CYCLE_BCM_ID = 1U
staticconstexprprivate

Linux Broadcast Manager Id for tracking medium cycle messages

◆ MEDIUM_CYCLE_SPEED_MS

const constexpr unsigned int MEDIUM_CYCLE_SPEED_MS = 100U
staticconstexprprivate

CAN medium cycle period in milliseconds

◆ msg_head

struct bcm_msg_head msg_head

Broadcast Manager message head containing metadata

◆ NUM_FAST_CYCLE_MESSAGES

const constexpr unsigned int NUM_FAST_CYCLE_MESSAGES = 3U
staticconstexprprivate

Number of fast cycle messages

◆ NUM_MEDIUM_CYCLE_MESSAGES

const constexpr unsigned int NUM_MEDIUM_CYCLE_MESSAGES = 5U
staticconstexprprivate

Number of medium cycle messages

◆ NUM_SLOW_CYCLE_MESSAGES

const constexpr unsigned int NUM_SLOW_CYCLE_MESSAGES = 5U
staticconstexprprivate

Number of slow cycle messages

◆ NUM_TOTAL_MESSAGES

const constexpr unsigned int NUM_TOTAL_MESSAGES = 13U
staticconstexprprivate

Total number of messages

◆ SLOW_BMS_CARRIER_AFE1_STATUS_FRAME_INDEX

const constexpr unsigned int SLOW_BMS_CARRIER_AFE1_STATUS_FRAME_INDEX = 1U
staticconstexprprivate

Broadcast Manager afe1_status to Frame index mapping

◆ SLOW_BMS_CARRIER_AFE2_STATUS_FRAME_INDEX

const constexpr unsigned int SLOW_BMS_CARRIER_AFE2_STATUS_FRAME_INDEX = 2U
staticconstexprprivate

Broadcast Manager afe2_status to Frame index mapping

◆ SLOW_BMS_CARRIER_AFE3_STATUS_FRAME_INDEX

const constexpr unsigned int SLOW_BMS_CARRIER_AFE3_STATUS_FRAME_INDEX = 3U
staticconstexprprivate

Broadcast Manager afe3_status to Frame index mapping

◆ SLOW_BMS_CARRIER_BATTERY_INFO_FRAME_INDEX

const constexpr unsigned int SLOW_BMS_CARRIER_BATTERY_INFO_FRAME_INDEX = 0U
staticconstexprprivate

Broadcast Manager battery_info to Frame index mapping

◆ SLOW_CAN_COMMUNICATION_SLOW_ONE_SHOT_MSG_FRAME_INDEX

const constexpr unsigned int SLOW_CAN_COMMUNICATION_SLOW_ONE_SHOT_MSG_FRAME_INDEX = 4U
staticconstexprprivate

Broadcast Manager slow_one_shot_msg to Frame index mapping

◆ SLOW_CYCLE_BCM_ID

const constexpr unsigned int SLOW_CYCLE_BCM_ID = 0U
staticconstexprprivate

Linux Broadcast Manager Id for tracking fast cycle messages

◆ SLOW_CYCLE_SPEED_MS

const constexpr unsigned int SLOW_CYCLE_SPEED_MS = 1000U
staticconstexprprivate

CAN slow cycle period in milliseconds


The documentation for this class was generated from the following files: