// Init the property nodes - TODO - need to make sure we're getting surface winds.
wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true);
- wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true);
+ wind_speed_knots = fgGetNode("/environment/wind-speed-kt", true);
// TODO - get the actual airport elevation
aptElev = 0.0;
// Init the property nodes - TODO - need to make sure we're getting surface winds.
wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true);
- wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true);
+ wind_speed_knots = fgGetNode("/environment/wind-speed-kt", true);
// TODO - get the actual airport elevation
aptElev = 0.0;
//cout << "GetRwyDetails called" << endl;
// Based on the airport-id and wind get the active runway
- SGPath path( globals->get_fg_root() );
- path.append( "Airports" );
- path.append( "runways.mk4" );
- FGRunways r_ways( path.c_str() );
//wind
double hdg = wind_from_hdg->getDoubleValue();
//cout << "Heading = " << hdg << '\n';
FGRunway runway;
- bool rwyGood = r_ways.search(ident, int(hdg), &runway);
+ bool rwyGood = globals->get_runways()->search(ident, int(hdg), &runway);
if(rwyGood) {
activeRwy = runway.rwy_no;
rwy.rwyID = runway.rwy_no;
// WARNING - This is hardwired to my prototype logical network format
// and will almost certainly change when Bernie's stuff comes on-line.
+// Returns NULL if it can't find a valid node.
node* FGGround::GetThresholdNode(string rwyID) {
// For now go through all the nodes and parse their names
// Maybe in the future we'll map threshold nodes by ID