mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_BattMonitor: fixed ESC telem scaling
This commit is contained in:
parent
4f56d3d98c
commit
7f17c2f41b
@ -44,7 +44,9 @@ void AP_BattMonitor_BLHeliESC::read(void)
|
||||
|
||||
for (uint8_t i=0; i<AP_BLHELI_MAX_ESCS; i++) {
|
||||
AP_BLHeli::telem_data td;
|
||||
blheli->get_telem_data(i, td);
|
||||
if (!blheli->get_telem_data(i, td)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// accumulate consumed_sum regardless of age, to cope with ESC
|
||||
// dropping out
|
||||
|
Loading…
Reference in New Issue
Block a user