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:
parent
53083bf9fb
commit
4c93c8a070
1 changed files with 17 additions and 16 deletions
|
@ -276,23 +276,24 @@ double FGNavCom::adjustILSRange( double stationElev, double aircraftElev,
|
||||||
|
|
||||||
// altitude difference
|
// altitude difference
|
||||||
// double alt = ( aircraftElev * SG_METER_TO_FEET - stationElev );
|
// double alt = ( aircraftElev * SG_METER_TO_FEET - stationElev );
|
||||||
double offset = fabs( offsetDegrees );
|
// double offset = fabs( offsetDegrees );
|
||||||
|
|
||||||
if ( offset < 10 ) {
|
// if ( offset < 10 ) {
|
||||||
return FG_ILS_DEFAULT_RANGE;
|
// return FG_ILS_DEFAULT_RANGE;
|
||||||
} else if ( offset < 35 ) {
|
// } else if ( offset < 35 ) {
|
||||||
return 10 + (35 - offset) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
|
// return 10 + (35 - offset) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
|
||||||
} else if ( offset < 45 ) {
|
// } else if ( offset < 45 ) {
|
||||||
return (45 - offset);
|
// return (45 - offset);
|
||||||
} else if ( offset > 170 ) {
|
// } else if ( offset > 170 ) {
|
||||||
return FG_ILS_DEFAULT_RANGE;
|
// return FG_ILS_DEFAULT_RANGE;
|
||||||
} else if ( offset > 145 ) {
|
// } else if ( offset > 145 ) {
|
||||||
return 10 + (offset - 145) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
|
// return 10 + (offset - 145) * (FG_ILS_DEFAULT_RANGE - 10) / 25;
|
||||||
} else if ( offset > 135 ) {
|
// } else if ( offset > 135 ) {
|
||||||
return (offset - 135);
|
// return (offset - 135);
|
||||||
} else {
|
// } else {
|
||||||
return 0;
|
// return 0;
|
||||||
}
|
// }
|
||||||
|
return FG_ILS_DEFAULT_RANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue