mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 01:40:35 +08:00
Preflight check: initialize VTOL flag before it is used
This commit is contained in:
committed by
Lorenz Meier
parent
b531e65f6a
commit
c069264752
@@ -1631,6 +1631,7 @@ int commander_thread_main(int argc, char *argv[])
|
||||
/* update vehicle status to find out vehicle type (required for preflight checks) */
|
||||
param_get(_param_sys_type, &(status.system_type)); // get system type
|
||||
status.is_rotary_wing = is_rotary_wing(&status) || is_vtol(&status);
|
||||
status.is_vtol = is_vtol(&status);
|
||||
|
||||
bool checkAirspeed = false;
|
||||
/* Perform airspeed check only if circuit breaker is not
|
||||
|
||||
Reference in New Issue
Block a user