mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 03:27:35 +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
@@ -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