mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
v6x: fix mag orientation for V6X009010 and V6X010010 (#21194)
This commit is contained in:
@@ -47,6 +47,7 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if ver hwtypecmp V6X000004 V6X001004 V6X004004 V6X005004
|
if ver hwtypecmp V6X000004 V6X001004 V6X004004 V6X005004
|
||||||
then
|
then
|
||||||
# Internal SPI bus ICM20649
|
# Internal SPI bus ICM20649
|
||||||
@@ -100,9 +101,15 @@ fi
|
|||||||
if ver hwtypecmp V6X002001
|
if ver hwtypecmp V6X002001
|
||||||
then
|
then
|
||||||
rm3100 -I -b 4 start
|
rm3100 -I -b 4 start
|
||||||
|
else
|
||||||
|
if ver hwtypecmp V6X009010 V6X010010
|
||||||
|
then
|
||||||
|
# Internal magnetometer on I2C
|
||||||
|
bmm150 -I -R 0 start
|
||||||
else
|
else
|
||||||
bmm150 -I -R 6 start
|
bmm150 -I -R 6 start
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# External compass on GPS1/I2C1 (the 3rd external bus): standard Holybro Pixhawk 4 or CUAV V5 GPS/compass puck (with lights, safety button, and buzzer)
|
# External compass on GPS1/I2C1 (the 3rd external bus): standard Holybro Pixhawk 4 or CUAV V5 GPS/compass puck (with lights, safety button, and buzzer)
|
||||||
ist8310 -X -b 1 -R 10 start
|
ist8310 -X -b 1 -R 10 start
|
||||||
|
|||||||
Reference in New Issue
Block a user