AP_landing: hide deepstall params with enable flag

This commit is contained in:
Iampete1 2021-08-08 22:27:09 +01:00 committed by Andrew Tridgell
parent 280171e96b
commit 2bad7734db
1 changed files with 9 additions and 7 deletions

View File

@ -138,12 +138,19 @@ const AP_Param::GroupInfo AP_Landing::var_info[] = {
// @User: Advanced
AP_GROUPINFO("FLAP_PERCNT", 13, AP_Landing, flap_percent, 0),
// @Param: OPTIONS
// @DisplayName: Landing options bitmask
// @Description: Bitmask of options to use with landing.
// @Bitmask: 0: honor min throttle during landing flare
// @User: Advanced
AP_GROUPINFO("OPTIONS", 16, AP_Landing, _options, 0),
// @Param: TYPE
// @DisplayName: Auto-landing type
// @Description: Specifies the auto-landing type to use
// @Values: 0:Standard Glide Slope, 1:Deepstall
// @User: Standard
AP_GROUPINFO("TYPE", 14, AP_Landing, type, TYPE_STANDARD_GLIDE_SLOPE),
AP_GROUPINFO_FLAGS("TYPE", 14, AP_Landing, type, TYPE_STANDARD_GLIDE_SLOPE, AP_PARAM_FLAG_ENABLE),
#if HAL_LANDING_DEEPSTALL_ENABLED
// @Group: DS_
@ -151,12 +158,7 @@ const AP_Param::GroupInfo AP_Landing::var_info[] = {
AP_SUBGROUPINFO(deepstall, "DS_", 15, AP_Landing, AP_Landing_Deepstall),
#endif
// @Param: OPTIONS
// @DisplayName: Landing options bitmask
// @Description: Bitmask of options to use with landing.
// @Bitmask: 0: honor min throttle during landing flare
// @User: Advanced
AP_GROUPINFO("OPTIONS", 16, AP_Landing, _options, 0),
// additional global params should be placed in the list above TYPE to avoid the enable flag hiding the deepstall params
AP_GROUPEND
};