QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGC Namespace Reference

Functions

float limitAngleToPMPIf (double angle)
 
double limitAngleToPMPId (double angle)
 
quint32 crc32 (const quint8 *src, unsigned len, unsigned state)
 
bool fuzzyCompare (double value1, double value2)
 Returns true if the two values are equal or close. Correctly handles 0 and NaN values.
 
bool fuzzyCompare (double value1, double value2, double tolerance)
 
bool fuzzyCompare (float value1, float value2)
 
bool fuzzyCompare (float value1, float value2, float tolerance)
 

Variables

static const quint32 crctab []
 

Function Documentation

◆ crc32()

quint32 QGC::crc32 ( const quint8 *  src,
unsigned  len,
unsigned  state 
)

Definition at line 97 of file QGC.cc.

References crctab.

◆ fuzzyCompare() [1/4]

◆ fuzzyCompare() [2/4]

bool QGC::fuzzyCompare ( double  value1,
double  value2,
double  tolerance 
)

Definition at line 119 of file QGC.cc.

◆ fuzzyCompare() [3/4]

bool QGC::fuzzyCompare ( float  value1,
float  value2 
)

Definition at line 130 of file QGC.cc.

◆ fuzzyCompare() [4/4]

bool QGC::fuzzyCompare ( float  value1,
float  value2,
float  tolerance 
)

Definition at line 143 of file QGC.cc.

◆ limitAngleToPMPId()

double QGC::limitAngleToPMPId ( double  angle)

Definition at line 33 of file QGC.cc.

◆ limitAngleToPMPIf()

float QGC::limitAngleToPMPIf ( double  angle)

Definition at line 10 of file QGC.cc.

Variable Documentation

◆ crctab

const quint32 QGC::crctab[]
static

Definition at line 61 of file QGC.cc.

Referenced by crc32().