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

Reply via email to