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:

  1. place the XML file in shared/uavobjectdefinition
  2. add the object in your flight/targets/<targetname>/fw/UAVObject.inc file
  3. add the object in ground/gcs/src/plugins/uavobjects/uavobjects.pro (make sure to add it both in the headers and source section)
  4. in your module that uses it include the file #include "<objectname.h>" and then initialize it ObjectNameInitialize() in the ModuleInitialize section of the code
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.