Hi again,

Seems that I spoke too soon. I rolled back to 2.8 and that had the same 
problem -- something to do with my code.

Cheers,
Vik

On 03/09/2013 08:18 PM, Viktor Radnai wrote:
> Hi there,
>
> I'm developing an UAV and using FG for simulation. I have successfully
> set up a control loop using the native-ctrls option (and a few others)
> like this:
> fgfs (various options) \
> --native-ctrls=socket,in,$AP_FREQ,$AP_HOST,5600,udp \
> --native-ctrls=socket,out,$AP_FREQ,$AP_HOST,5700,udp \
> (more options)
>
> This means that FG will send control packets to UDP port 5700 where my
> software listens, it gets the packet, changes a few things (mostly
> throttle, elevator, rudder and aileron) and sends the packet back to FG
> on udp port 5600. This used to work perferctly on 2.8. On 2.10 I get
> control packets, I modify them and send them back but they have no
> effect whatsoever. It also seems that FG just doesn't process these
> packets, netstat shows a backlog of 2304 bytes that are waiting for
> processing almost immediately after my software begins sending data:
>
> efti@valkyrie:~/Projects/uav/autopilot$ netstat -anp
> (Not all processes could be identified, non-owned process info
> will not be shown, you would have to be root to see it all.)
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
> <snip>
> udp 2304 0 127.0.0.1:5600 0.0.0.0:* 20773/fgfs
> <snip>
>
> According to man netstat, Recv-Q means "The count of bytes not copied by
> the user program connected to this socket". Could someone please test to
> see if this is actually broken or I should be doing something
> differently? I'd rather not roll back to 2.8 if I can get this to work
> again (I'm also happy to change the code and recompile if someone has a
> fix).
>
> Thanks in advance.
>
> Cheers,
> Vik

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to