mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-11 20:59:22 +08:00
Blimp: make compass LearnType enum-class and parameter AP_Enum
This commit is contained in:
committed by
Peter Barker
parent
12ca8ec473
commit
4ecfacbbd0
@@ -383,7 +383,7 @@ bool AP_Arming_Blimp::disarm(const AP_Arming::Method method, bool do_disarm_chec
|
||||
|
||||
// save compass offsets learned by the EKF if enabled
|
||||
Compass &compass = AP::compass();
|
||||
if (ahrs.use_compass() && compass.get_learn_type() == Compass::LEARN_EKF) {
|
||||
if (ahrs.use_compass() && compass.get_learn_type() == Compass::LearnType::COPY_FROM_EKF) {
|
||||
for (uint8_t i=0; i<COMPASS_MAX_INSTANCES; i++) {
|
||||
Vector3f magOffsets;
|
||||
if (ahrs.getMagOffsets(i, magOffsets)) {
|
||||
|
||||
Reference in New Issue
Block a user