mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Update PYLON-CAN.cpp
This commit is contained in:
parent
902ee44cca
commit
06694e9b01
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ void send_setup_info() { //Ensemble information
|
|||
//Modules in series (not really how EV packs work, but let's map it to a reasonable Pylon value)
|
||||
PYLON_7320.data.u8[2] = (datalayer.battery.info.number_of_cells / 15);
|
||||
//Capacity in AH
|
||||
if(datalayer.battery.status.voltage_dV > 10){ //div0 safeguard
|
||||
if (datalayer.battery.status.voltage_dV > 10) { //div0 safeguard
|
||||
PYLON_7320.data.u8[6] = (datalayer.battery.info.total_capacity_Wh / (datalayer.battery.status.voltage_dV / 10));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue