Fix BullTron GUI telemetry and MOS writes
This commit is contained in:
+2
-2
@@ -95,10 +95,10 @@ Time-to-empty/full is not a separate BLE value in the live view. The app compute
|
||||
|
||||
```text
|
||||
if register 0x002F == 1:
|
||||
time-to-full = (rated_capacity_Ah * (100 - SOC_percent) / abs(current_A)) * 60 minutes
|
||||
time-to-full = (rated_capacity_Ah * ((100 - SOC_percent) / 100) / abs(current_A)) * 60 minutes
|
||||
|
||||
if register 0x002F == 2:
|
||||
time-to-empty = (rated_capacity_Ah * SOC_percent / abs(current_A)) * 60 minutes
|
||||
time-to-empty = (rated_capacity_Ah * (SOC_percent / 100) / abs(current_A)) * 60 minutes
|
||||
```
|
||||
|
||||
The `rated_capacity_Ah` input comes from the settings register set parsed into `contentByteArrayByReadSet`. The app also has a separate read of register `0x0064` length `1` that stores `residueTime`, but the visible live time calculation above is derived from SOC/current/capacity unless current is zero.
|
||||
|
||||
Reference in New Issue
Block a user