1
0
Fork 0

Temporarily disabled ILS range tweaking, until we come up with a

better scheme.

While it's true that the actual ILS indications are unreliable when
far off the approach path, the ILS is not out of range -- you can
still ident it (an essential part of any approach procedure), and the
indicator will usually be doing something, however bizarre.  The
current scheme did not allow the user to ident the ILS until
practically on the approach path.
This commit is contained in:
david 2003-02-11 20:05:18 +00:00
parent 53083bf9fb
commit 4c93c8a070

View file

@ -276,23 +276,24 @@ double FGNavCom::adjustILSRange( double stationElev, double aircraftElev,
// altitude difference
// double alt = ( aircraftElev * SG_METER_TO_FEET - stationElev );
double offset = fabs( offsetDegrees );
// double offset = fabs( offsetDegrees );
if ( offset < 10 ) {
return FG_ILS_DEFAULT_RANGE;
} else if ( offset < 35 ) {
return 10 + (35 - offset) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
} else if ( offset < 45 ) {
return (45 - offset);
} else if ( offset > 170 ) {
return FG_ILS_DEFAULT_RANGE;
} else if ( offset > 145 ) {
return 10 + (offset - 145) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
} else if ( offset > 135 ) {
return (offset - 135);
} else {
return 0;
}
// if ( offset < 10 ) {
// return FG_ILS_DEFAULT_RANGE;
// } else if ( offset < 35 ) {
// return 10 + (35 - offset) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
// } else if ( offset < 45 ) {
// return (45 - offset);
// } else if ( offset > 170 ) {
// return FG_ILS_DEFAULT_RANGE;
// } else if ( offset > 145 ) {
// return 10 + (offset - 145) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
// } else if ( offset > 135 ) {
// return (offset - 135);
// } else {
// return 0;
// }
return FG_ILS_DEFAULT_RANGE;
}