Blimp: use AP::compass().available in place of enabled()

This commit is contained in:
Peter Barker 2021-07-28 11:54:59 +10:00 committed by Peter Barker
parent d40587062e
commit 6e68292c62
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ void Blimp::update_batt_compass(void)
// read battery before compass because it may be used for motor interference compensation
battery.read();
if (AP::compass().enabled()) {
if (AP::compass().available()) {
// update compass with throttle value - used for compassmot
compass.set_voltage(battery.voltage());
compass.read();