Commit 94407a04 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #169 from barthess/fix_hud_compass

Fixed yaw indication in HUD
parents d5fd2dc0 5d59ec10
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment