Added finish to missions - auto-land or stabilize

This commit is contained in:
Jason Short 2012-01-07 22:27:16 -08:00
parent 9c8122e061
commit 48c211e055

View File

@ -58,7 +58,14 @@ static void update_commands()
command_nav_queue.id = NO_COMMAND;
}
}else{
// we are out of commands
g.command_index = command_nav_index = 255;
// if we are on the ground, enter stabilize, else Land
if (land_complete == true){
set_mode(STABILIZE);
} else {
set_mode(LAND);
}
}
}