mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 17:00:35 +08:00
geofence param @unit
This commit is contained in:
committed by
Lorenz Meier
parent
dc34328e67
commit
d10027996a
@@ -48,8 +48,14 @@
|
||||
*
|
||||
* 0 = none, 1 = warning (default), 2 = loiter, 3 = return to launch, 4 = fight termination
|
||||
*
|
||||
* @unit enum
|
||||
* @min 0
|
||||
* @max 4
|
||||
* @value 0 none
|
||||
* @value 1 warning
|
||||
* @value 2 loiter
|
||||
* @value 3 return
|
||||
* @value 4 terminate
|
||||
* @group Geofence
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GF_ACTION, 1);
|
||||
@@ -60,8 +66,11 @@ PARAM_DEFINE_INT32(GF_ACTION, 1);
|
||||
* Select which altitude reference should be used
|
||||
* 0 = WGS84, 1 = AMSL
|
||||
*
|
||||
* @unit enum
|
||||
* @min 0
|
||||
* @max 1
|
||||
* @value 0 WGS84
|
||||
* @value 1 AMSL
|
||||
* @group Geofence
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GF_ALTMODE, 0);
|
||||
@@ -73,8 +82,11 @@ PARAM_DEFINE_INT32(GF_ALTMODE, 0);
|
||||
* no dependence on the position estimator
|
||||
* 0 = global position, 1 = GPS
|
||||
*
|
||||
* @unit enum
|
||||
* @min 0
|
||||
* @max 1
|
||||
* @value 0 GPOS
|
||||
* @value 1 GPS
|
||||
* @group Geofence
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GF_SOURCE, 0);
|
||||
@@ -84,6 +96,7 @@ PARAM_DEFINE_INT32(GF_SOURCE, 0);
|
||||
*
|
||||
* Set how many subsequent position measurements outside of the fence are needed before geofence violation is triggered
|
||||
*
|
||||
* @unit
|
||||
* @min -1
|
||||
* @max 10
|
||||
* @group Geofence
|
||||
@@ -95,7 +108,7 @@ PARAM_DEFINE_INT32(GF_COUNT, -1);
|
||||
*
|
||||
* Set to > 0 to activate a geofence action if horizontal distance to home exceeds this value.
|
||||
*
|
||||
* @unit meters
|
||||
* @unit m
|
||||
* @min -1
|
||||
* @group Geofence
|
||||
*/
|
||||
@@ -106,7 +119,7 @@ PARAM_DEFINE_INT32(GF_MAX_HOR_DIST, -1);
|
||||
*
|
||||
* Set to > 0 to activate a geofence action if vertical distance to home exceeds this value.
|
||||
*
|
||||
* @unit meters
|
||||
* @unit m
|
||||
* @min -1
|
||||
* @group Geofence
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user