mirror of https://github.com/ArduPilot/ardupilot
AP_Compass: added SP01 board type
This commit is contained in:
parent
f7ec2618a3
commit
f61591c426
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue