mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 00:53:34 +08:00
rc.sensors: moved common ms5611 start to rc.board_sensors per board
This commit is contained in:
committed by
Daniel Agar
parent
9c6d4e28ea
commit
e3b60cd9e7
@@ -15,11 +15,6 @@ then
|
|||||||
fmu i2c 2 100000
|
fmu i2c 2 100000
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# External SPI
|
|
||||||
ms5611 -S start
|
|
||||||
|
|
||||||
# Internal SPI (auto detect ms5611 or ms5607)
|
|
||||||
ms5611 -T 0 -s start
|
|
||||||
|
|
||||||
adc start
|
adc start
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -14,3 +14,6 @@ mpu6000 -s -R 8 start
|
|||||||
mpu9250 -s -R 8 start
|
mpu9250 -s -R 8 start
|
||||||
lsm303d -R 10 start
|
lsm303d -R 10 start
|
||||||
l3gd20 -R 14 start
|
l3gd20 -R 14 start
|
||||||
|
|
||||||
|
# Internal SPI
|
||||||
|
ms5611 -s start
|
||||||
|
|||||||
@@ -18,3 +18,6 @@ mpu6000 -R 2 -T 20602 start
|
|||||||
|
|
||||||
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||||
mpu9250 -R 2 start
|
mpu9250 -R 2 start
|
||||||
|
|
||||||
|
# Internal SPI
|
||||||
|
ms5611 -s start
|
||||||
|
|||||||
@@ -24,4 +24,3 @@ ist8310 -C -b 1 start
|
|||||||
ist8310 -C -b 2 start
|
ist8310 -C -b 2 start
|
||||||
hmc5883 -C -T -X start
|
hmc5883 -C -T -X start
|
||||||
qmc5883 -X start
|
qmc5883 -X start
|
||||||
|
|
||||||
|
|||||||
@@ -14,3 +14,6 @@ ist8310 -C -b 1 -R 4 start
|
|||||||
aerofc_adc start
|
aerofc_adc start
|
||||||
|
|
||||||
ll40ls start i2c
|
ll40ls start i2c
|
||||||
|
|
||||||
|
# Internal SPI (auto detect ms5611 or ms5607)
|
||||||
|
ms5611 -T 0 -s start
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ hmc5883 -C -T -I -R 4 start
|
|||||||
# Internal SPI bus ICM-20608-G
|
# Internal SPI bus ICM-20608-G
|
||||||
mpu6000 -T 20608 start
|
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
|
set BOARD_FMUV3 0
|
||||||
|
|
||||||
# V3 build hwtypecmp supports V2|V2M|V30
|
# V3 build hwtypecmp supports V2|V2M|V30
|
||||||
@@ -59,6 +65,9 @@ then
|
|||||||
# sensor heating is available, but we disable it for now
|
# sensor heating is available, but we disable it for now
|
||||||
param set SENS_EN_THERMAL 0
|
param set SENS_EN_THERMAL 0
|
||||||
|
|
||||||
|
# External SPI
|
||||||
|
ms5611 -S start
|
||||||
|
|
||||||
# external L3GD20H is rotated 180 degrees yaw
|
# external L3GD20H is rotated 180 degrees yaw
|
||||||
l3gd20 -X -R 4 start
|
l3gd20 -X -R 4 start
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ hmc5883 -C -T -I -R 4 start
|
|||||||
# Internal SPI bus ICM-20608-G
|
# Internal SPI bus ICM-20608-G
|
||||||
mpu6000 -T 20608 start
|
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
|
set BOARD_FMUV3 0
|
||||||
|
|
||||||
# V3 build hwtypecmp supports V2|V2M|V30
|
# V3 build hwtypecmp supports V2|V2M|V30
|
||||||
@@ -67,6 +73,9 @@ then
|
|||||||
ak09916 -X -R 6 start
|
ak09916 -X -R 6 start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# External SPI
|
||||||
|
ms5611 -S start
|
||||||
|
|
||||||
# external L3GD20H is rotated 180 degrees yaw
|
# external L3GD20H is rotated 180 degrees yaw
|
||||||
l3gd20 -X -R 4 start
|
l3gd20 -X -R 4 start
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ qmc5883 -X start
|
|||||||
# expansion i2c used for BMM150 rotated by 90deg
|
# expansion i2c used for BMM150 rotated by 90deg
|
||||||
bmm150 -X -R 2 start
|
bmm150 -X -R 2 start
|
||||||
|
|
||||||
|
# Internal SPI
|
||||||
|
ms5611 -s start
|
||||||
|
|
||||||
# For Teal One airframe
|
# For Teal One airframe
|
||||||
if param compare SYS_AUTOSTART 4250
|
if param compare SYS_AUTOSTART 4250
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -21,3 +21,6 @@ qmc5883 -X start
|
|||||||
|
|
||||||
# RM3100
|
# RM3100
|
||||||
rm3100 start
|
rm3100 start
|
||||||
|
|
||||||
|
# Internal SPI
|
||||||
|
ms5611 -s start
|
||||||
|
|||||||
@@ -27,3 +27,6 @@ ist8310 -C -b 5 start
|
|||||||
|
|
||||||
# Possible pmw3901 optical flow sensor
|
# Possible pmw3901 optical flow sensor
|
||||||
pmw3901 start
|
pmw3901 start
|
||||||
|
|
||||||
|
# Internal SPI
|
||||||
|
ms5611 -s start
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
# UVify UVF4 specific board sensors init
|
# UVify UVF4 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Internal SPI
|
||||||
|
ms5611 -s start
|
||||||
|
|
||||||
# Draco-R
|
# Draco-R
|
||||||
if param compare SYS_AUTOSTART 6002
|
if param compare SYS_AUTOSTART 6002
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user