mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-11 07:18:45 +08:00
Airspeed Selector: repurpose wind estimator into an airspeed (selection, validation) module.
This new airspeed module does: -runns an airspeed validator for every airspeed sensor present, which checks measurement validity and estimates an airspeed scale -selects another airspeed sensor if for the current one a failure is detected -estimates airspeed with groundspeed-windspeed if no valid airspeed sensor is present -outputs airspeed_validated topic Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Roman Bapst
parent
970e362e9a
commit
cedf14e2ba
@@ -37,7 +37,6 @@ then
|
||||
|
||||
param set RWTO_TKOFF 1
|
||||
|
||||
param set WEST_EN 1
|
||||
fi
|
||||
|
||||
set MIXER_FILE etc/mixers-sitl/plane_sitl.main.mix
|
||||
|
||||
@@ -38,7 +38,6 @@ then
|
||||
param set VT_MOT_COUNT 4
|
||||
param set VT_TYPE 2
|
||||
|
||||
param set WEST_EN 1
|
||||
fi
|
||||
|
||||
set MAV_TYPE 22
|
||||
|
||||
@@ -38,7 +38,6 @@ then
|
||||
param set VT_MOT_COUNT 0
|
||||
param set VT_TYPE 0
|
||||
|
||||
param set WEST_EN 1
|
||||
fi
|
||||
|
||||
set MAV_TYPE 20
|
||||
|
||||
@@ -41,7 +41,6 @@ then
|
||||
param set VT_ELEV_MC_LOCK 0
|
||||
param set VT_TYPE 1
|
||||
|
||||
param set WEST_EN 1
|
||||
fi
|
||||
|
||||
set MAV_TYPE 21
|
||||
|
||||
@@ -164,7 +164,6 @@ then
|
||||
|
||||
param set TRIG_INTERFACE 3
|
||||
|
||||
param set WEST_EN 0
|
||||
fi
|
||||
|
||||
# Adapt timeout parameters if simulation runs faster or slower than realtime.
|
||||
@@ -213,10 +212,6 @@ sensors start
|
||||
commander start
|
||||
navigator start
|
||||
|
||||
if param compare WEST_EN 1
|
||||
then
|
||||
wind_estimator start
|
||||
fi
|
||||
|
||||
if ! param compare MNT_MODE_IN -1
|
||||
then
|
||||
|
||||
@@ -15,9 +15,8 @@ ekf2 start
|
||||
#
|
||||
fw_att_control start
|
||||
fw_pos_control_l1 start
|
||||
|
||||
airspeed_selector start
|
||||
#
|
||||
# Start Land Detector.
|
||||
#
|
||||
land_detector start fixedwing
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ mc_att_control start
|
||||
mc_pos_control start
|
||||
fw_att_control start
|
||||
fw_pos_control_l1 start
|
||||
airspeed_selector start
|
||||
|
||||
#
|
||||
# Start Land Detector
|
||||
# Multicopter for now until we have something for VTOL
|
||||
#
|
||||
land_detector start vtol
|
||||
|
||||
|
||||
@@ -435,14 +435,6 @@ else
|
||||
#
|
||||
navigator start
|
||||
|
||||
#
|
||||
# Start the standalone wind estimator.
|
||||
#
|
||||
if param compare WEST_EN 1
|
||||
then
|
||||
wind_estimator start
|
||||
fi
|
||||
|
||||
#
|
||||
# Start a thermal calibration if required.
|
||||
#
|
||||
|
||||
@@ -52,7 +52,7 @@ px4_add_board(
|
||||
#simulator
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
esc_calib
|
||||
|
||||
@@ -72,7 +72,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -87,7 +87,7 @@ px4_add_board(
|
||||
simulator
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
#bl_update
|
||||
|
||||
@@ -76,7 +76,7 @@ px4_add_board(
|
||||
#sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
param
|
||||
|
||||
@@ -87,7 +87,7 @@ px4_add_board(
|
||||
simulator
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
#bl_update
|
||||
|
||||
@@ -76,7 +76,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
param
|
||||
|
||||
@@ -78,7 +78,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -79,7 +79,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
#bl_update
|
||||
|
||||
@@ -50,7 +50,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
esc_calib
|
||||
|
||||
@@ -48,7 +48,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
esc_calib
|
||||
|
||||
@@ -38,7 +38,7 @@ px4_add_board(
|
||||
sensors
|
||||
sih
|
||||
#vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -55,7 +55,7 @@ px4_add_board(
|
||||
#simulator
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
dyn
|
||||
|
||||
@@ -53,7 +53,7 @@ px4_add_board(
|
||||
#simulator
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
dyn
|
||||
|
||||
@@ -55,7 +55,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
#vtol_att_control
|
||||
#wind_estimator
|
||||
#airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -59,7 +59,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
#vtol_att_control
|
||||
#wind_estimator
|
||||
#airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -74,7 +74,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -67,7 +67,7 @@ px4_add_board(
|
||||
sih
|
||||
#vmount
|
||||
#vtol_att_control
|
||||
#wind_estimator
|
||||
#airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
#bl_update
|
||||
|
||||
@@ -41,7 +41,7 @@ px4_add_board(
|
||||
sensors
|
||||
sih
|
||||
#vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
#config
|
||||
|
||||
@@ -86,7 +86,7 @@ px4_add_board(
|
||||
sensors
|
||||
vmount
|
||||
vtol_att_control
|
||||
#wind_estimator
|
||||
#airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -58,7 +58,7 @@ px4_add_board(
|
||||
navigator
|
||||
sensors
|
||||
vmount
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -82,7 +82,7 @@ px4_add_board(
|
||||
sensors
|
||||
vmount
|
||||
#vtol_att_control
|
||||
#wind_estimator
|
||||
#airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -82,7 +82,7 @@ px4_add_board(
|
||||
sensors
|
||||
vmount
|
||||
vtol_att_control
|
||||
#wind_estimator
|
||||
#airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
#bl_update
|
||||
|
||||
@@ -86,7 +86,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -86,7 +86,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -85,7 +85,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -70,7 +70,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -73,7 +73,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -70,7 +70,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -84,7 +84,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -84,7 +84,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -84,7 +84,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -58,7 +58,7 @@ px4_add_board(
|
||||
navigator
|
||||
sensors
|
||||
vmount
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -67,7 +67,7 @@ px4_add_board(
|
||||
sensors
|
||||
sih
|
||||
vmount
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -83,7 +83,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -83,7 +83,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -84,7 +84,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -68,7 +68,7 @@ px4_add_board(
|
||||
navigator
|
||||
sensors
|
||||
vmount
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -74,7 +74,7 @@ px4_add_board(
|
||||
sensors
|
||||
sih
|
||||
vmount
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -85,7 +85,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -84,7 +84,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
bl_update
|
||||
|
||||
@@ -47,7 +47,7 @@ px4_add_board(
|
||||
sih
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
dyn
|
||||
|
||||
@@ -46,7 +46,7 @@ px4_add_board(
|
||||
#simulator
|
||||
vmount
|
||||
vtol_att_control
|
||||
wind_estimator
|
||||
airspeed_selector
|
||||
|
||||
SYSTEMCMDS
|
||||
dyn
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user