I just checked a patch into cvs.  Feel free to give it a try and see
if it works any better ...

Note that there is a default airport (KSFO) and default runway (28L)
in the preferences file.  So if you specify a different airport that
happens to have a 28L, that will probably take precidence over any
--heading= you might specify.  This means that specifying a --heading=
around SFO won't work since the runway number takes precidence.

Curt.


Wendell Turner writes:
> I use fgfs to practice instrument approaches, starting with
> the aircraft positioned just outside the IAF.  However, in
> 0.9.2, the --offset-distance doesn't seem to work.
> 
> In src/Main/fg_init.cxx, near line 1035, just before the call to 
> 
>   ok = fgSetPosFromAirportIDandHdg( apt, hdg );
> 
> there is
> 
>    if (fgGetDouble("/sim/presets/altitude-ft") <= 0 &&
>        fgGetDouble("/sim/presets/offset-distance") == 0)
> 
> which doesn't seem correct.  However, the following does cause
> the routine to get called properly:
> 
>   if ( (fabs(fgGetDouble("/sim/presets/altitude-ft"    )) > SG_EPSILON ) &&
>        (fabs(fgGetDouble("/sim/presets/offset-distance")) > SG_EPSILON )    )
> 
> I don't know if it is the right way to do it, but it works
> for me.
> 
> Wendell
> 
> 
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel

-- 
Curtis Olson   IVLab / HumanFIRST Program       FlightGear Project
Twin Cities    curt 'at' me.umn.edu             curt 'at' flightgear.org
Minnesota      http://www.menet.umn.edu/~curt   http://www.flightgear.org

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to