Skip to content
Snippets Groups Projects
Commit 82b3e57a authored by DanielePettenuzzo's avatar DanielePettenuzzo Committed by Beat Küng
Browse files

rc.sensors: look for airspeed sensors on all busses

parent 035f240e
No related branches found
No related tags found
No related merge requests found
...@@ -343,11 +343,7 @@ if [ ${VEHICLE_TYPE} == fw -o ${VEHICLE_TYPE} == vtol ] ...@@ -343,11 +343,7 @@ if [ ${VEHICLE_TYPE} == fw -o ${VEHICLE_TYPE} == vtol ]
then then
if param compare CBRK_AIRSPD_CHK 0 if param compare CBRK_AIRSPD_CHK 0
then then
if sdp3x_airspeed start sdp3x_airspeed start -a
then
else
sdp3x_airspeed start -b 2
fi
# Pixhawk 2.1 has a MS5611 on I2C which gets wrongly # Pixhawk 2.1 has a MS5611 on I2C which gets wrongly
# detected as MS5525 because the chip manufacturer was so # detected as MS5525 because the chip manufacturer was so
...@@ -357,20 +353,13 @@ then ...@@ -357,20 +353,13 @@ then
then then
ms5525_airspeed start -b 2 ms5525_airspeed start -b 2
else else
ms5525_airspeed start ms5525_airspeed start -a
fi fi
if ms4525_airspeed start ms4525_airspeed start -a
then
else ets_airspeed start -a
ms4525_airspeed start -b 2
fi
if ets_airspeed start
then
else
ets_airspeed start -b 1
fi
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment