-
Notifications
You must be signed in to change notification settings - Fork 167
Development UAVObjects
peabody124 edited this page Mar 21, 2015
·
1 revision
UAVObjects use code that is dynamically generated by the uavobjectgenerator. The specification for a UAVObject is an XML file placed in shared/uavobjectdefinition
. There a few key steps to creating a new UAVObjects:
- place the XML file in
shared/uavobjectdefinition
- add the object in your
flight/targets/<targetname>/fw/UAVObject.inc
file - add the object in
ground/gcs/src/plugins/uavobjects/uavobjects.pro
(make sure to add it both in the headers and source section) - in your module that uses it include the file
#include "<objectname.h>"
and then initialize itObjectNameInitialize()
in the ModuleInitialize section of the code