On 02/07/2007 02:14 PM, Andy Ross wrote: > So if there's a design flaw here, it's at a higher level. Maybe > what's really needed is a "digit extractor" animation instead.
Good news: The /design/ is not as flawed as it looks. All evidence indicates that the primary problem with the step-and-scroll function was not the design; the primary problem had more to do with the implementation. The code was practically begging to get bit by roundoff errors. A patch to fix the code can be found at http://www.av8n.com/fly/fgfs/animation.patch It's a patch to animation.cxx (the latest CVS version thereof) providing a virtually complete rewrite of the apply_mods(...) function therein. Folks will need to -- apply the patch; -- recompile simgear and install the new version. -- re-link fgfs against the new simgear library. (The makefile will probably force a major recompile of flightgear, which really shouldn't be necessary, and can be prevented if you're clever, but that's a topic for another day.) I have done only limited testing, but it appears to successfully unbreak quite a few heretofore broken instruments. For example, the radios in the SenecaII-jsbsim were very broken, but they seem fine now. There are some tricky bits in the code, but I was careful not to add any "detestable" comments. The goal here is to fix all the step/scroll bugs, without any need to fool with <bias> or anything like that. Similarly there should be no need for fudge factors that are "almost" equal to unity to ensure correct formatting of the display. If this goal is not being met, please let me know. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel