[Flightgear-devel] offset-distance broken?
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
re: [Flightgear-devel] offset-distance broken?
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. Curt has offset-distance set up right now to work only when you're lined up on an airport runway. The presets stuff needs a lot of work. All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/ ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
re: [Flightgear-devel] offset-distance broken?
David Megginson writes: 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. Curt has offset-distance set up right now to work only when you're lined up on an airport runway. The presets stuff needs a lot of work. Hmmm, that particular few lines of code doesn't look like my coding style, and logically, it doesn't make much sense (to me, no offense to the author.) :-) I'll take a look and see if I can clean that up a bit. Curt. -- Curtis Olson IVLab / HumanFIRST Program FlightGear Project Twin Citiescurt '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
Re: [Flightgear-devel] offset-distance broken?
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 Citiescurt '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
re: [Flightgear-devel] offset-distance broken?
Curtis L. Olson writes: Hmmm, that particular few lines of code doesn't look like my coding style, and logically, it doesn't make much sense (to me, no offense to the author.) :-) Could be me, then . I'll take a look and see if I can clean that up a bit. Thanks. All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/ ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
re: [Flightgear-devel] offset-distance broken?
--- David Megginson [EMAIL PROTECTED] wrote: 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. Curt has offset-distance set up right now to work only when you're lined up on an airport runway. The presets stuff needs a lot of work. I remember putting in an offset-azimuth at the time that I did the offset-distance. Does that not work anymore? All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/ ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] offset-distance broken?
On Wed, 2003-07-02 at 12:28, Matt Fienberg wrote: Would there be a way to specify inbound 8 miles northwest of [ICAO] much like the way winds are specified? Much like [EMAIL PROTECTED] for northwest winds at 8 knots, how about [EMAIL PROTECTED] along with maybe --inbound-target=KSJC or the approach fix or VOR designation? I'm still working on VFR, forgive me if my fix terminology isn't correct... ;) I often want to start up FG such that I'm 8 miles northwest of KORH, inbound implying a 135 heading. When I first wrote that --offset code, you could do this, though not with that notation. --offset-distance=8 and --offset-azimuth=315 would, I believe, get you what you want. Thanks, Matt Tony Peden wrote: --- David Megginson [EMAIL PROTECTED] wrote: 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. Curt has offset-distance set up right now to work only when you're lined up on an airport runway. The presets stuff needs a lot of work. I remember putting in an offset-azimuth at the time that I did the offset-distance. Does that not work anymore? All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/ ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel -- Tony Peden [EMAIL PROTECTED] ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] offset-distance broken?
Tony Penden writes: On Wed, 2003-07-02 at 10:28, Tony Peden wrote: --- David Megginson [EMAIL PROTECTED] wrote: 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. Curt has offset-distance set up right now to work only when you're lined up on an airport runway. The presets stuff needs a lot of work. I remember putting in an offset-azimuth at the time that I did the offset-distance. Does that not work anymore? This does work from the command line. You need to specify the heading to the runway as the offset-azimuth value. The only heading that works is if --runway=x is specified, in which case the heading is towards the airport. It doesn't seem possible now (it was in earlier versions) to specify any other headings (outbound for procedure turn, along dme arc, etc.) Wendell ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] offset-distance broken?
On Wed, 2003-07-02 at 18:37, Wendell Turner wrote: Tony Penden writes: On Wed, 2003-07-02 at 10:28, Tony Peden wrote: --- David Megginson [EMAIL PROTECTED] wrote: 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. Curt has offset-distance set up right now to work only when you're lined up on an airport runway. The presets stuff needs a lot of work. I remember putting in an offset-azimuth at the time that I did the offset-distance. Does that not work anymore? This does work from the command line. You need to specify the heading to the runway as the offset-azimuth value. The only heading that works is if --runway=x is specified, in which case the heading is towards the airport. It doesn't seem possible now (it was in earlier versions) to specify any other headings (outbound for procedure turn, along dme arc, etc.) --offset-azimuth works. It doesn't affect the aircraft heading, however, only its position. Try: fgfs --offset-distance=3 --offset-azimuth=300 --vc=100 --altitude=1500 And you should find that you end up south of KSFO and that the heading to the threshold is 300. Wendell ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel -- Tony Peden [EMAIL PROTECTED] ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel