From 8703d39475c044861a6fe1e07ae84dc00dd0edfc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Jun 2013 18:08:55 +1000 Subject: [PATCH] Copter: the INS object is needed for HIL_MODE_SENSORS otherwise we can't level, so can't arm --- ArduCopter/Parameters.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/Parameters.pde b/ArduCopter/Parameters.pde index 7f09d7e4ec..9b1ee0f897 100644 --- a/ArduCopter/Parameters.pde +++ b/ArduCopter/Parameters.pde @@ -935,7 +935,7 @@ const AP_Param::Info var_info[] PROGMEM = { // @Group: INS_ // @Path: ../libraries/AP_InertialSensor/AP_InertialSensor.cpp -#if HIL_MODE == HIL_MODE_DISABLED +#if HIL_MODE != HIL_MODE_ATTITUDE GOBJECT(ins, "INS_", AP_InertialSensor), #endif