mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Made ESC feedback and vbat calculation more resilient.
Fixed tests. Cosmetic fix.
This commit is contained in:
parent
fb4559bfa3
commit
e3644ca507
19 changed files with 219 additions and 221 deletions
|
@ -165,8 +165,8 @@ int32_t GPS_coord[2];
|
|||
uint16_t GPS_speed; // speed in 0.1m/s
|
||||
uint16_t GPS_distanceToHome; // distance to home point in meters
|
||||
uint16_t GPS_altitude; // altitude in 0.1m
|
||||
uint16_t vbat;
|
||||
int16_t GPS_directionToHome; // direction to home or hol point in degrees
|
||||
uint16_t vbat;
|
||||
|
||||
int32_t amperage;
|
||||
int32_t mAhDrawn;
|
||||
|
@ -256,5 +256,9 @@ batteryState_e getBatteryState(void)
|
|||
return BATTERY_OK;
|
||||
}
|
||||
|
||||
uint16_t getVbat(void)
|
||||
{
|
||||
return vbat;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue