aboutsummaryrefslogtreecommitdiff
path: root/src/modules/navigator/mission_params.c
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-09-03 21:18:32 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-09-03 21:30:56 +0200
commit5a35d20b7ba7f13356050096024c416235ba7a1a (patch)
treecec65ef947c3c2c80a1de3ca8fff7e543d31e307 /src/modules/navigator/mission_params.c
parent2761f98ab639c6e3737829adef179b372d9facce (diff)
downloadpx4-firmware-5a35d20b7ba7f13356050096024c416235ba7a1a.tar.gz
px4-firmware-5a35d20b7ba7f13356050096024c416235ba7a1a.tar.bz2
px4-firmware-5a35d20b7ba7f13356050096024c416235ba7a1a.zip
FOH mode for altitude
This introduces a parameter for the navigator. When enabled the navigator publishes a first order old (FOH) type altitude setpoint instead of the default zero order hold. For takeoff and landing the FOH mode is not active. The FOH altitude is calculated such that the sp reaches the altitude of the waypoint when the system is at a horizontal distance equal to the acceptance radius. Also the altitude setpoint will only converge towards the waypoint altitude but never diverge.
Diffstat (limited to 'src/modules/navigator/mission_params.c')
-rw-r--r--src/modules/navigator/mission_params.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/navigator/mission_params.c b/src/modules/navigator/mission_params.c
index d15e1e771..04c01fe51 100644
--- a/src/modules/navigator/mission_params.c
+++ b/src/modules/navigator/mission_params.c
@@ -82,3 +82,16 @@ PARAM_DEFINE_INT32(MIS_ONBOARD_EN, 1);
* @group Mission
*/
PARAM_DEFINE_FLOAT(MIS_DIST_1WP, 500);
+
+/**
+ * Altitude setpoint mode
+ *
+ * 0: the system will follow a zero order hold altitude setpoint
+ * 1: the system will follow a first order hold altitude setpoint
+ * values follow the definition in enum mission_altitude_mode
+ *
+ * @min 0
+ * @max 1
+ * @group Mission
+ */
+PARAM_DEFINE_INT32(MIS_ALTMODE, 0);