Development UAVObjects

peabody124 edited this page Mar 21, 2015 · 1 revision
Clone this wiki locally

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