AP_InertialSensor: avoid SITL build on non-SITL
This commit is contained in:
parent
b6d1170c2e
commit
eb582ac0cc
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <SITL/SITL.h>
|
#include <SITL/SITL.h>
|
||||||
|
|
||||||
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
#include "AP_InertialSensor.h"
|
#include "AP_InertialSensor.h"
|
||||||
#include "AP_InertialSensor_Backend.h"
|
#include "AP_InertialSensor_Backend.h"
|
||||||
|
|
||||||
@ -36,3 +37,4 @@ private:
|
|||||||
uint64_t next_gyro_sample[INS_SITL_INSTANCES];
|
uint64_t next_gyro_sample[INS_SITL_INSTANCES];
|
||||||
uint64_t next_accel_sample[INS_SITL_INSTANCES];
|
uint64_t next_accel_sample[INS_SITL_INSTANCES];
|
||||||
};
|
};
|
||||||
|
#endif // CONFIG_HAL_BOARD
|
||||||
|
Loading…
Reference in New Issue
Block a user