Add JBD BMS cell voltage telemetry

modified:   firmware/esp32/xterra-controller/bms.cpp
	modified:   firmware/esp32/xterra-controller/bms.h
	modified:   firmware/esp32/xterra-controller/xterra-controller.ino
This commit is contained in:
2026-06-04 00:50:42 -06:00
parent 5b1b60dc59
commit 81b6e71938
3 changed files with 118 additions and 27 deletions
+8
View File
@@ -1,8 +1,11 @@
#pragma once
#define BMS_MAX_CELLS 8
struct BmsData {
bool connected = false;
bool valid = false;
bool cellsValid = false;
float soc = 0;
float voltage = 0;
@@ -14,6 +17,11 @@ struct BmsData {
int cycleCount = 0;
int cellCount = 0;
int ntcCount = 0;
float cellVoltages[BMS_MAX_CELLS] = {0};
float cellMinVoltage = 0;
float cellMaxVoltage = 0;
int cellDeltaMv = 0;
};
extern BmsData bmsData;