mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Fix battery current calculation.
This commit is contained in:
parent
5854fc2867
commit
a637db847f
1 changed files with 1 additions and 1 deletions
|
@ -546,7 +546,7 @@ void update_values_battery() { //This function maps all the values fetched via
|
|||
|
||||
datalayer.battery.status.voltage_dV = BMS_voltage * 2.5; // *0.25*10
|
||||
|
||||
datalayer.battery.status.current_dA = (BMS_current / 10) - 1630;
|
||||
datalayer.battery.status.current_dA = (BMS_current - 16300); // 0.1 * 10
|
||||
|
||||
datalayer.battery.info.total_capacity_Wh =
|
||||
((float)datalayer.battery.info.number_of_cells) * 3.6458 * ((float)BMS_capacity_ah) * 0.2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue