aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Jansen <jnsn.johan@gmail.com>2015-03-03 13:29:32 +0100
committerJohan Jansen <jnsn.johan@gmail.com>2015-03-03 13:29:32 +0100
commitee6da71efaad4ef9935803494201a47ace6d8e2a (patch)
treeb747c7f7dd4c560aa0e35af50297d4296838e107
parent35e0faa48aba9c951e8e00ebe5bc132277e76bda (diff)
downloadpx4-firmware-ee6da71efaad4ef9935803494201a47ace6d8e2a.tar.gz
px4-firmware-ee6da71efaad4ef9935803494201a47ace6d8e2a.tar.bz2
px4-firmware-ee6da71efaad4ef9935803494201a47ace6d8e2a.zip
Commander: Timeout position estimates if we receive none for 1 full second
-rw-r--r--src/modules/commander/commander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index 74ebe0ae4..0ea8511da 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -133,7 +133,7 @@ extern struct system_load_s system_load;
#define STICK_ON_OFF_HYSTERESIS_TIME_MS 1000
#define STICK_ON_OFF_COUNTER_LIMIT (STICK_ON_OFF_HYSTERESIS_TIME_MS*COMMANDER_MONITORING_LOOPSPERMSEC)
-#define POSITION_TIMEOUT (2 * 1000 * 1000) /**< consider the local or global position estimate invalid after 600ms */
+#define POSITION_TIMEOUT (1 * 1000 * 1000) /**< consider the local or global position estimate invalid after 1000ms */
#define FAILSAFE_DEFAULT_TIMEOUT (3 * 1000 * 1000) /**< hysteresis time - the failsafe will trigger after 3 seconds in this state */
#define OFFBOARD_TIMEOUT 500000
#define DIFFPRESS_TIMEOUT 2000000