1
0
Fork 0

Change nav->get_elev() to nav->get_elev_ft() to convey the actual units

explicitely.  This value has always been feet, but there were a couple places
in the code that assumed this elevation was meters.  The result was that you
could park directly over the top of the Black Forest VOR (112.50) NE of KCOS
and get a dme reading of 2.5 or so.  This problem is now resolved.
This commit is contained in:
curt 2004-03-14 23:01:09 +00:00
parent 78155104e8
commit 2caa017a79
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ ADF::search (double frequency_khz, double longitude_rad,
_transmitter_lon_deg = nav->get_lon();
_transmitter_lat_deg = nav->get_lat();
_transmitter = Point3D(nav->get_x(), nav->get_y(), nav->get_z());
_transmitter_elevation_ft = nav->get_elev() * SG_METER_TO_FEET;
_transmitter_elevation_ft = nav->get_elev_ft();
_transmitter_range_nm = nav->get_range();
}
} else {

View file

@ -173,7 +173,7 @@ DME::search (double frequency_mhz, double longitude_rad,
_transmitter = Point3D(nav->get_x(),
nav->get_y(),
nav->get_z());
_transmitter_elevation_ft = nav->get_elev() * SG_METER_TO_FEET;
_transmitter_elevation_ft = nav->get_elev_ft();
_transmitter_range_nm = nav->get_range(); // fixme
return;
}