AP_Compass: added SP01 board type

This commit is contained in:
Andrew Tridgell 2018-02-14 16:35:51 +11:00
parent f7ec2618a3
commit f61591c426
1 changed files with 5 additions and 0 deletions

View File

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