mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Unified 'calculateBatteryPercentage' and 'calculateBatteryCapacityRemainingPercentage'.
Fixed tests. Changed consumption calculations to be based on latest amperage value.
This commit is contained in:
parent
e068d644ea
commit
e782ca55e6
7 changed files with 44 additions and 39 deletions
|
@ -311,6 +311,7 @@ portSharing_e determinePortSharing(serialPortConfig_t *, serialPortFunction_e) {
|
|||
|
||||
uint8_t batteryCapacityRemainingPercentage(void) {return 67;}
|
||||
uint8_t calculateBatteryCapacityRemainingPercentage(void) {return 67;}
|
||||
uint8_t calculateBatteryPercentage(void) {return 67;}
|
||||
batteryState_e getBatteryState(void) {return BATTERY_OK;}
|
||||
bool isAirmodeActive(void) {return airMode;}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue