mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-12 10:53:59 -04:00
ArduSub: make compass LearnType enum-class and parameter AP_Enum
This commit is contained in:
parent
d2c24efd83
commit
12ca8ec473
@ -179,7 +179,7 @@ bool AP_Arming_Sub::disarm(const AP_Arming::Method method, bool do_disarm_checks
|
||||
auto &ahrs = AP::ahrs();
|
||||
|
||||
// save compass offsets learned by the EKF if enabled
|
||||
if (ahrs.use_compass() && AP::compass().get_learn_type() == Compass::LEARN_EKF) {
|
||||
if (ahrs.use_compass() && AP::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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user