Skip to content
Snippets Groups Projects
Commit 7dd58227 authored by Michael Oborne's avatar Michael Oborne
Browse files

AP fix sitl hil attitude mode.

parent 21f0ed00
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
// The following are the recommended settings for Xplane
// simulation. Remove the leading "/* and trailing "*/" to enable:
#define HIL_MODE HIL_MODE_DISABLED
//#define HIL_MODE HIL_MODE_DISABLED
/*
// HIL_MODE SELECTION
......
......@@ -224,6 +224,11 @@ AP_AHRS_HIL ahrs(&imu, g_gps);
AP_GPS_HIL g_gps_driver(NULL);
AP_Compass_HIL compass; // never used
AP_Baro_BMP085_HIL barometer;
#ifdef DESKTOP_BUILD
#include <SITL.h>
SITL sitl;
AP_InertialSensor_Oilpan ins( &adc );
#endif
#else
#error Unrecognised HIL_MODE setting.
......@@ -705,7 +710,9 @@ static void fast_loop()
// Read Airspeed
// -------------
if (airspeed.enabled()) {
#if HIL_MODE != HIL_MODE_ATTITUDE
read_airspeed();
#endif
}
#if HIL_MODE == HIL_MODE_SENSORS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment