Red Bird Racing VCU v2
 
Loading...
Searching...
No Matches
BMS.hpp File Reference

Declaration of the BMS class for managing the Accumulator (Kclear BMS) via CAN bus. More...

#include "Scheduler.hpp"
#include "CarState.hpp"
#include <mcp2515.h>
Include dependency graph for BMS.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BMS
 BMS class for managing the Accumulator (Kclear BMS) via CAN bus. More...
 

Variables

constexpr uint32_t BMS_COMMAND = 0x1801F340
 
constexpr uint32_t BMS_SEND_CMD = BMS_COMMAND | CAN_EFF_FLAG
 
constexpr uint32_t BMS_INFO = 0x186040F3
 
constexpr uint32_t BMS_INFO_EXT = BMS_INFO | CAN_EFF_FLAG
 
constexpr can_frame start_hv_msg
 
constexpr can_frame stop_hv_msg
 

Detailed Description

Declaration of the BMS class for managing the Accumulator (Kclear BMS) via CAN bus.

Author
Planeson, Red Bird Racing
Version
1.2
Date
2026-02-04
See also
BMS.cpp

Definition in file BMS.hpp.

Variable Documentation

◆ BMS_COMMAND

constexpr uint32_t BMS_COMMAND = 0x1801F340
constexpr

BMS command ID

Definition at line 23 of file BMS.hpp.

◆ BMS_INFO

constexpr uint32_t BMS_INFO = 0x186040F3
constexpr

BMS info ID

Definition at line 26 of file BMS.hpp.

◆ BMS_INFO_EXT

constexpr uint32_t BMS_INFO_EXT = BMS_INFO | CAN_EFF_FLAG
constexpr

BMS info ID with Extended Frame Format flag

Definition at line 27 of file BMS.hpp.

Referenced by BMS::initFilter().

◆ BMS_SEND_CMD

constexpr uint32_t BMS_SEND_CMD = BMS_COMMAND | CAN_EFF_FLAG
constexpr

BMS command ID with Extended Frame Format flag

Definition at line 24 of file BMS.hpp.

◆ start_hv_msg

constexpr can_frame start_hv_msg
constexpr
Initial value:
= {
2,
{0x01, 0x01}
}
constexpr uint32_t BMS_SEND_CMD
Definition: BMS.hpp:24

Start HV command frame

Definition at line 30 of file BMS.hpp.

Referenced by BMS::checkHv().

◆ stop_hv_msg

constexpr can_frame stop_hv_msg
constexpr
Initial value:
= {
2,
{0x00, 0x00}
}

Stop HV command frame

Definition at line 37 of file BMS.hpp.