From c0692647523e578bd561f0069ff1e96f54b25c67 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Thu, 24 Nov 2016 12:18:08 +0100 Subject: [PATCH] Preflight check: initialize VTOL flag before it is used --- src/modules/commander/commander.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index e92a7e9bad..fcd3034935 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -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