AP_InertialSensor: avoid SITL build on non-SITL

This commit is contained in:
Andrew Tridgell 2019-11-10 22:18:48 +11:00
parent b6d1170c2e
commit eb582ac0cc
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#include <SITL/SITL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include "AP_InertialSensor.h"
#include "AP_InertialSensor_Backend.h"
@ -36,3 +37,4 @@ private:
uint64_t next_gyro_sample[INS_SITL_INSTANCES];
uint64_t next_accel_sample[INS_SITL_INSTANCES];
};
#endif // CONFIG_HAL_BOARD