aboutsummaryrefslogtreecommitdiff
path: root/src/modules/att_pos_estimator_ekf
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-07-18 15:20:36 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-07-18 15:20:36 +0200
commite19d2e94ec5c38c2800a7001a2a04102734012d4 (patch)
treee4bf0cfc838eb7d462afefbd2e35f6183d904689 /src/modules/att_pos_estimator_ekf
parenta5c8d8c5f20584f32acaa03e69681a13799fff6d (diff)
downloadpx4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.tar.gz
px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.tar.bz2
px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.zip
Hotfix: Ensured there are never two filters running at the same time if auto-magic happens via USB link
Diffstat (limited to 'src/modules/att_pos_estimator_ekf')
-rw-r--r--src/modules/att_pos_estimator_ekf/kalman_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/att_pos_estimator_ekf/kalman_main.cpp b/src/modules/att_pos_estimator_ekf/kalman_main.cpp
index 4befdc879..372b2d162 100644
--- a/src/modules/att_pos_estimator_ekf/kalman_main.cpp
+++ b/src/modules/att_pos_estimator_ekf/kalman_main.cpp
@@ -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");