Return code to it's original form which works around an idiosyncracy in
our data.
This commit is contained in:
parent
d25fa96db3
commit
d3f6354332
1 changed files with 2 additions and 4 deletions
|
@ -151,8 +151,7 @@ DME::search (double frequency_mhz, double longitude_rad,
|
||||||
longitude_rad,
|
longitude_rad,
|
||||||
latitude_rad,
|
latitude_rad,
|
||||||
altitude_m);
|
altitude_m);
|
||||||
if (ils !=0) {
|
if (ils !=0 && ils->get_has_dme()) {
|
||||||
if (ils->get_has_dme()) {
|
|
||||||
_transmitter_valid = true;
|
_transmitter_valid = true;
|
||||||
_transmitter = Point3D(ils->get_dme_x(),
|
_transmitter = Point3D(ils->get_dme_x(),
|
||||||
ils->get_dme_y(),
|
ils->get_dme_y(),
|
||||||
|
@ -171,8 +170,7 @@ DME::search (double frequency_mhz, double longitude_rad,
|
||||||
longitude_rad,
|
longitude_rad,
|
||||||
latitude_rad,
|
latitude_rad,
|
||||||
altitude_m);
|
altitude_m);
|
||||||
if (nav != 0) {
|
if (nav != 0 && nav->get_has_dme()) {
|
||||||
if (nav->get_has_dme()) {
|
|
||||||
_transmitter_valid = true;
|
_transmitter_valid = true;
|
||||||
_transmitter = Point3D(nav->get_x(),
|
_transmitter = Point3D(nav->get_x(),
|
||||||
nav->get_y(),
|
nav->get_y(),
|
||||||
|
|
Loading…
Reference in a new issue