From e34d97796c74263558002040f2eedc2cce204a40 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Fri, 28 Feb 2014 20:01:09 +0100 Subject: [PATCH] TACAN: fix receiving mobile TACAN. --- src/Instrumentation/tacan.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Instrumentation/tacan.cxx b/src/Instrumentation/tacan.cxx index d1606b8e9..5b1d35864 100644 --- a/src/Instrumentation/tacan.cxx +++ b/src/Instrumentation/tacan.cxx @@ -148,7 +148,7 @@ TACAN::update (double delta_time_sec) //calculate the bearing and range of the mobile from the aircraft double mobile_az2 = 0; double mobile_bearing = 0; - double mobile_distance = 0; + double mobile_distance = SGLimitsd::max(); if (_mobile_valid) { geo_inverse_wgs_84(pos, _mobilePos, &mobile_bearing, &mobile_az2, &mobile_distance); @@ -157,7 +157,7 @@ TACAN::update (double delta_time_sec) //calculate the bearing and range of the station from the aircraft double az2 = 0; double bearing = 0; - double distance = 0; + double distance = SGLimitsd::max(); if (_transmitter_valid) { geo_inverse_wgs_84(pos, _transmitter_pos, &bearing, &az2, &distance); -- 2.39.5