Melchior FRANZ wrote:
* Curtis L. Olson -- Sunday 22 February 2004 00:43:

Right now KBOS has reduced visibility (2.5 miles), but it's not showing up in FG. Also the temp and pressure and dewpoint is not showing up in FG either. /environment/metar/ is getting populated correctly, but this doesn't seem to be getting carried over to the main /environment structures?


Funny. FGMetarEnvironmentCtrl::init() seems to set it.
BTW, you can check the metar values with e.g.

Assuming it was Eric? who set up the metar interface? It looks like he is setting the /environment/... properties which is what all the other elements of FG read from.


However, these values are interpolated (and thus overwritten) constantly. I think these need to be written to the /environment/config/... tree for all the boundary and aloft layers. Then when the environment manager reinit() is called these values will be loaded into the internal structures which are used for interpolation.

The environment stuff is an intricat weaving of a number of things and I've never quite got my head entirely around it.

Also, the code will *need* to take into account the weather station elevation when it sets the temp and pressure.

While I'm on the subject (David) :-) it's cool how the code is set up to interpolate between layers. A logical addition would be to set up a "past" tree and "goal" tree ...each being a full set of weather configuration values. Interpolate into both of them for the current altitude, then interpolate between the two based on time. This way when the current local weather changes (either because we moved, or a new weather report becomes available) we can plug the new data into the "goal" tree and set up a interpolation time frame (maybe a couple minutes?) Then as time goes by the system will slowly migrate to the new weather values.

Curt.

--
Curtis Olson   Intelligent Vehicles Lab         FlightGear Project
Twin Cities    [EMAIL PROTECTED]                  [EMAIL PROTECTED]
Minnesota      http://www.menet.umn.edu/~curt   http://www.flightgear.org


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

Reply via email to