mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_Arming: use ins singleton
This commit is contained in:
parent
1dabcc473d
commit
f0d06e7a9c
@ -172,7 +172,7 @@ bool AP_Arming::ins_checks(bool report)
|
||||
{
|
||||
if ((checks_to_perform & ARMING_CHECK_ALL) ||
|
||||
(checks_to_perform & ARMING_CHECK_INS)) {
|
||||
const AP_InertialSensor &ins = ahrs.get_ins();
|
||||
const AP_InertialSensor &ins = AP::ins();
|
||||
if (!ins.get_gyro_health_all()) {
|
||||
if (report) {
|
||||
gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: Gyros not healthy");
|
||||
|
Loading…
Reference in New Issue
Block a user