Skip to content

Commit

Permalink
rc.sensors ms5611 driver auto detect ms5607/ms5611
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar authored and LorenzMeier committed Mar 6, 2018
1 parent ba90952 commit 6f47894
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ROMFS/px4fmu_common/init.d/rc.sensors
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ else
# External SPI
ms5611 -S start

# Internal SPI
ms5611 -s start
# Internal SPI (auto detect ms5611 or ms5607)
ms5611 -T 0 -s start

# Blacksheep telemetry
bst start
Expand Down Expand Up @@ -136,9 +136,9 @@ then
then
# v2.0 internal MPU6000 is rotated 180 deg roll, 270 deg yaw
mpu6000 -R 14 start

# v2.0 Has internal hmc5883 on SPI1
hmc5883 -C -T -S -R 8 start

fi

if [ $BOARD_FMUV3 == 21 ]
Expand All @@ -165,6 +165,8 @@ then
l3gd20 start
lsm303d start
fi

unset BOARD_FMUV3
fi

if ver hwcmp PX4_SAME70XPLAINED_V1
Expand Down

0 comments on commit 6f47894

Please sign in to comment.