From ecc53488dde217412bb5126e97427df2fe2bccc9 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 11 Jan 2016 00:40:40 +0100 Subject: [PATCH] Commander: Allow commandline takeoff if already armed --- src/modules/commander/commander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 03684847e6..dfadb05e5b 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -417,7 +417,7 @@ int commander_main(int argc, char *argv[]) /* see if we got a home position */ if (status.condition_home_position_valid) { - if (TRANSITION_CHANGED == arm_disarm(true, mavlink_fd_local, "command line")) { + if (TRANSITION_DENIED != arm_disarm(true, mavlink_fd_local, "command line")) { vehicle_command_s cmd = {}; cmd.target_system = status.system_id;