Re: Using flightgear with SIMULINK

bass pumped <[email protected]> Sun, 22 May 2005 15:47:28 -0500
Newsgroups gmane.games.flightgear.flightmodel
Message-ID <[email protected]>
Thanks for responding immediately.


> I don't think FlightGear can act as you are hoping without some fiddling
> around.  You want FlightGear to read pilot input, send it out to matlab,
> have matlab process it, and then send pilot inputs back to FG.  If you
> do this, you will have contention between the raw pilot inputs and the
> processed pilot inputs.  You would either (a) need to map the raw pilot
> inputs to a separate area of the property tree, then send those over to
> matlab, and then return the processed pilot inputs to be stored in the
> standard property tree that the FG FDM is using for pilot input.  Or (b)
> you could write some separate module to take pilot input (completely
> outside flightgear) and then pass it to matlab, crunch it, and pass the
> processed values back to FG.


I knew that there might be a problem when it came to that.  Of the two
options you suggested, could you elaborate on how to implement the
first one for me and/or also link me to material where I may be able
to read up about it.

> You need to look at the definition of the specific structure that is
> being sent ... probably FGNetFDM and FGNetCtrls ... in
> src/Native/net_fdm.hxx and src/Native/net_ctrls.hxx respectively.  You
> can include these structures in other code, slurp in the packet over the
> net and reference the values directly.

I'll take a look at it.

Regards,
Sayeed

_______________________________________________
Flightgear-flightmodel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-flightmodel
2f585eeea02e2c79d7b1d8c4963bae2d