Commander: Allow commandline takeoff if already armed

This commit is contained in:
Lorenz Meier 2016-01-11 00:40:40 +01:00
parent 4d36cb848f
commit ecc53488dd

View File

@ -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;