diff --git a/src/ui/HUD.cc b/src/ui/HUD.cc index c3a6494da0e50efb2865185d71a11ebbcf1c5025..fd03a0a66eefbc3157a7ff81eca874016d492c06 100644 --- a/src/ui/HUD.cc +++ b/src/ui/HUD.cc @@ -405,7 +405,7 @@ void HUD::paintCenterBackground(float roll, float pitch, float yaw) // Translate in the direction of the rotation based // on the pitch. On the 777, a pitch of 1 degree = 2 mm //glTranslatef(0, ((-pitch/M_PI)*180.0f * vPitchPerDeg), 0); - glTranslatef(0.0f, (pitch * vPitchPerDeg * 16.5f), 0.0f); + glTranslatef(0.0f, (-pitch * vPitchPerDeg * 16.5f), 0.0f); // Ground glColor3ub(179,102,0); @@ -721,7 +721,7 @@ void HUD::paintHUD() // Rotate view and draw all roll-dependent indicators painter.rotate((roll/M_PI)* -180.0f); - painter.translate(0, (pitch/M_PI)* -180.0f * refToScreenY(1.8)); + painter.translate(0, (-pitch/M_PI)* -180.0f * refToScreenY(1.8)); //qDebug() << "ROLL" << roll << "PITCH" << pitch << "YAW DIFF" << valuesDot.value("roll", 0.0f);