allow local position for takeoff (e.g. flow)

This commit is contained in:
ChristophTobler
2017-02-06 16:48:37 +01:00
committed by Lorenz Meier
parent 194f0c1de8
commit 1f7fdb2386
4 changed files with 45 additions and 9 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ int commander_main(int argc, char *argv[])
if (!strcmp(argv[1], "takeoff")) {
/* see if we got a home position */
if (status_flags.condition_home_position_valid) {
if (status_flags.condition_local_position_valid) {
if (TRANSITION_DENIED != arm_disarm(true, &mavlink_log_pub, "command line")) {