On Thursday 08 January 2004 21:40, Curtis L. Olson wrote: > Seamus Thomas Carroll writes: > > I am playing with the autopilot and maintaining an altitidue above sea > > level works great. Is there a method for maintaining an elevation above > > the ground? > > Ctrl-t will toggle a mode that attempts to maintain the current > altitude above ground. The algorithm is very simplistic though and > doesn't take any sort of look ahead into consideration. It only looks > at the current elevation above ground and tries to climb or decend to > achieve the goal elevation. > > Regards, > > Curt. > -- > Curtis Olson HumanFIRST Program FlightGear Project > Twin Cities curt 'at' me.umn.edu curt 'at' flightgear.org > Minnesota http://www.flightgear.org/~curt http:// www.flightgear.org
Just today I hacked that bit of code to expose the agl-ft setting in the property tree. However, the hack replaces the old behaviour - ctrl-t doesn't take the current agl-ft but the value set in the p-tree instead. Also, ctrl-t needs to be cycled if the value is changed, so it's not a very good hack. At the same time, I've been thinking about look-ahead algorithms quite a lot - especially with regard to trying to avoid taking a lot of look-ahead ground elevation samples each frame. I think I may have something - just an algorithm (but it only needs one look-ahead sample per frame) - that might work (in a straight line;), but it still needs a bit more thought. Of course, if someone already knows how to do this stuff... ;) LeeE _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
