From 189138d6a1b17be491e8c6d5f561ac8130b2c12a Mon Sep 17 00:00:00 2001
From: Daniel Agar <daniel@agar.ca>
Date: Sun, 13 Mar 2016 15:22:48 -0400
Subject: [PATCH] navigator param @unit

---
 src/modules/navigator/navigator_params.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/modules/navigator/navigator_params.c b/src/modules/navigator/navigator_params.c
index 17e580c664..746193135d 100644
--- a/src/modules/navigator/navigator_params.c
+++ b/src/modules/navigator/navigator_params.c
@@ -45,7 +45,7 @@
  *
  * Default value of loiter radius for missions, loiter, RTL, etc. (fixedwing only).
  *
- * @unit meter
+ * @unit m
  * @min 25
  * @max 1000
  * @group Mission
@@ -57,7 +57,7 @@ PARAM_DEFINE_FLOAT(NAV_LOITER_RAD, 50.0f);
  *
  * Default acceptance radius, overridden by acceptance radius of waypoint if set.
  *
- * @unit meter
+ * @unit m
  * @min 0.05
  * @max 200.0
  * @group Mission
@@ -67,10 +67,9 @@ PARAM_DEFINE_FLOAT(NAV_ACC_RAD, 10.0f);
 /**
  * Set OBC mode for data link loss
  *
- * If set to 1 the behaviour on data link loss is set to a mode according to the OBC rules
+ * If set to 1 the behaviour on data link loss is set to a mode according to the Outback Challenge (OBC) rules
  *
- * @min 0
- * @max 1
+ * @unit boolean
  * @group Mission
  */
 PARAM_DEFINE_INT32(NAV_DLL_OBC, 0);
@@ -78,10 +77,9 @@ PARAM_DEFINE_INT32(NAV_DLL_OBC, 0);
 /**
  * Set OBC mode for rc loss
  *
- * If set to 1 the behaviour on data link loss is set to a mode according to the OBC rules
+ * If set to 1 the behaviour on data link loss is set to a mode according to the Outback Challenge (OBC) rules
  *
- * @min 0
- * @max 1
+ * @unit boolean
  * @group Mission
  */
 PARAM_DEFINE_INT32(NAV_RCL_OBC, 0);
@@ -91,7 +89,7 @@ PARAM_DEFINE_INT32(NAV_RCL_OBC, 0);
  *
  * Latitude of airfield home waypoint
  *
- * @unit degrees * 1e7
+ * @unit deg * 1e7
  * @min -900000000
  * @max 900000000
  * @group Data Link Loss
@@ -103,7 +101,7 @@ PARAM_DEFINE_INT32(NAV_AH_LAT, -265847810);
  *
  * Longitude of airfield home waypoint
  *
- * @unit degrees * 1e7
+ * @unit deg * 1e7
  * @min -1800000000
  * @max 1800000000
  * @group Data Link Loss
-- 
GitLab