I have an issue while using an UDP socket to set the position of my plane. I'm sorry if there is already this kind of posts but I didn't find a solution to my problem.
I use the command line
- Code: Select all
--fdm=null
--generic=socket,in,5000,127.0.0.1,80,udp,simpleLongLat_in
And my simpleLongLat_in file is like that :
- Code: Select all
<?xml version="1.0"?>
<PropertyList>
<generic>
<input>
<line_separator>\n</line_separator>
<var_separator>tab</var_separator>
<chunk>
<name>Longitude Degree</name>
<node>/position/longitude-deg</node>
<type>float</type>
<format>%f</format>
</chunk>
<chunk>
<name>Latitude Degree</name>
<node>/position/latitude-deg</node>
<type>float</type>
<format>%f</format>
</chunk>
</input>
</generic>
</PropertyList>
When I try to send data into my socket there is nothing happening on FlightGear. I don't have any idea on how fixing my issue because I don't even know if FlightGear receive the data.
I have to add that I already did the same thing in the other way (getting value of FlightGear in my java application using --generic=socket,in,5000,127.0.0.1,80,udp,simpleLongLat_in).
So, do you have any ideas on how I can fix my issue ?
Wizmo