From f3d2948307d35be753d76bd6e28c3a9d29ffe992 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Wed, 26 Mar 2014 00:20:12 +0100 Subject: [PATCH] primary flight display: actually use airspeed --- src/ui/PrimaryFlightDisplay.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/PrimaryFlightDisplay.cc b/src/ui/PrimaryFlightDisplay.cc index e0197b7bf..35063a380 100644 --- a/src/ui/PrimaryFlightDisplay.cc +++ b/src/ui/PrimaryFlightDisplay.cc @@ -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; -- 2.22.0