From d97ead81aa249ba82f518e6f7c59bd50e5f0d5d3 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Wed, 28 Oct 2015 17:06:38 +0100 Subject: [PATCH] set talt timeout to 10sec --- src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp index 080b96c5ce..0b07ceda39 100644 --- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp +++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp @@ -1323,7 +1323,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi // we have started landing phase but don't have valid terrain // wait for some time, maybe we will soon get a valid estimate // until then just use the altitude of the landing waypoint - if (hrt_elapsed_time(&_time_started_landing) < 5 * 1000 * 1000) { + if (hrt_elapsed_time(&_time_started_landing) < 10 * 1000 * 1000) { terrain_alt = _pos_sp_triplet.current.alt; } else { // still no valid terrain, abort landing