Try using this:
<?xml version="1.0"?>
<PropertyList>
<generic>
<output>
<line_separator>newline</line_separator>
<var_separator>,</var_separator>
<chunk>
<name>>Angle of Attack</name>
<type>float</type>
<format>%f</format>
<node>/orientation/alpha-deg</node>
</chunk>
</output>
</generic>
</PropertyList>
If you need double, maybe %d is the correct argument for format.
Good luck.
On Tue, Jun 24, 2008 at 12:50 PM, İsmail Dönmez <[EMAIL PROTECTED]> 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
>
> --
> Never learn by your mistakes, if you do you may never dare to try again.
>
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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