Skip to content

Commit

Permalink
AP_Arming: typo fix in magnetic model check
Browse files Browse the repository at this point in the history
  • Loading branch information
landswellsong authored and rmackay9 committed Nov 18, 2024
1 parent 7a6a628 commit c415c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Arming/AP_Arming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,11 @@ bool AP_Arming::compass_checks(bool report)
(double)MAX(fabsf(diff_mgauss.x), (double)fabsf(diff_mgauss.y)), (int)magfield_error_threshold);
return false;
}
if (fabsf(diff_mgauss.x) > magfield_error_threshold*2.0) {
if (fabsf(diff_mgauss.z) > magfield_error_threshold*2.0) {
check_failed(ARMING_CHECK_COMPASS, report, "Check mag field (z diff:%.0f>%d)",
(double)fabsf(diff_mgauss.z), (int)magfield_error_threshold*2);
return false;
}
}
}
#endif // AP_AHRS_ENABLED
}
Expand Down

0 comments on commit c415c7f

Please sign in to comment.