aboutsummaryrefslogtreecommitdiff
path: root/src/modules/navigator/geofence_params.c
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-08-24 11:14:15 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-08-24 11:14:15 +0200
commit8262739b6219f54e7ea31de93cd81304df311ab9 (patch)
tree7d64aaab3252306b0925a2f2444b8865ac90cb66 /src/modules/navigator/geofence_params.c
parent3c10b78e2044ec2cbe36d4de35c7ac8a936521ae (diff)
downloadpx4-firmware-8262739b6219f54e7ea31de93cd81304df311ab9.tar.gz
px4-firmware-8262739b6219f54e7ea31de93cd81304df311ab9.tar.bz2
px4-firmware-8262739b6219f54e7ea31de93cd81304df311ab9.zip
geofence: can select gps instead of global position
Diffstat (limited to 'src/modules/navigator/geofence_params.c')
-rw-r--r--src/modules/navigator/geofence_params.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/modules/navigator/geofence_params.c b/src/modules/navigator/geofence_params.c
index 29b42cd54..32902ee97 100644
--- a/src/modules/navigator/geofence_params.c
+++ b/src/modules/navigator/geofence_params.c
@@ -63,10 +63,23 @@ PARAM_DEFINE_INT32(GF_ON, 1);
* Geofence altitude mode
*
* Select which altitude reference should be used
- * 0 = GPS, 1 = AMSL
+ * 0 = WGS84, 1 = AMSL
*
* @min 0
* @max 1
* @group Geofence
*/
-PARAM_DEFINE_INT32(GF_ALTMODE, 1);
+PARAM_DEFINE_INT32(GF_ALTMODE, 0);
+
+/**
+ * Geofence source
+ *
+ * Select which position source should be used. Selecting GPS instead of global position makes sure that there is
+ * no dependence on the position estimator
+ * 0 = global position, 1 = GPS
+ *
+ * @min 0
+ * @max 1
+ * @group Geofence
+ */
+PARAM_DEFINE_INT32(GF_SOURCE, 0);