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

#include <uavobjectutilmanager.h>

Inheritance diagram for UAVObjectUtilManager:

Public Types

enum  metadataSetEnum { ALL_METADATA, SETTINGS_METADATA_ONLY, NONSETTINGS_METADATA_ONLY }
 

Signals

void saveCompleted (int objectID, bool status)
 
void completedMetadataWrite (bool)
 

Public Member Functions

 UAVObjectUtilManager ()
 
 ~UAVObjectUtilManager ()
 
int setHomeLocation (double LLA[3], bool save_to_sdcard)
 
int getHomeLocation (bool &set, double LLA[3])
 
int getGPSPosition (double LLA[3])
 
int getBoardModel ()
 
Core::IBoardTypegetBoardType ()
 Get the IBoardType corresponding to the connected board. More...
 
QByteArray getBoardCPUSerial ()
 
quint32 getFirmwareCRC ()
 
QByteArray getBoardDescription ()
 
bool getBoardDescriptionStruct (deviceDescriptorStruct &device)
 
UAVObjectManagergetObjectManager ()
 
void saveObjectToFlash (UAVObject *obj)
 UAVObjectUtilManager::saveObjectToSD Add a new object to save in the queue. More...
 
QMap< QString,
UAVObject::Metadata > 
readMetadata (metadataSetEnum metadataReadType)
 UAVObjectUtilManager::readMetadata Get metadata for UAVOs. More...
 
QMap< QString,
UAVObject::Metadata > 
readAllNonSettingsMetadata ()
 UAVObjectUtilManager::readAllNonSettingsMetadata Convenience function for calling readMetadata. More...
 
bool setMetadata (QMap< QString, UAVObject::Metadata >, metadataSetEnum metadataUpdateType)
 UAVObjectUtilManager::setMetadata Sets the metadata for all metadata in QMap. More...
 
bool setAllNonSettingsMetadata (QMap< QString, UAVObject::Metadata >)
 UAVObjectUtilManager::setAllNonSettingsMetadata Convenience function for calling setMetadata. More...
 
bool resetMetadataToDefaults ()
 UAVObjectUtilManager::resetMetadata Resets all metadata to defaults (from XML definitions) More...
 
int getBoardRevision ()
 Get the connected board hardware revision. More...
 
QString getFirmwareHash ()
 
QString getGcsHash ()
 
bool boardConfigured ()
 Check if the board has been configured for flight The heuristic is whether one or more actuators are configured for non-zero output. More...
 
bool firmwareHashMatchesGcs ()
 Check if firmware version hash matches GCS version hash. More...
 

Static Public Member Functions

static bool descriptionToStructure (QByteArray desc, deviceDescriptorStruct &struc)
 

Protected Member Functions

FirmwareIAPObj::DataFields getFirmwareIap ()
 

Detailed Description

Definition at line 49 of file uavobjectutilmanager.h.


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