Skip to content

Commit

Permalink
Blimp: make compass LearnType enum-class and parameter AP_Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jan 29, 2025
1 parent 12ca8ec commit 4ecfacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Blimp/AP_Arming_Blimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4ecfacb

Please sign in to comment.