1
0
Fork 0

Tacan: avoid a 'long-range' wgs84_inverse

- Only check mobile distance at all, if the mobile is valid
This commit is contained in:
James Turner 2014-02-04 14:54:39 +00:00
parent 34433c1fa1
commit 27c58ddb21

View file

@ -150,10 +150,10 @@ TACAN::update (double delta_time_sec)
double mobile_az2 = 0;
double mobile_bearing = 0;
double mobile_distance = 0;
if (_mobile_valid) {
geo_inverse_wgs_84(pos, _mobilePos,
&mobile_bearing, &mobile_az2, &mobile_distance);
}
//calculate the bearing and range of the station from the aircraft
double az2 = 0;