1
0
Fork 0

Add the MAXNI IAF to the C83 approach, and add a few guards against not finding the fixes in the data. I realise that tweaking a hard-coded approach seems daft when loading approach data from file is high on the TODO, but I'm using C83 as an example for a readme so it may as well match the published chart properly...

This commit is contained in:
daveluff 2006-03-05 16:49:20 +00:00
parent b33d28cf4b
commit 015ead9fcc

View file

@ -561,33 +561,50 @@ void DCLGPS::init() {
iap->_MAP.clear();
// -------
wp = new GPSWaypoint;
wp->id = "PATYY";
wp->id = "MAXNI";
// Nasty using the find any function here, but it saves converting data from FGFix etc.
fp = FindFirstById(wp->id, multi, true);
if(fp) {
*wp = *fp;
wp->appType = GPS_IAF;
iap->_IAF.push_back(wp);
}
// -------
wp = new GPSWaypoint;
wp->id = "PATYY";
fp = FindFirstById(wp->id, multi, true);
if(fp) {
*wp = *fp;
wp->appType = GPS_IAF;
iap->_IAF.push_back(wp);
}
// -------
wp = new GPSWaypoint;
wp->id = "TRACY";
fp = FindFirstById(wp->id, multi, true);
if(fp) {
*wp = *fp;
wp->appType = GPS_IAF;
iap->_IAF.push_back(wp);
}
// -------
wp = new GPSWaypoint;
wp->id = "TRACY";
fp = FindFirstById(wp->id, multi, true);
if(fp) {
*wp = *fp;
wp->appType = GPS_IAP;
iap->_IAP.push_back(wp);
}
// -------
wp = new GPSWaypoint;
wp->id = "BABPI";
fp = FindFirstById(wp->id, multi, true);
if(fp) {
*wp = *fp;
wp->appType = GPS_FAF;
iap->_IAP.push_back(wp);
}
// -------
wp = new GPSWaypoint;
wp->id = "AMOSY";