mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Merge pull request #297 from dalathegreat/bugfix/solax-kwh
Bugfix: Correct scaling on kWh for Solax
This commit is contained in:
commit
6afcf3bd1b
1 changed files with 2 additions and 2 deletions
|
@ -192,8 +192,8 @@ void update_values_can_inverter() { //This function maps all the values fetched
|
|||
SOLAX_1873.data.u8[3] = (datalayer.battery.status.current_dA >> 8);
|
||||
SOLAX_1873.data.u8[4] = (uint8_t)(datalayer.battery.status.reported_soc / 100); //SOC (100.00%)
|
||||
//SOLAX_1873.data.u8[5] = //Seems like this is not required? Or shall we put SOC decimals here?
|
||||
SOLAX_1873.data.u8[6] = (uint8_t)(capped_remaining_capacity_Wh / 100);
|
||||
SOLAX_1873.data.u8[7] = ((capped_remaining_capacity_Wh / 100) >> 8);
|
||||
SOLAX_1873.data.u8[6] = (uint8_t)(capped_remaining_capacity_Wh / 10);
|
||||
SOLAX_1873.data.u8[7] = ((capped_remaining_capacity_Wh / 10) >> 8);
|
||||
|
||||
//BMS_CellData
|
||||
SOLAX_1874.data.u8[0] = (int8_t)datalayer.battery.status.temperature_max_dC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue