Andy Ross writes: > Curtis L. Olson wrote: > > JSBSim properly handles updating the runway/ground elevation most of > > the time, but here is at least one situation where it doesn't. YASim > > doesn't handle this at all (but Andy's the new kid so we can cut him > > some slack.) :-) > > 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'. So whatever this value starts out as on initialization is what it stays at if YASim doesn't change it. FlightGear provides 'scenery->get_cur_elev()' which you could grab every time your 'update()' is called and stuff into the runway elevation field in FGInterface ... Regards, Curt. -- Curtis Olson IVLab / HumanFIRST Program FlightGear Project Twin Cities [EMAIL PROTECTED] [EMAIL PROTECTED] 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