So I have made another version, this one doesn't seem to throw NaNs, at least for me. In the same time, I have prepared environment.cxx, so that we can mix both thermal and ridge lift. This is easy with just adding 2 properties, thermal_lift_fps and ridge_lift_fps, and mixing the 2 ones when asked for wind_from_down_fps, and asking the AI thermals to write to thermal_lift_fps instead of wind_from_down_fps.
So what I want to do now, is to write a class that continuously writes to ridge_lift_fps, but that would not be dependant of the AI system. I have tried and tried, but I'm afraid this goes beyond my knowledge of C++ and of the FG structure. I would simply put it in environment.cxx, but I need to check for the elapsed time , in order to avoid sampling the ground too often, thus my idea of making it in a separate class, with its own dt. Where could this be done ? I did not manage to get my class alive or updated. Maybe there is no need for a new class ? How would you do that ? Any help would be very appreciated :) The files for what I wrote so far are in : www.bentha.net/fgfs/ridge-lift/ridge-lift-in-environment.zip Patrice ------------------------------------------------------------------------------ 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