Skip to content

Commit

Permalink
AP_Arming: Add threshold arguments to consistency checks
Browse files Browse the repository at this point in the history
Added arguments to the gyros_consistent and accels_consistent methods for allowable threshold and required time for checks
  • Loading branch information
haydendonald committed Feb 7, 2024
1 parent 7906055 commit 5428a92
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 @@ -379,13 +379,13 @@ bool AP_Arming::ins_checks(bool report)
}

// check all accelerometers point in roughly same direction
if (!ins.accels_consistent(accel_error_threshold)) {
if (!ins.accels_consistent(accel_error_threshold, 10)) {
check_failed(ARMING_CHECK_INS, report, "Accels inconsistent");
return false;
}

// check all gyros are giving consistent readings
if (!ins.gyros_consistent()) {
if (!ins.gyros_consistent(5, 10)) {
check_failed(ARMING_CHECK_INS, report, "Gyros inconsistent");
return false;
}
Expand Down

0 comments on commit 5428a92

Please sign in to comment.