Hi all on my last flight in IMC at night I saw the effect of strobelights flashing while flying in clouds: It's like having a bright white flashing hull around the aircraft. Human performance manuals says, this can lead to vertigo, so one better switch off strobes while in clouds at night.
I have attached a small patch for the SenecaII aircraft implementing this (just the flashing, not the vertigo of course). It basically adds a semitransparent sphere-object with an emmissive surface around the aircraft that is only visible after sunset within clouds when the strobes flashes. Looks pretty real on my screen. Also added are hotspot panels for VOR2 and the altimeter. Clipped into this mail is also a patch for environment_mgr.cxx that binds the visibility-property of the SGSky object to a property named /envirionment/effective_visibility-m. This property is needed to decide if the aircraft is within clouds or not. I use this property also for the structural icing code. May I kindly ask any of the CVS writer to check this in? Thanks - Torsten <----------- snip ---------------> Index: environment_mgr.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/Environment/environment_mgr.cxx,v retrieving revision 1.24 diff -u -p -r1.24 environment_mgr.cxx --- environment_mgr.cxx 27 Jul 2006 14:28:51 -0000 1.24 +++ environment_mgr.cxx 5 Nov 2006 12:19:16 -0000 @@ -86,6 +86,8 @@ FGEnvironmentMgr::bind () fgTie("/environment/visibility-m", _environment, &FGEnvironment::get_visibility_m, &FGEnvironment::set_visibility_m); fgSetArchivable("/environment/visibility-m"); + fgTie("/environment/effective_visibility-m", thesky, + &SGSky::get_visibility ); fgTie("/environment/temperature-sea-level-degc", _environment, &FGEnvironment::get_temperature_sea_level_degc, &FGEnvironment::set_temperature_sea_level_degc); @@ -206,6 +208,7 @@ void FGEnvironmentMgr::unbind () { fgUntie("/environment/visibility-m"); + fgUntie("/environment/effective_visibility-m"); fgUntie("/environment/temperature-sea-level-degc"); fgUntie("/environment/temperature-degc"); fgUntie("/environment/dewpoint-sea-level-degc"); <----------- snip --------------->
SenecaII-0.4-update.tar.gz
Description: application/tgz
------------------------------------------------------------------------- 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