_transmitter_pos(SGGeod::fromDeg(0, 0)),
_transmitter_range_nm(0),
_transmitter_bias(0.0),
+ _mobile_lat(0.0),
+ _mobile_lon(0.0),
_listener_active(0)
{
}
double mobile_bearing = 0;
double mobile_distance = 0;
- SG_LOG( SG_INSTR, SG_DEBUG, "carrier_lat " << _mobile_lat);
- SG_LOG( SG_INSTR, SG_DEBUG, "carrier_lon " << _mobile_lon);
- SG_LOG( SG_INSTR, SG_DEBUG, "carrier_name " << _mobile_name);
- SG_LOG( SG_INSTR, SG_DEBUG, "carrier_valid " << _mobile_valid);
+ SG_LOG( SG_INSTR, SG_DEBUG, "mobile_lat " << _mobile_lat);
+ SG_LOG( SG_INSTR, SG_DEBUG, "mobile_lon " << _mobile_lon);
+ SG_LOG( SG_INSTR, SG_DEBUG, "mobile_name " << _mobile_name);
+ SG_LOG( SG_INSTR, SG_DEBUG, "mobile_valid " << _mobile_valid);
geo_inverse_wgs_84(altitude_m,
latitude_deg,
longitude_deg,
double latitude_rad, double altitude_m)
{
int number, i;
+ _mobile_valid = false;
SG_LOG( SG_INSTR, SG_DEBUG, "tacan freq " << frequency_mhz );
SG_LOG( SG_INSTR, SG_DEBUG, "tanker transmitter valid start " << _mobile_valid );
SGPropertyNode * branch = fgGetNode("ai/models", true);
- vector<SGPropertyNode_ptr> tanker = branch->getChildren("aircraft");
+ vector<SGPropertyNode_ptr> tanker = branch->getChildren("tanker");
number = tanker.size();