AP_InertialSensor: add HAL_INS_ENABLED
This commit is contained in:
parent
69009568b2
commit
c4caf2ff54
@ -2,6 +2,7 @@
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#if HAL_INS_ENABLED
|
||||
#include <AP_HAL/I2CDevice.h>
|
||||
#include <AP_HAL/SPIDevice.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
@ -2293,3 +2294,6 @@ AP_InertialSensor &ins()
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif //#if HAL_INS_ENABLED
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#include "AP_InertialSensor.h"
|
||||
|
||||
#if HAL_INS_ENABLED
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include <AP_Logger/AP_Logger.h>
|
||||
|
||||
@ -276,3 +278,4 @@ void AP_InertialSensor::BatchSampler::sample(uint8_t _instance, AP_InertialSenso
|
||||
|
||||
data_write_offset++; // may unblock the reading process
|
||||
}
|
||||
#endif //#if HAL_INS_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user