Skip to content

Commit

Permalink
AP_Arming: prearm check to validate backend read rates against schedu…
Browse files Browse the repository at this point in the history
…ler loop rate
  • Loading branch information
bugobliterator committed Nov 19, 2024
1 parent 659f8fc commit 6628454
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_Arming/AP_Arming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,12 @@ bool AP_Arming::ins_checks(bool report)
}
#endif

// check if IMU gyro updates are greater than or equal to Ardupilot Loop rate
char fail_msg[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN+1];
if (!ins.pre_arm_check_gyro_backend_rate_hz(fail_msg, ARRAY_SIZE(fail_msg))) {
check_failed(ARMING_CHECK_INS, report, "%s", fail_msg);
return false;
}
}

#if HAL_GYROFFT_ENABLED
Expand Down

0 comments on commit 6628454

Please sign in to comment.