mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Make cellarray definition
This commit is contained in:
parent
97e35b2478
commit
5d3cc341c8
23 changed files with 400 additions and 397 deletions
|
@ -71,7 +71,7 @@ uint16_t system_max_discharge_power_W = 0; //Watts, 0 to 65535
|
||||||
uint16_t system_max_charge_power_W = 4312; //Watts, 0 to 65535
|
uint16_t system_max_charge_power_W = 4312; //Watts, 0 to 65535
|
||||||
uint16_t system_cell_max_voltage_mV = 3700; //mV, 0-5000 , Stores the highest cell millivolt value
|
uint16_t system_cell_max_voltage_mV = 3700; //mV, 0-5000 , Stores the highest cell millivolt value
|
||||||
uint16_t system_cell_min_voltage_mV = 3700; //mV, 0-5000, Stores the minimum cell millivolt value
|
uint16_t system_cell_min_voltage_mV = 3700; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV. Oversized to accomodate all setups
|
uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages. Oversized to accomodate all setups
|
||||||
uint8_t system_bms_status = ACTIVE; //ACTIVE - [0..5]<>[STANDBY,INACTIVE,DARKSTART,ACTIVE,FAULT,UPDATING]
|
uint8_t system_bms_status = ACTIVE; //ACTIVE - [0..5]<>[STANDBY,INACTIVE,DARKSTART,ACTIVE,FAULT,UPDATING]
|
||||||
uint8_t system_number_of_cells = 0; //Total number of cell voltages, set by each battery
|
uint8_t system_number_of_cells = 0; //Total number of cell voltages, set by each battery
|
||||||
bool system_LFP_Chemistry = false; //Set to true or false depending on cell chemistry
|
bool system_LFP_Chemistry = false; //Set to true or false depending on cell chemistry
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -27,7 +27,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -30,7 +30,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -30,7 +30,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -28,7 +28,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, 1=true, 0=false
|
extern bool batteryAllowsContactorClosing; //Bool, 1=true, 0=false
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -49,4 +49,7 @@
|
||||||
#define DISCHARGING 1
|
#define DISCHARGING 1
|
||||||
#define CHARGING 2
|
#define CHARGING 2
|
||||||
|
|
||||||
|
// Common definitions
|
||||||
|
#define MAX_AMOUNT_CELLS 192
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -51,7 +51,7 @@ extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000 , Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000 , Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
|
|
||||||
extern const char* mqtt_user;
|
extern const char* mqtt_user;
|
||||||
|
|
|
@ -26,7 +26,7 @@ String cellmonitor_processor(const String& var) {
|
||||||
|
|
||||||
// Visualize the populated cells in forward order using flexbox with conditional text color
|
// Visualize the populated cells in forward order using flexbox with conditional text color
|
||||||
content += "<div class='container'>";
|
content += "<div class='container'>";
|
||||||
for (int i = 0; i < 192; ++i) {
|
for (int i = 0; i < MAX_AMOUNT_CELLS; ++i) {
|
||||||
// Skip empty values
|
// Skip empty values
|
||||||
if (system_cellvoltages_mV[i] == 0) {
|
if (system_cellvoltages_mV[i] == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Replaces placeholder with content section in web page
|
* @brief Replaces placeholder with content section in web page
|
||||||
|
|
|
@ -33,7 +33,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000 , Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000 , Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern uint8_t LEDcolor; //Enum, 0-10
|
extern uint8_t LEDcolor; //Enum, 0-10
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -21,7 +21,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -21,7 +21,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -21,7 +21,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern uint16_t system_max_discharge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
extern uint16_t system_max_charge_power_W; //W, 0-65000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[192]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
extern uint8_t system_number_of_cells; //Total number of cell voltages, set by each battery
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue