mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Param: Remove non functional AP_Param ignore flags
This commit is contained in:
parent
cc7d13e9ef
commit
40753ab14e
@ -1609,7 +1609,6 @@ AP_Param *AP_Param::next_scalar(ParamToken *token, enum ap_var_type *ptype)
|
||||
ginfo, group_nesting, &idx);
|
||||
if (info && ginfo &&
|
||||
(ginfo->flags & AP_PARAM_FLAG_ENABLE) &&
|
||||
!(ginfo->flags & AP_PARAM_FLAG_IGNORE_ENABLE) &&
|
||||
((AP_Int8 *)ap)->get() == 0 &&
|
||||
_hide_disabled_groups) {
|
||||
/*
|
||||
|
@ -63,16 +63,13 @@
|
||||
// the var_info is a pointer, allowing for dynamic definition of the var_info tree
|
||||
#define AP_PARAM_FLAG_INFO_POINTER (1<<4)
|
||||
|
||||
// ignore the enable parameter on this group
|
||||
#define AP_PARAM_FLAG_IGNORE_ENABLE (1<<5)
|
||||
|
||||
// keep all flags before the FRAME tags
|
||||
|
||||
// vehicle and frame type flags, used to hide parameters when not
|
||||
// relevent to a vehicle type. Use AP_Param::set_frame_type_flags() to
|
||||
// enable parameters flagged in this way. frame type flags are stored
|
||||
// in flags field, shifted by AP_PARAM_FRAME_TYPE_SHIFT.
|
||||
#define AP_PARAM_FRAME_TYPE_SHIFT 6
|
||||
#define AP_PARAM_FRAME_TYPE_SHIFT 5
|
||||
|
||||
// supported frame types for parameters
|
||||
#define AP_PARAM_FRAME_COPTER (1<<0)
|
||||
@ -108,7 +105,6 @@
|
||||
// declare a subgroup entry in a group var_info. This is for having another arbitrary object as a member of the parameter list of
|
||||
// an object
|
||||
#define AP_SUBGROUPINFO(element, name, idx, thisclazz, elclazz) { AP_PARAM_GROUP, idx, name, AP_VAROFFSET(thisclazz, element), { group_info : elclazz::var_info }, AP_PARAM_FLAG_NESTED_OFFSET }
|
||||
#define AP_SUBGROUPINFO_FLAGS(element, name, idx, thisclazz, elclazz, flags) { AP_PARAM_GROUP, idx, name, AP_VAROFFSET(thisclazz, element), { group_info : elclazz::var_info }, AP_PARAM_FLAG_NESTED_OFFSET | flags }
|
||||
|
||||
// declare a second parameter table for the same object
|
||||
#define AP_SUBGROUPEXTENSION(name, idx, clazz, vinfo) { AP_PARAM_GROUP, idx, name, 0, { group_info : clazz::vinfo }, AP_PARAM_FLAG_NESTED_OFFSET }
|
||||
|
Loading…
Reference in New Issue
Block a user