dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
UAVDataObject Class Referenceabstract

#include <uavdataobject.h>

Inheritance diagram for UAVDataObject:
UAVObject

Signals

void presentOnHardwareChanged (UAVDataObject *)
 
void presentOnHardwareChanged (bool present)
 
- Signals inherited from UAVObject
void objectUpdated (UAVObject *obj)
 Signal sent whenever any field of the object is updated. More...
 
void objectUpdatedAuto (UAVObject *obj)
 objectUpdatedAuto: triggered on "setData" only (Object data updated by changing the data structure) More...
 
void objectUpdatedManual (UAVObject *obj)
 objectUpdatedManual: triggered only from the "updated" slot in uavobject The telemetry manager listens to this signal, and sends updates on the telemetry link. More...
 
void objectUpdatedPeriodic (UAVObject *obj)
 objectUpdatedPeriodic: not used anywhere ? More...
 
void objectUnpacked (UAVObject *obj)
 objectUnpacked: triggered whenever an object is unpacked (i.e. arrives from the telemetry link) More...
 
void updateRequested (UAVObject *obj)
 updateRequested More...
 
void updateAllInstancesRequested (UAVObject *obj)
 updateAllInstancesRequested More...
 
void transactionCompleted (UAVObject *obj, bool success)
 transactionCompleted. Triggered by a call to emitTransactionCompleted - done in telemetry.cpp whenever a transaction finishes. More...
 
void transactionCompleted (UAVObject *obj, bool success, bool nack)
 
void newInstance (UAVObject *obj)
 newInstance More...
 
void instanceRemoved (UAVObject *obj)
 instance removed from manager More...
 

Public Member Functions

 UAVDataObject (quint32 objID, bool isSingleInst, bool isSet, const QString &name)
 
void initialize (quint32 instID, UAVMetaObject *mobj)
 
void initialize (UAVMetaObject *mobj)
 
bool isSettings ()
 
void setMetadata (const Metadata &mdata)
 
Metadata getMetadata ()
 
UAVMetaObjectgetMetaObject ()
 
virtual UAVDataObjectclone (quint32 instID=0)=0
 
virtual UAVDataObjectdirtyClone ()=0
 
bool getIsPresentOnHardware () const
 
bool getPresenceKnown () const
 
void setReceived ()
 
bool getReceived ()
 
void setIsPresentOnHardware (bool value=true)
 
void resetIsPresentOnHardware ()
 
- Public Member Functions inherited from UAVObject
 PACK (typedef struct{quint8 flags;quint16 flightTelemetryUpdatePeriod;quint16 gcsTelemetryUpdatePeriod;quint16 loggingUpdatePeriod;}) Metadata
 
 UAVObject (quint32 objID, bool isSingleInst, const QString &name)
 
void initialize (quint32 instID)
 
quint32 getObjID ()
 
quint32 getInstID ()
 
bool isSingleInstance ()
 
QString getName ()
 
QString getDescription ()
 
quint32 getNumBytes ()
 
qint32 pack (quint8 *dataOut)
 
qint32 unpack (const quint8 *dataIn)
 
virtual Metadata getDefaultMetadata ()=0
 
qint32 getNumFields ()
 
QList< UAVObjectField * > getFields ()
 
UAVObjectFieldgetField (const QString &name)
 
QString toString ()
 
QString toStringBrief ()
 
QString toStringData ()
 
QJsonObject getJsonRepresentation ()
 
void emitTransactionCompleted (bool success)
 
void emitTransactionCompleted (bool success, bool nacked)
 
void emitNewInstance (UAVObject *)
 
void emitInstanceRemoved (UAVObject *)
 

Properties

bool isPresentOnHardware
 

Additional Inherited Members

- Public Types inherited from UAVObject
enum  UpdateMode { UPDATEMODE_MANUAL = 0, UPDATEMODE_PERIODIC = 1, UPDATEMODE_ONCHANGE = 2, UPDATEMODE_THROTTLED }
 
enum  AccessMode { ACCESS_READWRITE = 0, ACCESS_READONLY = 1 }
 
- Public Slots inherited from UAVObject
void requestUpdate ()
 
void requestUpdateAllInstances ()
 
void updated ()
 
- Static Public Member Functions inherited from UAVObject
static void MetadataInitialize (Metadata &meta)
 
static AccessMode GetFlightAccess (const Metadata &meta)
 
static void SetFlightAccess (Metadata &meta, AccessMode mode)
 
static AccessMode GetGcsAccess (const Metadata &meta)
 
static void SetGcsAccess (Metadata &meta, AccessMode mode)
 
static quint8 GetFlightTelemetryAcked (const Metadata &meta)
 
static void SetFlightTelemetryAcked (Metadata &meta, quint8 val)
 
static quint8 GetGcsTelemetryAcked (const Metadata &meta)
 
static void SetGcsTelemetryAcked (Metadata &meta, quint8 val)
 
static UpdateMode GetFlightTelemetryUpdateMode (const Metadata &meta)
 
static void SetFlightTelemetryUpdateMode (Metadata &meta, UpdateMode val)
 
static UpdateMode GetGcsTelemetryUpdateMode (const Metadata &meta)
 
static void SetGcsTelemetryUpdateMode (Metadata &meta, UpdateMode val)
 
- Protected Member Functions inherited from UAVObject
void initializeFields (QList< UAVObjectField * > &fields, quint8 *data, quint32 numBytes)
 
void setDescription (const QString &description)
 
- Protected Attributes inherited from UAVObject
quint32 objID
 
quint32 instID
 
bool isSingleInst
 
QString name
 
QString description
 
QString category
 
quint32 numBytes
 
quint8 * data
 
QList< UAVObjectField * > fields
 

Detailed Description

Definition at line 37 of file uavdataobject.h.


The documentation for this class was generated from the following files: