@@ -1478,7 +1478,7 @@ void HUD_old::setPixels(int imgid, const unsigned char* imageData, int length, i
...
@@ -1478,7 +1478,7 @@ void HUD_old::setPixels(int imgid, const unsigned char* imageData, int length, i
if(startIndex+length>rawExpectedBytes)
if(startIndex+length>rawExpectedBytes)
{
{
qDebug()<<"HUD_old: OVERFLOW! startIndex:"<<startIndex<<"length:"<<length<<"image raw size"<<((receivedWidth*receivedHeight*receivedChannels*receivedDepth)/8)-1;
qDebug()<<"HUD: OVERFLOW! startIndex:"<<startIndex<<"length:"<<length<<"image raw size"<<((receivedWidth*receivedHeight*receivedChannels*receivedDepth)/8)-1;
}
}
else
else
{
{
...
@@ -1489,7 +1489,7 @@ void HUD_old::setPixels(int imgid, const unsigned char* imageData, int length, i
...
@@ -1489,7 +1489,7 @@ void HUD_old::setPixels(int imgid, const unsigned char* imageData, int length, i
// Check if we just reached the end of the image
// Check if we just reached the end of the image
if(startIndex+length==rawExpectedBytes)
if(startIndex+length==rawExpectedBytes)
{
{
//qDebug() << "HUD_old: END OF IMAGE REACHED!";
//qDebug() << "HUD: END OF IMAGE REACHED!";
finishImage();
finishImage();
rawLastIndex=0;
rawLastIndex=0;
}
}
...
@@ -1507,11 +1507,11 @@ void HUD_old::setPixels(int imgid, const unsigned char* imageData, int length, i
...
@@ -1507,11 +1507,11 @@ void HUD_old::setPixels(int imgid, const unsigned char* imageData, int length, i
floatvGaugeSpacing;///< Virtual spacing of the gauges from the center, 50 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
floatvPitchPerDeg;///< Virtual pitch to mm conversion. Currently one degree is 3 mm up/down in the pitch markings
intxCenter;///< Center of the HUD_old instrument in pixel coordinates. Allows to off-center the whole instrument in its OpenGL window, e.g. to fit another instrument
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_old 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
// Image buffers
unsignedchar*rawBuffer1;///< Double buffer 1 for the image
unsignedchar*rawBuffer1;///< Double buffer 1 for the image
...
@@ -172,8 +172,8 @@ protected:
...
@@ -172,8 +172,8 @@ protected:
intreceivedWidth;///< Width in pixels of the current image
intreceivedWidth;///< Width in pixels of the current image
intreceivedHeight;///< Height in pixels of the current image
intreceivedHeight;///< Height in pixels of the current image
// HUD_old colors
// HUD colors
QColordefaultColor;///< Color for most HUD_old elements, e.g. pitch lines, center cross, change rate gauges
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
QColorsetPointColor;///< Color for the current control set point, e.g. yaw desired
QColorwarningColor;///< Color for warning messages
QColorwarningColor;///< Color for warning messages
QColorcriticalColor;///< Color for caution messages
QColorcriticalColor;///< Color for caution messages
...
@@ -184,17 +184,17 @@ protected:
...
@@ -184,17 +184,17 @@ protected:
intwarningBlinkRate;///< Blink rate of warning messages, will be rounded to the refresh rate
intwarningBlinkRate;///< Blink rate of warning messages, will be rounded to the refresh rate
QTimer*refreshTimer;///< The main timer, controls the update rate
QTimer*refreshTimer;///< The main timer, controls the update rate
QPainter*HUD_oldPainter;
QPainter*HUDPainter;
QFontfont;///< The HUD_old font, per default the free Bitstream Vera SANS, which is very close to actual HUD_old fonts
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_old font is directly loaded from file rather than from the system)
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
boolnoCamera;///< No camera images available, draw the ground/sky box to indicate the horizon