floatyawInt;///< The yaw integral. Used to damp the yaw indication.
QStringmode;///< The current vehicle mode
QStringstate;///< The current vehicle state
QStringfuelStatus;///< Current fuel level / battery voltage
doublescalingFactor;///< Factor used to scale all absolute values to screen coordinates
floatxCenterOffset,yCenterOffset;///< Offset from center of window in mm coordinates
floatvwidth;///< Virtual width of this window, 200 mm per default. This allows to hardcode positions and aspect ratios. This virtual image plane is then scaled to the window size.
floatvheight;///< Virtual height of this window, 150 mm per default
floatvGaugeSpacing;///< Virtual spacing of the gauges from the center, 50 mm per default
floatvPitchPerDeg;///< Virtual pitch to mm conversion. Currently one degree is 3 mm up/down in the pitch markings
intxCenter;///< Center of the HUD instrument in pixel coordinates. Allows to off-center the whole instrument in its OpenGL window, e.g. to fit another instrument
intyCenter;///< Center of the HUD instrument in pixel coordinates. Allows to off-center the whole instrument in its OpenGL window, e.g. to fit another instrument
// Image buffers
unsignedchar*rawBuffer1;///< Double buffer 1 for the image
unsignedchar*rawBuffer2;///< Double buffer 2 for the image
unsignedchar*rawImage;///< Pointer to current complete image
intrawLastIndex;///< The last byte index received of the image
intrawExpectedBytes;///< Number of raw image bytes expected. Calculated by: image depth * channels * widht * height / 8
intbytesPerLine;///< Bytes per image line. Is calculated as: image depth * channels * width / 8
boolimageStarted;///< If an image is currently in transmission
intreceivedDepth;///< Image depth in bit for the current image
intreceivedChannels;///< Number of color channels
intreceivedWidth;///< Width in pixels of the current image
intreceivedHeight;///< Height in pixels of the current image
// HUD colors
QColordefaultColor;///< Color for most HUD elements, e.g. pitch lines, center cross, change rate gauges
QColorsetPointColor;///< Color for the current control set point, e.g. yaw desired
QColorwarningColor;///< Color for warning messages
QColorcriticalColor;///< Color for caution messages
QColorinfoColor;///< Color for normal/default messages
QColorfuelColor;///< Current color for the fuel message, can be info, warning or critical color
// Blink rates
intwarningBlinkRate;///< Blink rate of warning messages, will be rounded to the refresh rate
QTimer*refreshTimer;///< The main timer, controls the update rate
QPainter*hudPainter;
QFontfont;///< The HUD font, per default the free Bitstream Vera SANS, which is very close to actual HUD fonts
QFontDatabasefontDatabase;///< Font database, only used to load the TrueType font file (the HUD font is directly loaded from file rather than from the system)
boolnoCamera;///< No camera images available, draw the ground/sky box to indicate the horizon
// m_ui->receiveText->appendHtml(QString("<font color=\"%1\">%2</font>\n").arg(QColor(Qt::red).name(), tr("WARNING: You have NOT enabled auto-hold (stops updating the console if huge amounts of serial data arrive). Updating the console consumes significant CPU load, so if you receive more than about 5 KB/s of serial data, make sure to enable auto-hold if not using the console.")));