Hotfix: Ensured there are never two filters running at the same time if auto-magic happens via USB link

This commit is contained in:
Lorenz Meier
2013-07-18 15:20:36 +02:00
parent a5c8d8c5f2
commit e19d2e94ec
4 changed files with 19 additions and 7 deletions
@@ -121,12 +121,13 @@ int att_pos_estimator_ekf_main(int argc, char *argv[])
if (!strcmp(argv[1], "status")) {
if (thread_running) {
warnx("is running\n");
exit(0);
} else {
warnx("not started\n");
exit(1);
}
exit(0);
}
usage("unrecognized command");
@@ -139,10 +139,12 @@ int attitude_estimator_ekf_main(int argc, char *argv[])
if (!strcmp(argv[1], "status")) {
if (thread_running) {
printf("\tattitude_estimator_ekf app is running\n");
warnx("running");
exit(0);
} else {
printf("\tattitude_estimator_ekf app not started\n");
warnx("not started");
exit(1);
}
exit(0);
@@ -139,10 +139,12 @@ int attitude_estimator_so3_comp_main(int argc, char *argv[])
if (!strcmp(argv[1], "status")) {
if (thread_running) {
printf("\tattitude_estimator_so3_comp app is running\n");
warnx("running");
exit(0);
} else {
printf("\tattitude_estimator_so3_comp app not started\n");
warnx("not started");
exit(1);
}
exit(0);