mirror of https://github.com/ArduPilot/ardupilot
AP_Param: added macro for var table extension in object
This commit is contained in:
parent
04cb1027b8
commit
7e24be95c9
|
@ -93,6 +93,9 @@
|
|||
// 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 }
|
||||
|
||||
// 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 }
|
||||
|
||||
// declare a pointer subgroup entry in a group var_info
|
||||
#define AP_SUBGROUPPTR(element, name, idx, thisclazz, elclazz) { AP_PARAM_GROUP, idx, name, AP_VAROFFSET(thisclazz, element), { group_info : elclazz::var_info }, AP_PARAM_FLAG_POINTER }
|
||||
|
||||
|
|
Loading…
Reference in New Issue