mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Adding AK09916 driver to support the Here2 GNSS emulated mag (I2C) (#11837)
* drivers, magnetometer: added ak09916 driver to support the mag driver emulated by the Here2 gps * boards: set yaw 270 rotation for external ak09916 driver and only start it for the PH21 * drivers: only start ak09916 when icm20948 is not available on a ph21 setup
This commit is contained in:
committed by
Daniel Agar
parent
5a50f96bcf
commit
95a0803b14
@@ -60,7 +60,11 @@ then
|
||||
param set SENS_EN_THERMAL 0
|
||||
|
||||
# ICM20948 as external magnetometer on I2C (e.g. Here GPS)
|
||||
icm20948 -X -M -R 6 start
|
||||
if ! icm20948 -X -M -R 6 start
|
||||
then
|
||||
# external emulated AK09916 (Here2) is rotated 270 degrees yaw
|
||||
ak09916 -X -R 6 start
|
||||
fi
|
||||
|
||||
# external L3GD20H is rotated 180 degrees yaw
|
||||
l3gd20 -X -R 4 start
|
||||
|
||||
Reference in New Issue
Block a user