- // cout << "testing " << current->get_ident() << endl;
- geo_inverse_wgs_84( elev, lat, lon,
- current->get_loclat(), current->get_loclon(),
- &az1, &az2, &s );
+ // cout << " testing " << current->get_locident() << endl;
+ station = Point3D(current->get_x(),
+ current->get_y(),
+ current->get_z());
+ // cout << " aircraft = " << aircraft << " station = " << station
+ // << endl;
+
+ d = aircraft.distance3Dsquared( station );
+ // cout << " distance = " << d << " ("
+ // << FG_ILS_DEFAULT_RANGE * NM_TO_METER
+ // * FG_ILS_DEFAULT_RANGE * NM_TO_METER
+ // << ")" << endl;
+