I've committed the start of a new environment subsystem to the CVS.
This new subsystem is experimental, and to use it you must configure
with

  ./configure --with-new-environment

Otherwise, FlightGear still defaults to Christian's weather subsystem.
I am designing the new subsystem to be simpler than Christian's but
well integrated into the rest of the program.  Right now, it simply
tracks winds and visibility for a single point, but soon I'll be
adding temperature, variability (i.e. gusts and changing wind
direction), air pressure, magnetic variation, cloud information, and
possibly even humidity and precipitation.  There will be an
environment manager class to get FGEnvironment instances for different
locations, together with METAR parsing (of course), but that may have
to wait a few weeks.  I want to go one step at a time, fully
integrating each feature before adding the next one.

Right now, the main changes you'll see with --with-new-environment are
that ATIS doesn't work (I'll fix that soon; it's closely tied to
Christian's code), and that the /environment/wind-from-heading-deg and
/environment/wind-speed-kt properties work and are live (and linked to
the NED vector), so you can change wind direction and speed easily in
the property browser.


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to