Browse Source

Merge pull request #169 from barthess/fix_hud_compass

Fixed yaw indication in HUD
QGC4.4
Lorenz Meier 13 years ago
parent
commit
94407a04c1
  1. 2
      src/ui/HUD.cc

2
src/ui/HUD.cc

@ -797,7 +797,7 @@ void HUD::paintHUD() @@ -797,7 +797,7 @@ void HUD::paintHUD()
// const float yawDeg = ((values.value("yaw", 0.0f)/M_PI)*180.0f)+180.f;
// YAW is in compass-human readable format, so 0 .. 360 deg.
float yawDeg = ((yawLP/M_PI)*180.0f)+180.0f;
float yawDeg = (yawLP / M_PI) * 180.0f;
if (yawDeg < 0) yawDeg += 360;
if (yawDeg > 360) yawDeg -= 360;
/* final safeguard for really stupid systems */

Loading…
Cancel
Save