aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-09-21 18:03:31 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-09-21 18:07:00 +0200
commitd6b669f4971d8d7329f0bfd5ade64bed2bd3120f (patch)
tree2ee7b24a4ad41d556e0eb2ed0aa11df4d065b213
parent3f8793210b47bd8e09ed2adaabc2fab966db5df6 (diff)
downloadpx4-firmware-d6b669f4971d8d7329f0bfd5ade64bed2bd3120f.tar.gz
px4-firmware-d6b669f4971d8d7329f0bfd5ade64bed2bd3120f.tar.bz2
px4-firmware-d6b669f4971d8d7329f0bfd5ade64bed2bd3120f.zip
commander: improve output on gf violation
-rw-r--r--src/modules/commander/commander.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index 07fcb5d40..0ada8e978 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -1442,8 +1442,12 @@ int commander_thread_main(int argc, char *argv[])
static bool flight_termination_printed = false;
if (!flight_termination_printed) {
warnx("Flight termination because of navigator request or geofence");
+ mavlink_log_critical(mavlink_fd, "GF violation: flight termination");
flight_termination_printed = true;
}
+ if (counter % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0 ) {
+ mavlink_log_critical(mavlink_fd, "GF violation: flight termination");
+ }
} // no reset is done here on purpose, on geofence violation we want to stay in flighttermination
}