Hi Patrice, Patrice Poly wrote: > I am declaring : > > _earth_radius_node = fgGetNode("/position/sea-level-radius-ft", true); > > props->tie("debug/earth-radius-ft", > SGRawValuePointer<double>(&earth_rad_ft));
> with earth_rad_ft = _earth_radius_node->getDoubleValue(); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this one and: > displays a correct value in the game: > /position/sea-level-radius-ft = 20899773.07 (double) > /ai/models/ridgelift/debug//earth-radius-ft = 20899773.07 (double) > > > then, if I use : earth_rad_ft = _earth_radius_node->getDoubleValue(); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this one look remarkably similar to me. > I get a bunch of NaNs when making calculations with it (though it keeps > displayed correctly in the properties in the game ) That and the fact that I can't find a problem in the code you posted makes me wonder if the problem isn't anywhere else? Erik ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel