position_estimator_inav: GPS health detection changed, minor improvements

This commit is contained in:
Anton Babushkin
2013-09-19 19:14:34 +02:00
parent 8b992f720b
commit 4c23b482f8
2 changed files with 65 additions and 39 deletions
@@ -133,8 +133,14 @@ int multirotor_pos_control_main(int argc, char *argv[])
}
if (!strcmp(argv[1], "stop")) {
warnx("stop");
thread_should_exit = true;
if (thread_running) {
warnx("stop");
thread_should_exit = true;
} else {
warnx("app not started");
}
exit(0);
}