@@ -1478,7 +1478,7 @@ void HUD::setPixels(int imgid, const unsigned char* imageData, int length, int s
if(startIndex+length>rawExpectedBytes)
{
qDebug()<<"HUD: OVERFLOW! startIndex:"<<startIndex<<"length:"<<length<<"image raw size"<<((receivedWidth*receivedHeight*receivedChannels*receivedDepth)/8)-1;
qDebug()<<"HUD_old: OVERFLOW! startIndex:"<<startIndex<<"length:"<<length<<"image raw size"<<((receivedWidth*receivedHeight*receivedChannels*receivedDepth)/8)-1;
}
else
{
...
...
@@ -1489,7 +1489,7 @@ void HUD::setPixels(int imgid, const unsigned char* imageData, int length, int s
// Check if we just reached the end of the image
if(startIndex+length==rawExpectedBytes)
{
//qDebug() << "HUD: END OF IMAGE REACHED!";
//qDebug() << "HUD_old: END OF IMAGE REACHED!";
finishImage();
rawLastIndex=0;
}
...
...
@@ -1507,11 +1507,11 @@ void HUD::setPixels(int imgid, const unsigned char* imageData, int length, int s
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
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
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
// Image buffers
unsignedchar*rawBuffer1;///< Double buffer 1 for the image
...
...
@@ -172,8 +172,8 @@ protected:
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
// HUD_old colors
QColordefaultColor;///< Color for most HUD_old 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
...
...
@@ -184,17 +184,17 @@ protected:
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)
QPainter*HUD_oldPainter;
QFontfont;///< The HUD_old font, per default the free Bitstream Vera SANS, which is very close to actual HUD_old 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)
boolnoCamera;///< No camera images available, draw the ground/sky box to indicate the horizon
createDockWidget(simView,newHUD(320,240,this),tr("Head Up Display"),"HEAD_UP_DISPLAY_DOCKWIDGET",VIEW_SIMULATION,Qt::RightDockWidgetArea,this->width()/1.5);
// createDockWidget(simView,new HUD(320,240,this),tr("Head Up Display"),"HEAD_UP_DISPLAY_DOCKWIDGET",VIEW_SIMULATION,Qt::RightDockWidgetArea,this->width()/1.5);
createDockWidget(pilotView,newHUD(320,240,this),tr("Head Up Display"),"HEAD_UP_DISPLAY_DOCKWIDGET",VIEW_FLIGHT,Qt::LeftDockWidgetArea,this->width()/1.8);
//createDockWidget(pilotView,new HUD(320,240,this),tr("Head Up Display"),"HEAD_UP_DISPLAY_DOCKWIDGET",VIEW_FLIGHT,Qt::LeftDockWidgetArea,this->width()/1.8);
createDockWidget(centerStack->currentWidget(),newHUD(320,240,this),tr("Head Up Display"),"HEAD_UP_DISPLAY_DOCKWIDGET",currentView,Qt::RightDockWidgetArea);
// createDockWidget(centerStack->currentWidget(),new HUD(320,240,this),tr("Head Up Display"),"PRIMARY_FLIGHT_DISPLAY_DOCKWIDGET",currentView,Qt::RightDockWidgetArea);