On Apr 26, 2008, at 12:11 PM, Alex Buzin wrote: > Hi! > On Saturday, April 26, 2008 Adam Dershowitz wrote >> >> Then your extension must be handling the input differently. When >> data >> is read in from a text file, using --generic it is not possible with >> the current code to read in a double. It is called an FG_DOUBLE in >> some places in the code, but it is converted to a float before it is >> written to the property tree. The actual line of code in >> generic.cxx was: >> >> _in_message[i].prop->setFloatValue((float)val); > > The initial reason was to read data from binary file and now it > can make > full i/o in binary form. But I did not change pointed line and FG > got float > data without truncation due to converting to/from text form. As I > wrote > there were no problems with 0.9.10. May be with text form this can > cause > problems. > But I think there is no difference between double and float while > reading with format 12.9f. Did you try to change i/o format in > playback.xml > without changing generic.cxx? > > With respect, > Alex > >
I believe that the format description, in playback.xml, is only used for output of data. It is only in the <output> section of the data. The only information used for input is the <type>float</type>. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel