Commit d279d57a authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #606 from thomasgubler/primaryflightdisplay

primary flight display: actually use airspeed
parents 49b9228e f3d29483
......@@ -1037,8 +1037,7 @@ void PrimaryFlightDisplay::drawVelocityMeter(
float markerTip = (tickmarkLeftMajor+tickmarkRight*2)/3;
// Select between air and ground speed:
float speed = (isAirplane() && isnan(airSpeed)) ? airSpeed : groundSpeed;
float speed = (isAirplane() && !isnan(airSpeed)) ? airSpeed : groundSpeed;
float centerScaleSpeed = isnan(speed) ? 0 : speed;
float start = centerScaleSpeed - AIRSPEED_LINEAR_SPAN/2;
......
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