mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Always start airspeed
This ensures we get readings in the log and in the telemetry even if the sensor is disabled.
This commit is contained in:
@@ -124,8 +124,8 @@ then
|
|||||||
# differential pressure sensors
|
# differential pressure sensors
|
||||||
if [ ${VEHICLE_TYPE} = fw -o ${VEHICLE_TYPE} = vtol ]
|
if [ ${VEHICLE_TYPE} = fw -o ${VEHICLE_TYPE} = vtol ]
|
||||||
then
|
then
|
||||||
if param compare CBRK_AIRSPD_CHK 0
|
# Always try to start the airspeed sensors
|
||||||
then
|
# even if their usage might be disabled
|
||||||
sdp3x_airspeed start -X -q
|
sdp3x_airspeed start -X -q
|
||||||
sdp3x_airspeed start -X -a 0x22 -q
|
sdp3x_airspeed start -X -a 0x22 -q
|
||||||
|
|
||||||
@@ -144,7 +144,6 @@ then
|
|||||||
|
|
||||||
ets_airspeed start -X -q
|
ets_airspeed start -X -q
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user