mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +08:00
FW controllers initialize vtol_type to a non-valid value
- tailsitter is vtol type 0
This commit is contained in:
committed by
Lorenz Meier
parent
36e72a67fa
commit
8b63dbecde
@@ -456,6 +456,9 @@ FixedwingAttitudeControl::FixedwingAttitudeControl() :
|
||||
|
||||
_parameter_handles.bat_scale_en = param_find("FW_BAT_SCALE_EN");
|
||||
|
||||
// initialize to invalid VTOL type
|
||||
_parameters.vtol_type = -1;
|
||||
|
||||
/* fetch initial parameter values */
|
||||
parameters_update();
|
||||
}
|
||||
|
||||
@@ -94,6 +94,9 @@ FixedwingPositionControl::FixedwingPositionControl() :
|
||||
_parameter_handles.heightrate_ff = param_find("FW_T_HRATE_FF");
|
||||
_parameter_handles.speedrate_p = param_find("FW_T_SRATE_P");
|
||||
|
||||
// initialize to invalid vtol type
|
||||
_parameters.vtol_type = -1;
|
||||
|
||||
/* fetch initial parameter values */
|
||||
parameters_update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user