mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
AP_BattMonitor: fixed ESC telem scaling
This commit is contained in:
parent
f96c3c2c0f
commit
cdf92c5158
@ -44,7 +44,9 @@ void AP_BattMonitor_BLHeliESC::read(void)
|
|||||||
|
|
||||||
for (uint8_t i=0; i<AP_BLHELI_MAX_ESCS; i++) {
|
for (uint8_t i=0; i<AP_BLHELI_MAX_ESCS; i++) {
|
||||||
AP_BLHeli::telem_data td;
|
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
|
// accumulate consumed_sum regardless of age, to cope with ESC
|
||||||
// dropping out
|
// dropping out
|
||||||
|
Loading…
Reference in New Issue
Block a user