On Tue, 20 Nov 2007, Cloter M wrote:

Now I have this: I used an old version of LabView to construct a panel that receives UDP packets from FG, and it worked really well. When I tried to extend my generic protocol to use input, the FG receives the value for a variable (say, elevators) acts on it, and returns to the old value right after. I can see the control (and check the internal property) bounce back and forth between the value I send to FG and its own *old* value. How do I solve this? Can I use the internal FDM and receive *extra* control inputs from a socket (like a keyboard or a joystick does)? Obviously there's something I´m missing...

Hi,

If you use a JSBSim aircraft you can extend its elevator flight control system channel to add another property (which you set via the external protocol) to the elevator-pos-norm output. E.g. this could be done in the Pitch Trim Sum component that most JSBSim FDM configs define.

For a YASim aircraft I think you'll need to use nasal to add the control inputs together - alternatively I think you could change the YASim FDM config to make the aircraft take elevator input from a different property - thereby avoiding having it overwritten by local control inputs.

Both methods generalize to most controls.

You can find examples of the JSBSim approach and Nasal components suitable for constructing the other approach in my experimental dual command over the MP protocol c172p prototype (based on the c172p in FlightGear/CVS).

It is available here:
http://www.gidenstam.org/FlightGear/misc/c172p-dual_fgfsCVS.tar.gz
(See http://www.gidenstam.org/FlightGear/misc/ for the latest updates.)

Cheers,

Anders
--
---------------------------------------------------------------------------
Anders Gidenstam
mail: anders(at)gidenstam.org
WWW: http://www.gidenstam.org/FlightGear/JSBSim-LTA/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to