Skip to content

Commit 023a3ad

Browse files
AP_Arming: prearm check to validate backend read rates against scheduler loop rate
1 parent ed85540 commit 023a3ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/AP_Arming/AP_Arming.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,12 @@ bool AP_Arming::ins_checks(bool report)
484484
}
485485
#endif
486486

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

489495
#if HAL_GYROFFT_ENABLED

0 commit comments

Comments
 (0)