Curtis L. Olson wrote: > Andy Ross wrote: > > Uh, stupid question: where do I stick the number? I can't imagine > > this is difficult to fix. > > Should be a breeze. > > Essentially you are assuming that the runway elevation field in the > FGInterface structure is getting updated externally by FlightGear, but > FlightGear treats everything from FGInterface on down as 'read only'.
Roger that; I think I get it now. I don't have hardware at work to test against, but if someone is in a rush and wants to guinea-pig for a bit, the following patch to YASim.cxx should fix it. Comments in JSBSim indicate that the scenery object is returning meters from MSL, but I didn't investigate far enough to be sure I got the units right. Andy RCS file: /var/cvs/FlightGear-0.7/FlightGear/src/FDM/YASim/YASim.cxx,v retrieving revision 1.8 diff -u -r1.8 YASim.cxx --- YASim.cxx 24 Dec 2001 12:54:04 -0000 1.8 +++ YASim.cxx 15 Feb 2002 17:39:14 -0000 @@ -225,7 +225,11 @@ wind[0] = get_V_north_airmass() * FT2M; wind[1] = get_V_east_airmass() * FT2M; wind[2] = get_V_down_airmass() * FT2M; - double ground = get_Runway_altitude() * FT2M; + + // The ground elevation doesn't come from FGInterface; query it + // from the scenery and set it for others to find. + double ground = scenery.get_cur_elev(); + set_Runway_altitude(ground * FT2M); -- Andrew J. Ross NextBus Information Systems Senior Software Engineer Emeryville, CA [EMAIL PROTECTED] http://www.nextbus.com "Men go crazy in conflagrations. They only get better one by one." - Sting (misquoted) _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel