AP_Arming: use ins singleton

This commit is contained in:
Peter Barker 2018-03-10 20:35:13 +11:00 committed by Lucas De Marchi
parent 1dabcc473d
commit f0d06e7a9c

View File

@ -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");