AC_Fence: add always land option

This commit is contained in:
Raouf 2018-07-24 13:19:12 +09:00 committed by Randy Mackay
parent ccefe9da84
commit cb8210599e
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ const AP_Param::GroupInfo AC_Fence::var_info[] = {
// @Param: ACTION
// @DisplayName: Fence Action
// @Description: What action should be taken when fence is breached
// @Values: 0:Report Only,1:RTL or Land
// @Values: 0:Report Only,1:RTL or Land, 2:Always land
// @User: Standard
AP_GROUPINFO("ACTION", 2, AC_Fence, _action, AC_FENCE_ACTION_RTL_AND_LAND),

View File

@ -17,7 +17,7 @@
// valid actions should a fence be breached
#define AC_FENCE_ACTION_REPORT_ONLY 0 // report to GCS that boundary has been breached but take no further action
#define AC_FENCE_ACTION_RTL_AND_LAND 1 // return to launch and, if that fails, land
#define AC_FENCE_ACTION_ALWAYS_LAND 2 // always land
// default boundaries
#define AC_FENCE_ALT_MAX_DEFAULT 100.0f // default max altitude is 100m
#define AC_FENCE_ALT_MIN_DEFAULT -10.0f // default maximum depth in meters