Skip to content

Commit

Permalink
6x: fix internal mag rotation
Browse files Browse the repository at this point in the history
From looking at the history the BMM150 rotation was initially 0. Then,
this was changed to 6 when the intent was to only change it for Skynode.

A bit later, the rotation was changed back to 0, but only for Skynode.

This tells me that rotation 0 was correct for all 6X including Skynode
all along.

Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes committed Sep 11, 2023
1 parent 9fe8bd6 commit f2bb548
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions boards/px4/fmu-v6x/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,8 @@ if ver hwtypecmp V6X002001
then
rm3100 -I -b 4 start
else
if ver hwtypecmp V6X009010 V6X010010
then
# Internal magnetometer on I2C
bmm150 -I -R 0 start
else
bmm150 -I -R 6 start
fi
# Internal magnetometer on I2C
bmm150 -I -R 0 start
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)
Expand Down

0 comments on commit f2bb548

Please sign in to comment.