FW controllers initialize vtol_type to a non-valid value

- tailsitter is vtol type 0
This commit is contained in:
Daniel Agar
2018-02-06 23:59:50 -05:00
committed by Lorenz Meier
parent 36e72a67fa
commit 8b63dbecde
2 changed files with 6 additions and 0 deletions
@@ -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();
}