uadc.hh File Reference

Aeroprobe Micro Air Data Computer interface. More...

#include <QByteArray>
#include <QDebug>
#include <QObject>
#include "sensor/serialsensor.hh"
#include "settings/settings.hh"
Include dependency graph for uadc.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dfti::uADCData
 Structure to hold uADC data. More...
 
class  dfti::uADC
 Serial driver to acquire data from a Micro Air Data Computer. More...
 

Functions

bool dfti::validateUADCChecksum (QByteArray pkt)
 Validate the uADC packet checksum. More...
 

Variables

const char dfti::uadcTerm = '\n'
 uADC packet terminator.
 
const quint8 dfti::uadcPktLen = 56
 uADC packet length.
 
const quint8 dfti::uadcPktCksumPos = 53
 uADC packet checksum pos.
 
const quint8 dfti::uadcPktIasPos = 7
 uADC packet velocity byte start position.
 
const quint8 dfti::uadcPktIasLen = 5
 uADC packet velocity byte length.
 
const quint8 dfti::uadcPktAoAPos = 14
 uADC packet AoA byte start position.
 
const quint8 dfti::uadcPktAoALen = 6
 uADC packet AoA byte length.
 
const quint8 dfti::uadcPktAoSPos = 22
 uADC packet AoS byte start position.
 
const quint8 dfti::uadcPktAoSLen = 6
 uADC packet AoS byte length.
 
const quint8 dfti::uadcPktAltPos = 30
 uADC packet altitude byte start position.
 
const quint8 dfti::uadcPktAltLen = 5
 uADC packet altitude byte length.
 
const quint8 dfti::uadcPktPtPos = 37
 uADC packet total pressure byte start position.
 
const quint8 dfti::uadcPktPtLen = 6
 uADC packet total pressure byte length.
 
const quint8 dfti::uadcPktPsPos = 45
 uADC packet static pressure byte start position.
 
const quint8 dfti::uadcPktPsLen = 6
 uADC packet static pressure byte length.
 

Detailed Description

Aeroprobe Micro Air Data Computer interface.

Author
Joshua Harris
License
BSD 2-Clause License

Function Documentation

bool dfti::validateUADCChecksum ( QByteArray  pkt)

Validate the uADC packet checksum.

The checksum is a simple byte-wise XOR up to but not including the checksum byte itself.

Parameters
pktA full uADC packet to validate.
Returns
True if the packet checksum is correct.