From 9b33280795511fe3f035a93890b1a64c7f503189 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Thu, 4 Aug 2016 11:32:02 -0700 Subject: [PATCH] APM_OBC: set param "Enable" to be FLAG_ENABLE and move to top --- libraries/APM_OBC/APM_OBC.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libraries/APM_OBC/APM_OBC.cpp b/libraries/APM_OBC/APM_OBC.cpp index 4813e95dce..87301533e2 100644 --- a/libraries/APM_OBC/APM_OBC.cpp +++ b/libraries/APM_OBC/APM_OBC.cpp @@ -30,6 +30,13 @@ extern const AP_HAL::HAL& hal; // table of user settable parameters const AP_Param::GroupInfo APM_OBC::var_info[] = { + + // @Param: ENABLE + // @DisplayName: Enable Advanced Failsafe + // @Description: This enables the advanced failsafe system. If this is set to zero (disable) then all the other AFS options have no effect + // @User: Advanced + AP_GROUPINFO_FLAGS("ENABLE", 11, APM_OBC, _enable, 0, AP_PARAM_FLAG_ENABLE), + // @Param: MAN_PIN // @DisplayName: Manual Pin // @Description: This sets a digital output pin to set high when in manual mode @@ -93,11 +100,7 @@ const AP_Param::GroupInfo APM_OBC::var_info[] = { // @User: Advanced AP_GROUPINFO("QNH_PRESSURE", 10, APM_OBC, _qnh_pressure, 0), - // @Param: ENABLE - // @DisplayName: Enable Advanced Failsafe - // @Description: This enables the advanced failsafe system. If this is set to zero (disable) then all the other AFS options have no effect - // @User: Advanced - AP_GROUPINFO("ENABLE", 11, APM_OBC, _enable, 0), + // *NOTE* index 11 is "Enable" and is moved to the top to allow AP_PARAM_FLAG_ENABLE // *NOTE* index 12 of AP_Int16 RC_FAIL_MS was depreciated. Replaced by RC_FAIL_TIME.