Geoffrey Levine wrote:

Hi,
I've been working with the Flightgear code in an attempt to test out some reinforcement learning techniques, and I've run into a little bit of a problem. I need to write up an initialization module that sets the plane in a consistent stable state in mid air with specific parameters (eg speed = 70 knots, pitch = 10 deg, ...). I've been attempting to do so by explicitly setting the "/velocities/..." and "/orientation/..." values witht he fgSetDouble function (basically the same ones as are set in the fgSetDefaults function in options.cxx). This seems to work for some aspects (altitude), but not others (pitch, speed). I assume there is something I am missing that I need to set as well. Is there some other portion of the code that I should take a look at, or anything you could think that I could be overlooking?


Geoff,

Each FDM has to initialize itself ... so JSBsim models will work slightly differently from YAsim models. We setup a facility to define initial conditions in the /sim/presets property tree. This way we can setup our our position *request* without needed to change the actual current position. This currently isn't setup to accept an initial pitch, but as far as I know the individual FDM's aren't either.

You can set altitude, heading, speed (see --vc=kts option) as well as various offsets to runways and navaids.

Regards,

Curt.

--
Curtis Olson http://www.flightgear.org/~curt HumanFIRST Program http://www.humanfirst.umn.edu/
FlightGear Project http://www.flightgear.org
Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d



_______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to