Hi...

I'm new to the list. I'm trying to control FG through UDP but it's not working. 
My .xml protocol file is the following:

<?xml version="1.0"?>

<PropertyList>

 <generic>
  
  <input>
   <line_separator>newline</line_separator>
   <var_separator>,</var_separator>
   
   <chunk>
    <name>aileron</name>
    <type>float</type>
    <node>/controls/flight/aileron</node>
   </chunk>

   <chunk>
    <name>elevator</name>
    <type>float</type>
    <node>/controls/flight/elevator</node>
   </chunk>
  
   <chunk>
    <name>rudder</name>
    <type>float</type>
    <node>/controls/flight/rudder</node>
   </chunk>
   
   <chunk>
    <name>throttle</name>
    <type>float</type>
    <node>/controls/engines/engine[0]/throttle</node>
   </chunk>
  </input>
  
 </generic>

</PropertyList>


and the my options of FG are:

C:\Program Files\FlightGear\bin\Win32\fgfs.exe
  --fg-root=C:\Program Files\FlightGear\data
  --fg-scenery=C:\Program Files\FlightGear\data\Scenery;C:\Program 
Files\FlightGear\scenery
  --airport=KSFO
  --aircraft=c172p-2dpanel
  --control=mouse
  --disable-random-objects
  --disable-sound
  --disable-hud-3d
  --disable-specular-highlight
  --disable-ai-models
  --lon=-122.3161
  --lat=37.5937
  --altitude=3000
  --vc=60
  --disable-clouds
  --disable-skyblend
  --disable-textures
  --shading-flat
  --fog-disable
  --geometry=640x480
  --timeofday=dawn
  --ai-scenario=aircraft_demo
  --generic=socket,in,20,127.0.0.1,1005,udp,fg_in_matlab

I'm outputing data to 127.0.0.1 port 1005. But FG can't read it.

I read that data with another application and it's coming like this:

0.1396,-0.2793,0.0349,88

The values are the aileron, elevator and rudder angles in radians and the last 
is the engine.

What am I missing?

Thank you guys! =)
Rodrigo Basniak





      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to