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:
parent
78155104e8
commit
2caa017a79
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue