- Code: Select all
<PropertyList>
<generic>
<input>
<line_separator>newline</line_separator>
<var_separator>tab</var_separator>
<chunk>
<node>/controls/engines/engine/throttle</node>
<type>double</type>
<format>%f</format>
</chunk>
</input>
</generic>
</PropertyList>
I start flightgear with the following:
- Code: Select all
fgfs --generic=socket,in,1,127.0.0.1,52867,udp,UDP_Write
And the program I run with Matlab is:
- Code: Select all
u = udp('localhost',52867,'localport',5000);
fopen(u);
while(1)
fwrite(u, '0.55');
end
I can see the value 0.55 being output using sockettest, but the value does not change in FG. From reading through threads on similar topics I understand that the physical throttle controller may be overriding the value read into FG, is that the case here? Is there a simple way to check that the protocol is working, perhaps a different variable?