return aps.front()->routeFromVectors(aRoute);
}
-pair<SID*, WayptRef>
+pair<flightgear::SID*, WayptRef>
FGAirport::selectSID(const SGGeod& aDest, FGRunway* aRwy)
{
loadProcedures();
WayptRef enroute;
- SID* sid = NULL;
+ flightgear::SID* sid = NULL;
double d = 1e9;
for (unsigned int i=0; i<mSIDs.size(); ++i) {
}
-void FGAirport::addSID(SID* aSid)
+void FGAirport::addSID(flightgear::SID* aSid)
{
mSIDs.push_back(aSid);
}
return mSIDs.size();
}
-SID* FGAirport::getSIDByIndex(unsigned int aIndex) const
+flightgear::SID* FGAirport::getSIDByIndex(unsigned int aIndex) const
{
loadProcedures();
return mSIDs[aIndex];
}
-SID* FGAirport::findSIDWithIdent(const std::string& aIdent) const
+flightgear::SID* FGAirport::findSIDWithIdent(const std::string& aIdent) const
{
loadProcedures();
for (unsigned int i=0; i<mSIDs.size(); ++i) {
_route.clear(); // clear out the existing, first
// SID
- SID* sid;
+ flightgear::SID* sid;
WayptRef sidTrans;
boost::tie(sid, sidTrans) = _departure->selectSID(_destination->geod(), runway);
FGRunway* r = _departure->getRunwayByIdent(runwayId);
string sidId = departure->getStringValue("sid");
- SID* sid = _departure->findSIDWithIdent(sidId);
+ flightgear::SID* sid = _departure->findSIDWithIdent(sidId);
if (!sid) {
// valid runway, but no SID selected/found, so just the runway node for now
if (!sidId.empty() && (sidId != "(none)")) {