Hi, as my time constraints got worse over the years my last contributed code is quite old...
It was the WeatherCM "environmen" - it should be in the CVS somewhere. This code has/had the ability to smoothly interpolate globally between different weather stations, which should prevent the described behaviour. As that code was developed at the same time the property system was developed it's using properties that aren't relevant any more... But it might be an good starting point to improve the current weather system. BTW: at that time there was no way the property system could be used to query the weather database about the current conditions at an given position (e.g. weather conditions at the tower, at an AI aircraft, etc. pp.). Perhaps that's solved now (with NASAL?) CU, Christian Joacim Persson schrieb: > I have an idea of how to at least partially fix the problem with the "wall > of weather" when flying with METAR updates, which when flying on autopilot > in a light aircraft often, not to say usually, results in advanced > airobatic manouvers, loss of control, altitude, and adjustment of the > horizontal gyro. It has been suggested that we should triangulate the > weather from several neighbouring metar data rather than one and that is by > all means an excellent idea but it may not solve everything (there could > still be transients due to varying/poor resolution of metar stations) and is > perhaps trickier to implement than what I have in mind. I think the two > methods should be combined for best result. > > The /environment/metar/ properties are set in > FGClouds::update_metar_properties( const FGMetar *m ) > [src/Environment/fgclouds.cxx: line 270] > where m is the new metar data. The properties are set with calls to the > fgSet...-functions from [src/Main/fg_props.hxx] > > What I would like to do, is replace these instant Set-ing of the properties > to something similar to the interpolate-function in nasal, to smooth out > the change of weather over a certain time; a few seconds up to perhaps a > minute, whatever works best. At least I want to try it out. > > Any ideas on how to implement this? I'm considering doing calls to the nasal > system for the interpolating. Any pitfalls with that? Better ways of doing it? > Useful functions I may have missed? > > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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