From f61591c426a0c8cf08e82a6268a82a2e0c1d7db9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 14 Feb 2018 16:35:51 +1100 Subject: [PATCH] AP_Compass: added SP01 board type --- libraries/AP_Compass/AP_Compass.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 9d20dff1e1..19cd5fa01e 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -713,6 +713,11 @@ void Compass::_detect_backends(void) AP_Compass_AK8963::name, false); break; + case AP_BoardConfig::PX4_BOARD_SP01: + ADD_BACKEND(DRIVER_AK8963, AP_Compass_AK8963::probe_mpu9250(*this, 1, ROTATION_NONE), + AP_Compass_AK8963::name, false); + break; + case AP_BoardConfig::PX4_BOARD_PIXRACER: ADD_BACKEND(DRIVER_HMC5883, AP_Compass_HMC5843::probe(*this, hal.spi->get_device(HAL_COMPASS_HMC5843_NAME), false, ROTATION_PITCH_180),