On Tue, 2008-06-24 at 19:50 +0300, İsmail Dönmez wrote:
> Hi all,
>
> I created a simple protocol file named fl.xml :
>
> <?xml version="1.0"?>
>
> <PropertyList>
> <generic>
> <output>
> <binary_mode>false</binary_mode>
>
> <chunk>
> <name>Angle of Attack</name>
> <type>double</type>
> <node>/orientation/alpha-deg</node>
> </chunk>
>
> </output>
> </generic>
> </PropertyList>
>
> And I am running flightgear with :
>
> fgfs --generic=socket,out,100,0.0.0.0,5500,udp,fl --aircraft=787-ANA
>
> Now the problem is the value I get is 11, but the field contains
> 11.543... value which I can see from telnet interface.
> I tried to add <format>%f</format> but then it shows 0.0. So I wonder
> if you have any ideas regarding this problem with double fields.
>
> Regards,
> ismail
>
I looked at a protocol file I have used in the past...
<!-- Orientation -->
<chunk>
<name>roll-deg</name>
<type>float</type>
<format>%f</format>
<node>/orientation/roll-deg</node>
</chunk>
Try using <type>float</type> instead of <type>double</type>
Ron
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users