dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
UAVTalk Plugin

Provide a higher level of telemetry control on top of UAVTalk including setting up transactions and acknowledging their receipt or timeout. More...

Classes

class  TransactionKey
 The TransactionKey class A key for the QMap to track transactions. More...
 
class  ObjectTransactionInfo
 
class  Telemetry
 
struct  Telemetry::TelemetryStats
 
class  TelemetryManager
 
class  TelemetryMonitor
 
struct  TelemetryMonitor::objStruc
 
class  UAVTalk
 
struct  UAVTalk::ComStats
 
struct  UAVTalk::UAVTalkHeader
 
struct  UAVTalk::UAVTalkFileData
 
class  UAVTalkPlugin
 

Functions

 TransactionKey::TransactionKey (quint32 objId, quint32 instId, bool req)
 
 TransactionKey::TransactionKey (UAVObject *obj, bool req)
 
bool TransactionKey::operator== (const TransactionKey &rhs) const
 
bool TransactionKey::operator< (const TransactionKey &rhs) const
 
 ObjectTransactionInfo::ObjectTransactionInfo (QObject *parent)
 
 ObjectTransactionInfo::~ObjectTransactionInfo ()
 
 Telemetry::Telemetry (UAVTalk *utalk, UAVObjectManager *objMngr)
 
 Telemetry::~Telemetry ()
 
TelemetryStats Telemetry::getStats ()
 
QByteArray * Telemetry::downloadFile (quint32 fileId, quint32 maxSize, std::function< void(quint32)>progressCb=nullptr)
 
void Telemetry::transactionTimeout (ObjectTransactionInfo *info)
 
 TelemetryManager::TelemetryManager ()
 
 TelemetryManager::~TelemetryManager ()
 
void TelemetryManager::start (QIODevice *dev)
 
void TelemetryManager::stop ()
 
bool TelemetryManager::isConnected () const
 
QByteArray * TelemetryManager::downloadFile (quint32 fileId, quint32 maxSize, std::function< void(quint32)>progressCb)
 
 TelemetryMonitor::TelemetryMonitor (UAVObjectManager *objMngr, Telemetry *tel)
 
 TelemetryMonitor::~TelemetryMonitor ()
 
 UAVTalk::UAVTalk (QIODevice *iodev, UAVObjectManager *objMngr, bool canBlock=true)
 
 UAVTalk::~UAVTalk ()
 
bool UAVTalk::sendObject (UAVObject *obj, bool acked, bool allInstances)
 
bool UAVTalk::sendObjectRequest (UAVObject *obj, bool allInstances)
 
bool UAVTalk::requestFile (quint32 fileId, quint32 offset)
 
ComStats UAVTalk::getStats ()
 
bool UAVTalk::processInput ()
 
bool UAVTalk::objectTransaction (UAVObject *obj, quint8 type, bool allInstances)
 
bool UAVTalk::receiveObject (quint8 type, quint32 objId, quint16 instId, quint8 *data, quint32 length)
 
bool UAVTalk::receiveFileChunk (quint32 fileId, quint8 *data, quint32 length)
 
UAVObjectUAVTalk::updateObject (quint32 objId, quint16 instId, quint8 *data)
 
bool UAVTalk::transmitNack (quint32 objId)
 
bool UAVTalk::transmitObject (UAVObject *obj, quint8 type, bool allInstances)
 
bool UAVTalk::transmitSingleObject (UAVObject *obj, quint8 type, bool allInstances)
 
quint8 UAVTalk::updateCRC (quint8 crc, const quint8 *data, qint32 length)
 
bool UAVTalk::transmitFrame (quint32 length, bool incrTxObj=true)
 

Variables

quint32 TransactionKey::objId
 
quint32 TransactionKey::instId
 
bool TransactionKey::req
 
UAVObjectObjectTransactionInfo::obj
 
bool ObjectTransactionInfo::allInstances
 
bool ObjectTransactionInfo::objRequest
 
qint32 ObjectTransactionInfo::retriesRemaining
 
bool ObjectTransactionInfo::acked
 
QPointer< class TelemetryObjectTransactionInfo::telem
 
QTimer * ObjectTransactionInfo::timer
 
quint32 Telemetry::TelemetryStats::txBytes
 
quint32 Telemetry::TelemetryStats::rxBytes
 
quint32 Telemetry::TelemetryStats::txObjectBytes
 
quint32 Telemetry::TelemetryStats::rxObjectBytes
 
quint32 Telemetry::TelemetryStats::rxObjects
 
quint32 Telemetry::TelemetryStats::txObjects
 
quint32 Telemetry::TelemetryStats::txErrors
 
quint32 Telemetry::TelemetryStats::rxErrors
 
quint32 Telemetry::TelemetryStats::txRetries
 
UAVObjectTelemetry::ObjectTimeInfo::obj
 
qint32 Telemetry::ObjectTimeInfo::updatePeriodMs
 
qint32 Telemetry::ObjectTimeInfo::timeToNextUpdateMs
 
UAVObjectTelemetry::ObjectQueueInfo::obj
 
EventMask Telemetry::ObjectQueueInfo::event
 
bool Telemetry::ObjectQueueInfo::allInstances
 
quint32 TelemetryMonitor::objStruc::objID
 
quint32 TelemetryMonitor::objStruc::instID
 
quint32 UAVTalk::ComStats::txBytes
 
quint32 UAVTalk::ComStats::rxBytes
 
quint32 UAVTalk::ComStats::txObjectBytes
 
quint32 UAVTalk::ComStats::rxObjectBytes
 
quint32 UAVTalk::ComStats::rxObjects
 
quint32 UAVTalk::ComStats::txObjects
 
quint32 UAVTalk::ComStats::txErrors
 
quint32 UAVTalk::ComStats::rxErrors
 
static const int UAVTalk::VER_MASK = 0x70
 
static const int UAVTalk::TYPE_MASK = 0x0f
 
static const int UAVTalk::TYPE_VER = 0x20
 
static const int UAVTalk::TYPE_OBJ = 0x00
 
static const int UAVTalk::TYPE_OBJ_REQ = 0x01
 
static const int UAVTalk::TYPE_OBJ_ACK = 0x02
 
static const int UAVTalk::TYPE_ACK = 0x03
 
static const int UAVTalk::TYPE_NACK = 0x04
 
static const int UAVTalk::TYPE_FILEREQ = 0x08
 
static const int UAVTalk::TYPE_FILEDATA = 0x09
 
static const int UAVTalk::MIN_HEADER_LENGTH = 8
 
static const int UAVTalk::MAX_HEADER_LENGTH = MIN_HEADER_LENGTH + 2
 
static const int UAVTalk::CHECKSUM_LENGTH = 1
 
static const int UAVTalk::MAX_PACKET_LENGTH = 256
 
static const int UAVTalk::MAX_PAYLOAD_LENGTH = (MAX_PACKET_LENGTH - CHECKSUM_LENGTH - MAX_HEADER_LENGTH)
 
static const quint16 UAVTalk::ALL_INSTANCES = 0xFFFF
 
static const quint16 UAVTalk::OBJID_NOTFOUND = 0x0000
 
static const int UAVTalk::TX_BACKLOG_SIZE = 2 * 1024
 
static const quint8 UAVTalk::crc_table [256]
 
quint8 UAVTalk::UAVTalkHeader::sync
 
quint8 UAVTalk::UAVTalkHeader::type
 
quint8 UAVTalk::UAVTalkHeader::size
 
quint8 UAVTalk::UAVTalkHeader::resv
 
quint32 UAVTalk::UAVTalkHeader::objId
 
quint32 UAVTalk::UAVTalkFileData::offset
 
quint8 UAVTalk::UAVTalkFileData::flags
 
static const quint8 UAVTalk::FILEDATA_FLAG_EOF = 0x01
 
static const quint8 UAVTalk::FILEDATA_FLAG_LAST = 0x02
 
QPointer< QIODevice > UAVTalk::io
 
UAVObjectManagerUAVTalk::objMngr
 
bool UAVTalk::canBlock
 
quint8 UAVTalk::rxBuffer [MAX_PACKET_LENGTH *12]
 
quint8 UAVTalk::txBuffer [MAX_PACKET_LENGTH]
 
quint32 UAVTalk::startOffset
 
quint32 UAVTalk::filledBytes
 
ComStats UAVTalk::stats
 

Signals

void TelemetryManager::connected ()
 
void TelemetryManager::disconnected ()
 
void TelemetryManager::connectedChanged (bool)
 
void TelemetryMonitor::connected ()
 
void TelemetryMonitor::disconnected ()
 
void TelemetryMonitor::telemetryUpdated (double txRate, double rxRate)
 
void UAVTalk::ackReceived (UAVObject *obj)
 
void UAVTalk::nackReceived (UAVObject *obj)
 
void UAVTalk::fileDataReceived (quint32 fileId, quint32 offset, quint8 *data, quint32 dataLen, bool eof, bool lastInSeq)
 

Public Slots

void TelemetryMonitor::transactionCompleted (UAVObject *obj, bool success, bool nacked)
 
void TelemetryMonitor::processStatsUpdates ()
 
void TelemetryMonitor::flightStatsUpdated (UAVObject *obj)
 

Protected Slots

void UAVTalkPlugin::onDeviceConnect (QIODevice *dev)
 
void UAVTalkPlugin::onDeviceDisconnect ()
 

Properties

bool TelemetryManager::connected
 

Detailed Description

Provide a higher level of telemetry control on top of UAVTalk including setting up transactions and acknowledging their receipt or timeout.

Implementation of the UAVTalk protocol which serializes and deserializes UAVObjects.

The UAVTalk protocol plugin.

Function Documentation

QByteArray * TelemetryManager::downloadFile ( quint32  fileId,
quint32  maxSize,
std::function< void(quint32)>  progressCb 
)

Definition at line 81 of file telemetrymanager.cpp.

QByteArray * Telemetry::downloadFile ( quint32  fileId,
quint32  maxSize,
std::function< void(quint32)>  progressCb = nullptr 
)

Definition at line 406 of file telemetry.cpp.

UAVTalk::ComStats UAVTalk::getStats ( )

Get the statistics counters

Definition at line 97 of file uavtalk.cpp.

Telemetry::TelemetryStats Telemetry::getStats ( )

Definition at line 702 of file telemetry.cpp.

bool TelemetryManager::isConnected ( ) const
inline

Definition at line 52 of file telemetrymanager.h.

bool UAVTalk::objectTransaction ( UAVObject obj,
quint8  type,
bool  allInstances 
)
protected

Execute the requested transaction on an object.

Parameters
[in]objObject
[in]typeTransaction type TYPE_OBJ: send object with no ack, TYPE_OBJ_REQ: request object update TYPE_OBJ_ACK: send object with an ack
[in]allInstancesIf set true then all instances will be updated
Returns
Success (true), Failure (false)

Definition at line 174 of file uavtalk.cpp.

ObjectTransactionInfo::ObjectTransactionInfo ( QObject *  parent)

Definition at line 766 of file telemetry.cpp.

bool TransactionKey::operator< ( const TransactionKey rhs) const
inline

Definition at line 76 of file telemetry.cpp.

bool TransactionKey::operator== ( const TransactionKey rhs) const
inline

Definition at line 71 of file telemetry.cpp.

bool UAVTalk::processInput ( )

Process a frame from input, if available.

Returns
False if there was insufficient data for a frame, true if trying again is worthwhile.
Todo:
timestamps

Definition at line 214 of file uavtalk.cpp.

bool UAVTalk::receiveFileChunk ( quint32  fileId,
quint8 *  data,
quint32  length 
)
protected

Processes a frame containing file data.

Parameters
fielIdthe received file id
dataBuffer to the file data header
lengthNumber of bytes of file data header + file data.

Definition at line 189 of file uavtalk.cpp.

bool UAVTalk::receiveObject ( quint8  type,
quint32  objId,
quint16  instId,
quint8 *  data,
quint32  length 
)
protected

Receive an object. This function process objects received through the telemetry stream.

Parameters
[in]typeType of received message (TYPE_OBJ, TYPE_OBJ_REQ, TYPE_OBJ_ACK, TYPE_ACK, TYPE_NACK)
[in]objHandle of the received object
[in]instIdThe instance ID of UAVOBJ_ALL_INSTANCES for all instances.
[in]dataData buffer
[in]lengthBuffer length
Returns
Success (true), Failure (false)

Definition at line 353 of file uavtalk.cpp.

bool UAVTalk::requestFile ( quint32  fileId,
quint32  offset 
)

Send a request for file data.

Parameters
[in]fileIdThe file id to request.
[in]offsetThe first requested chunk of the file.

Definition at line 610 of file uavtalk.cpp.

bool UAVTalk::sendObject ( UAVObject obj,
bool  acked,
bool  allInstances 
)

Send the specified object through the telemetry link.

Parameters
[in]objObject to send
[in]ackedSelects if an ack is required
[in]allInstancesIf set true then all instances will be updated
Returns
Success (true), Failure (false)

Definition at line 155 of file uavtalk.cpp.

bool UAVTalk::sendObjectRequest ( UAVObject obj,
bool  allInstances 
)

Request an update for the specified object, on success the object data would have been updated by the GCS.

Parameters
[in]objObject to update
[in]allInstancesIf set true then all instances will be updated
Returns
Success (true), Failure (false)

Definition at line 143 of file uavtalk.cpp.

void TelemetryManager::start ( QIODevice *  dev)

Definition at line 46 of file telemetrymanager.cpp.

void TelemetryManager::stop ( )

Definition at line 55 of file telemetrymanager.cpp.

Telemetry::Telemetry ( UAVTalk utalk,
UAVObjectManager objMngr 
)

Constructor

Definition at line 90 of file telemetry.cpp.

TelemetryManager::TelemetryManager ( )

Definition at line 32 of file telemetrymanager.cpp.

TelemetryMonitor::TelemetryMonitor ( UAVObjectManager objMngr,
Telemetry tel 
)

Constructor

Definition at line 96 of file telemetrymonitor.cpp.

TransactionKey::TransactionKey ( quint32  objId,
quint32  instId,
bool  req 
)
inline

Definition at line 56 of file telemetry.cpp.

TransactionKey::TransactionKey ( UAVObject obj,
bool  req 
)
inline

Definition at line 63 of file telemetry.cpp.

void Telemetry::transactionTimeout ( ObjectTransactionInfo transInfo)

Called when a transaction is not completed within the timeout period (timer event)

Definition at line 375 of file telemetry.cpp.

bool UAVTalk::transmitFrame ( quint32  length,
bool  incrTxObj = true 
)
protected

Perform the final work of transmitting a frame from the txBuffer.

Parameters
[in]lengthFrame length, not including checksum.
[in]incrTxObjBoolean, default true, wheter to update tx object counters.

Definition at line 568 of file uavtalk.cpp.

bool UAVTalk::transmitNack ( quint32  objId)
protected

Transmit a NACK through the telemetry link. This method is separate from transmitsingleobject because we are using an objectID for an unknown object.

Parameters
[in]objIdthe ObjectID we rejected

Definition at line 552 of file uavtalk.cpp.

bool UAVTalk::transmitObject ( UAVObject obj,
quint8  type,
bool  allInstances 
)
protected

Send an object through the telemetry link.

Parameters
[in]objObject to send
[in]typeTransaction type
[in]allInstancesTrue is all instances of the object are to be sent
Returns
Success (true), Failure (false)

Definition at line 512 of file uavtalk.cpp.

bool UAVTalk::transmitSingleObject ( UAVObject obj,
quint8  type,
bool  allInstances 
)
protected

Send an object through the telemetry link.

Parameters
[in]objObject handle to send
[in]typeTransaction type
Returns
Success (true), Failure (false)

Definition at line 630 of file uavtalk.cpp.

UAVTalk::UAVTalk ( QIODevice *  iodev,
UAVObjectManager objMngr,
bool  canBlock = true 
)

Constructor

Definition at line 72 of file uavtalk.cpp.

quint8 UAVTalk::updateCRC ( quint8  crc,
const quint8 *  data,
qint32  length 
)
protected

Update the crc value with new data.

Generated by pycrc v0.7.5, http://www.tty1.net/pycrc/ using the configuration: Width = 8 Poly = 0x07 XorIn = 0x00 ReflectIn = False XorOut = 0x00 ReflectOut = False Algorithm = table-driven

Parameters
crcThe current crc value.
dataPointer to a buffer of data_len bytes.
lengthNumber of bytes in the data buffer.
Returns
The updated crc value.

Definition at line 699 of file uavtalk.cpp.

UAVObject * UAVTalk::updateObject ( quint32  objId,
quint16  instId,
quint8 *  data 
)
protected

Update the data of an object from a byte array (unpack). If the object instance could not be found in the list, then a new one is created.

Definition at line 475 of file uavtalk.cpp.

ObjectTransactionInfo::~ObjectTransactionInfo ( )

Definition at line 781 of file telemetry.cpp.

Telemetry::~Telemetry ( )

Definition at line 118 of file telemetry.cpp.

TelemetryManager::~TelemetryManager ( )

Definition at line 42 of file telemetrymanager.cpp.

TelemetryMonitor::~TelemetryMonitor ( )

Definition at line 129 of file telemetrymonitor.cpp.

UAVTalk::~UAVTalk ( )

Definition at line 87 of file uavtalk.cpp.

Variable Documentation

bool ObjectTransactionInfo::acked

Definition at line 59 of file telemetry.h.

const quint16 UAVTalk::ALL_INSTANCES = 0xFFFF
staticprotected

Definition at line 109 of file uavtalk.h.

bool ObjectTransactionInfo::allInstances

Definition at line 56 of file telemetry.h.

bool Telemetry::ObjectQueueInfo::allInstances

Definition at line 129 of file telemetry.h.

bool UAVTalk::canBlock
protected

Definition at line 137 of file uavtalk.h.

const int UAVTalk::CHECKSUM_LENGTH = 1
staticprotected

Definition at line 103 of file uavtalk.h.

const quint8 UAVTalk::crc_table
staticprotected
Initial value:
= {
0x00, 0x07, 0x0e, 0x09, 0x1c, 0x1b, 0x12, 0x15, 0x38, 0x3f, 0x36, 0x31, 0x24, 0x23, 0x2a, 0x2d,
0x70, 0x77, 0x7e, 0x79, 0x6c, 0x6b, 0x62, 0x65, 0x48, 0x4f, 0x46, 0x41, 0x54, 0x53, 0x5a, 0x5d,
0xe0, 0xe7, 0xee, 0xe9, 0xfc, 0xfb, 0xf2, 0xf5, 0xd8, 0xdf, 0xd6, 0xd1, 0xc4, 0xc3, 0xca, 0xcd,
0x90, 0x97, 0x9e, 0x99, 0x8c, 0x8b, 0x82, 0x85, 0xa8, 0xaf, 0xa6, 0xa1, 0xb4, 0xb3, 0xba, 0xbd,
0xc7, 0xc0, 0xc9, 0xce, 0xdb, 0xdc, 0xd5, 0xd2, 0xff, 0xf8, 0xf1, 0xf6, 0xe3, 0xe4, 0xed, 0xea,
0xb7, 0xb0, 0xb9, 0xbe, 0xab, 0xac, 0xa5, 0xa2, 0x8f, 0x88, 0x81, 0x86, 0x93, 0x94, 0x9d, 0x9a,
0x27, 0x20, 0x29, 0x2e, 0x3b, 0x3c, 0x35, 0x32, 0x1f, 0x18, 0x11, 0x16, 0x03, 0x04, 0x0d, 0x0a,
0x57, 0x50, 0x59, 0x5e, 0x4b, 0x4c, 0x45, 0x42, 0x6f, 0x68, 0x61, 0x66, 0x73, 0x74, 0x7d, 0x7a,
0x89, 0x8e, 0x87, 0x80, 0x95, 0x92, 0x9b, 0x9c, 0xb1, 0xb6, 0xbf, 0xb8, 0xad, 0xaa, 0xa3, 0xa4,
0xf9, 0xfe, 0xf7, 0xf0, 0xe5, 0xe2, 0xeb, 0xec, 0xc1, 0xc6, 0xcf, 0xc8, 0xdd, 0xda, 0xd3, 0xd4,
0x69, 0x6e, 0x67, 0x60, 0x75, 0x72, 0x7b, 0x7c, 0x51, 0x56, 0x5f, 0x58, 0x4d, 0x4a, 0x43, 0x44,
0x19, 0x1e, 0x17, 0x10, 0x05, 0x02, 0x0b, 0x0c, 0x21, 0x26, 0x2f, 0x28, 0x3d, 0x3a, 0x33, 0x34,
0x4e, 0x49, 0x40, 0x47, 0x52, 0x55, 0x5c, 0x5b, 0x76, 0x71, 0x78, 0x7f, 0x6a, 0x6d, 0x64, 0x63,
0x3e, 0x39, 0x30, 0x37, 0x22, 0x25, 0x2c, 0x2b, 0x06, 0x01, 0x08, 0x0f, 0x1a, 0x1d, 0x14, 0x13,
0xae, 0xa9, 0xa0, 0xa7, 0xb2, 0xb5, 0xbc, 0xbb, 0x96, 0x91, 0x98, 0x9f, 0x8a, 0x8d, 0x84, 0x83,
0xde, 0xd9, 0xd0, 0xd7, 0xc2, 0xc5, 0xcc, 0xcb, 0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3
}

Definition at line 113 of file uavtalk.h.

EventMask Telemetry::ObjectQueueInfo::event

Definition at line 128 of file telemetry.h.

const quint8 UAVTalk::FILEDATA_FLAG_EOF = 0x01
staticprotected

Definition at line 130 of file uavtalk.h.

const quint8 UAVTalk::FILEDATA_FLAG_LAST = 0x02
staticprotected

Definition at line 131 of file uavtalk.h.

quint32 UAVTalk::filledBytes
protected

Definition at line 147 of file uavtalk.h.

quint8 UAVTalk::UAVTalkFileData::flags

Definition at line 127 of file uavtalk.h.

quint32 TelemetryMonitor::objStruc::instID

Definition at line 59 of file telemetrymonitor.h.

quint32 TransactionKey::instId

Definition at line 83 of file telemetry.cpp.

QPointer<QIODevice> UAVTalk::io
protected

Definition at line 135 of file uavtalk.h.

const int UAVTalk::MAX_HEADER_LENGTH = MIN_HEADER_LENGTH + 2
staticprotected

Definition at line 101 of file uavtalk.h.

const int UAVTalk::MAX_PACKET_LENGTH = 256
staticprotected

Definition at line 105 of file uavtalk.h.

const int UAVTalk::MAX_PAYLOAD_LENGTH = (MAX_PACKET_LENGTH - CHECKSUM_LENGTH - MAX_HEADER_LENGTH)
staticprotected

Definition at line 107 of file uavtalk.h.

const int UAVTalk::MIN_HEADER_LENGTH = 8
staticprotected

Definition at line 100 of file uavtalk.h.

UAVObject* ObjectTransactionInfo::obj

Definition at line 55 of file telemetry.h.

UAVObject* Telemetry::ObjectTimeInfo::obj

Definition at line 120 of file telemetry.h.

UAVObject* Telemetry::ObjectQueueInfo::obj

Definition at line 127 of file telemetry.h.

quint32 TelemetryMonitor::objStruc::objID

Definition at line 58 of file telemetrymonitor.h.

quint32 TransactionKey::objId

Definition at line 82 of file telemetry.cpp.

quint32 UAVTalk::UAVTalkHeader::objId

Definition at line 122 of file uavtalk.h.

const quint16 UAVTalk::OBJID_NOTFOUND = 0x0000
staticprotected

Definition at line 110 of file uavtalk.h.

UAVObjectManager* UAVTalk::objMngr
protected

Definition at line 136 of file uavtalk.h.

bool ObjectTransactionInfo::objRequest

Definition at line 57 of file telemetry.h.

quint32 UAVTalk::UAVTalkFileData::offset

Definition at line 126 of file uavtalk.h.

bool TransactionKey::req

Definition at line 84 of file telemetry.cpp.

quint8 UAVTalk::UAVTalkHeader::resv

Definition at line 121 of file uavtalk.h.

qint32 ObjectTransactionInfo::retriesRemaining

Definition at line 58 of file telemetry.h.

quint8 UAVTalk::rxBuffer[MAX_PACKET_LENGTH *12]
protected

Definition at line 141 of file uavtalk.h.

quint32 UAVTalk::ComStats::rxBytes

Definition at line 54 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::rxBytes

Definition at line 74 of file telemetry.h.

quint32 UAVTalk::ComStats::rxErrors

Definition at line 60 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::rxErrors

Definition at line 80 of file telemetry.h.

quint32 UAVTalk::ComStats::rxObjectBytes

Definition at line 56 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::rxObjectBytes

Definition at line 76 of file telemetry.h.

quint32 UAVTalk::ComStats::rxObjects

Definition at line 57 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::rxObjects

Definition at line 77 of file telemetry.h.

quint8 UAVTalk::UAVTalkHeader::size

Definition at line 120 of file uavtalk.h.

quint32 UAVTalk::startOffset
protected

Definition at line 146 of file uavtalk.h.

ComStats UAVTalk::stats
protected

Definition at line 149 of file uavtalk.h.

quint8 UAVTalk::UAVTalkHeader::sync

Definition at line 118 of file uavtalk.h.

QPointer<class Telemetry> ObjectTransactionInfo::telem

Definition at line 60 of file telemetry.h.

QTimer* ObjectTransactionInfo::timer

Definition at line 61 of file telemetry.h.

qint32 Telemetry::ObjectTimeInfo::timeToNextUpdateMs

Update period in ms or 0 if no periodic updates are needed

Definition at line 122 of file telemetry.h.

const int UAVTalk::TX_BACKLOG_SIZE = 2 * 1024
staticprotected

Definition at line 112 of file uavtalk.h.

quint8 UAVTalk::txBuffer[MAX_PACKET_LENGTH]
protected

Definition at line 142 of file uavtalk.h.

quint32 UAVTalk::ComStats::txBytes

Definition at line 53 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::txBytes

Definition at line 73 of file telemetry.h.

quint32 UAVTalk::ComStats::txErrors

Definition at line 59 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::txErrors

Definition at line 79 of file telemetry.h.

quint32 UAVTalk::ComStats::txObjectBytes

Definition at line 55 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::txObjectBytes

Definition at line 75 of file telemetry.h.

quint32 UAVTalk::ComStats::txObjects

Definition at line 58 of file uavtalk.h.

quint32 Telemetry::TelemetryStats::txObjects

Definition at line 78 of file telemetry.h.

quint32 Telemetry::TelemetryStats::txRetries

Definition at line 81 of file telemetry.h.

quint8 UAVTalk::UAVTalkHeader::type

Definition at line 119 of file uavtalk.h.

const int UAVTalk::TYPE_ACK = 0x03
staticprotected

Definition at line 95 of file uavtalk.h.

const int UAVTalk::TYPE_FILEDATA = 0x09
staticprotected

Definition at line 98 of file uavtalk.h.

const int UAVTalk::TYPE_FILEREQ = 0x08
staticprotected

Definition at line 97 of file uavtalk.h.

const int UAVTalk::TYPE_MASK = 0x0f
staticprotected

Definition at line 89 of file uavtalk.h.

const int UAVTalk::TYPE_NACK = 0x04
staticprotected

Definition at line 96 of file uavtalk.h.

const int UAVTalk::TYPE_OBJ = 0x00
staticprotected

Definition at line 92 of file uavtalk.h.

const int UAVTalk::TYPE_OBJ_ACK = 0x02
staticprotected

Definition at line 94 of file uavtalk.h.

const int UAVTalk::TYPE_OBJ_REQ = 0x01
staticprotected

Definition at line 93 of file uavtalk.h.

const int UAVTalk::TYPE_VER = 0x20
staticprotected

Definition at line 91 of file uavtalk.h.

qint32 Telemetry::ObjectTimeInfo::updatePeriodMs

Definition at line 121 of file telemetry.h.

const int UAVTalk::VER_MASK = 0x70
staticprotected

Definition at line 88 of file uavtalk.h.

Signals

void UAVTalk::ackReceived ( UAVObject obj)
signal
void TelemetryManager::connected ( )
signal
void TelemetryMonitor::connected ( )
signal
void TelemetryManager::connectedChanged ( bool  )
signal
void TelemetryManager::disconnected ( )
signal
void TelemetryMonitor::disconnected ( )
signal
void UAVTalk::fileDataReceived ( quint32  fileId,
quint32  offset,
quint8 *  data,
quint32  dataLen,
bool  eof,
bool  lastInSeq 
)
signal
void UAVTalk::nackReceived ( UAVObject obj)
signal
void TelemetryMonitor::telemetryUpdated ( double  txRate,
double  rxRate 
)
signal

Public Slots

void TelemetryMonitor::flightStatsUpdated ( UAVObject obj)
slot

Called each time the flight stats object is updated by the autopilot

Definition at line 342 of file telemetrymonitor.cpp.

void TelemetryMonitor::processStatsUpdates ( )
slot

Called periodically to update the statistics and connection status.

Definition at line 376 of file telemetrymonitor.cpp.

void TelemetryMonitor::transactionCompleted ( UAVObject obj,
bool  success,
bool  nacked 
)
slot

Called by the retrieved object when a transaction is completed.

Definition at line 253 of file telemetrymonitor.cpp.

Protected Slots

void UAVTalkPlugin::onDeviceConnect ( QIODevice *  dev)
protectedslot

Definition at line 74 of file uavtalkplugin.cpp.

void UAVTalkPlugin::onDeviceDisconnect ( )
protectedslot

Definition at line 79 of file uavtalkplugin.cpp.

Properties

bool TelemetryManager::connected
read

Definition at line 44 of file telemetrymanager.h.