mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
OP-1145 made MetaObjectId define publicly available
This commit is contained in:
parent
0417b361b7
commit
c2e8d25319
@ -49,6 +49,8 @@
|
||||
|
||||
typedef void *UAVObjHandle;
|
||||
|
||||
#define MetaObjectId(id) ((id) + 1)
|
||||
|
||||
/**
|
||||
* Object update mode, used by multiple modules (e.g. telemetry and logger)
|
||||
*/
|
||||
|
@ -167,7 +167,6 @@ struct UAVOMulti {
|
||||
#define MetaObjectPtr(obj) ((struct UAVODataMeta *)&((obj)->metaObj))
|
||||
#define MetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->instance0))
|
||||
#define LinkedMetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->metaObj.instance0))
|
||||
#define MetaObjectId(id) ((id) + 1)
|
||||
|
||||
/** all information about instances are dependant on object type **/
|
||||
#define ObjSingleInstanceDataOffset(obj) ((void *)(&(((struct UAVOSingle *)obj)->instance0)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user