Skip to content

Commit

Permalink
rc.sensors: moved common ms5611 start to rc.board_sensors per board
Browse files Browse the repository at this point in the history
  • Loading branch information
BazookaJoe1900 authored and dagar committed Sep 1, 2019
1 parent 9c6d4e2 commit e3b60cd
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 6 deletions.
5 changes: 0 additions & 5 deletions ROMFS/px4fmu_common/init.d/rc.sensors
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ then
fmu i2c 2 100000
fi

# External SPI
ms5611 -S start

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

adc start
fi
Expand Down
3 changes: 3 additions & 0 deletions boards/airmind/mindpx-v2/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ mpu6000 -s -R 8 start
mpu9250 -s -R 8 start
lsm303d -R 10 start
l3gd20 -R 14 start

# Internal SPI
ms5611 -s start
3 changes: 3 additions & 0 deletions boards/auav/x21/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ mpu6000 -R 2 -T 20602 start

# Internal SPI bus mpu9250 is rotated 90 deg yaw
mpu9250 -R 2 start

# Internal SPI
ms5611 -s start
1 change: 0 additions & 1 deletion boards/av/x-v1/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ ist8310 -C -b 1 start
ist8310 -C -b 2 start
hmc5883 -C -T -X start
qmc5883 -X start

3 changes: 3 additions & 0 deletions boards/intel/aerofc-v1/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ ist8310 -C -b 1 -R 4 start
aerofc_adc start

ll40ls start i2c

# Internal SPI (auto detect ms5611 or ms5607)
ms5611 -T 0 -s start
9 changes: 9 additions & 0 deletions boards/px4/fmu-v2/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ hmc5883 -C -T -I -R 4 start
# Internal SPI bus ICM-20608-G
mpu6000 -T 20608 start

# External SPI
ms5611 -S start

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

set BOARD_FMUV3 0

# V3 build hwtypecmp supports V2|V2M|V30
Expand Down Expand Up @@ -59,6 +65,9 @@ then
# sensor heating is available, but we disable it for now
param set SENS_EN_THERMAL 0

# External SPI
ms5611 -S start

# external L3GD20H is rotated 180 degrees yaw
l3gd20 -X -R 4 start

Expand Down
9 changes: 9 additions & 0 deletions boards/px4/fmu-v3/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ hmc5883 -C -T -I -R 4 start
# Internal SPI bus ICM-20608-G
mpu6000 -T 20608 start

# External SPI
ms5611 -S start

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

set BOARD_FMUV3 0

# V3 build hwtypecmp supports V2|V2M|V30
Expand Down Expand Up @@ -67,6 +73,9 @@ then
ak09916 -X -R 6 start
fi

# External SPI
ms5611 -S start

# external L3GD20H is rotated 180 degrees yaw
l3gd20 -X -R 4 start

Expand Down
3 changes: 3 additions & 0 deletions boards/px4/fmu-v4/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ qmc5883 -X start
# expansion i2c used for BMM150 rotated by 90deg
bmm150 -X -R 2 start

# Internal SPI
ms5611 -s start

# For Teal One airframe
if param compare SYS_AUTOSTART 4250
then
Expand Down
3 changes: 3 additions & 0 deletions boards/px4/fmu-v4pro/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ qmc5883 -X start

# RM3100
rm3100 start

# Internal SPI
ms5611 -s start
3 changes: 3 additions & 0 deletions boards/px4/fmu-v5/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ ist8310 -C -b 5 start

# Possible pmw3901 optical flow sensor
pmw3901 start

# Internal SPI
ms5611 -s start
3 changes: 3 additions & 0 deletions boards/uvify/core/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# UVify UVF4 specific board sensors init
#------------------------------------------------------------------------------

# Internal SPI
ms5611 -s start

# Draco-R
if param compare SYS_AUTOSTART 6002
then
Expand Down

0 comments on commit e3b60cd

Please sign in to comment.