AP_InertialSensor: correct compilation of the Aero board

hwdef: make BMM150 internal

Need to choose force-external or not, assuming this one is on-board
This commit is contained in:
Peter Barker 2025-02-26 15:23:36 +11:00 committed by Peter Barker
parent 23ffc39afa
commit f2442f6b3e

View File

@ -14,6 +14,11 @@
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AP_InertialSensor_config.h"
#include "AP_InertialSensor_BMI160.h"
#include <utility>
#include <AP_HAL/AP_HAL.h>
@ -21,7 +26,10 @@
#include <AP_HAL/utility/sparse-endian.h>
#include <AP_Math/AP_Math.h>
#include "AP_InertialSensor_BMI160.h"
// need the Linux GPIO header for the Linux Aero target (BMI160_INT1_GPIO)
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <AP_HAL_Linux/GPIO.h>
#endif
/* Registers and bits definitions. The indented ones are the bits for the upper
* register. */