AP_InertialSensor: add HAL_INS_ENABLED

This commit is contained in:
Siddharth Purohit 2021-06-23 10:52:56 +05:30 committed by Andrew Tridgell
parent 69009568b2
commit c4caf2ff54
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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