mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 05:23: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
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user