ehofman [Mon, 23 Feb 2004 20:55:07 +0000 (20:55 +0000)]
David Culp:
I went through the AI code to put the "bank" node back into the config file,
so the models can fly circles. While I was in there I made some other
changes.
*) Moved the initialization of roll, tgt-roll, pitch ... etc, from init()
into the constructor, so it wouldn't over-write the config settings.
*) Changed the altitude getter to remove the meters-to-feet conversion. The
altitude is kept internally in feet. Only the scenery code needs meters.
*) Added "bank" item for config file (for type=aircraft). Left bank is
negative.
*) Added "rudder" item for config file (for type=ship). Left rudder is
negative. Internally this is stored in the "roll" variable, but the ship
model doesn't roll. It uses the "roll" variable for turning though.
The following puts a tanker at 3000 feet, 6 nm northwest of KSFO. On takeoff,
the tanker is visible over the hanger building at one-o'clock.
curt [Mon, 23 Feb 2004 18:25:29 +0000 (18:25 +0000)]
A first stab at limiting the noaa.gov query to only valid stations. There
are many recognized limitations and inefficiencies with this entire approach,
however, it's a quick and dirty way to get something working, where before
we didn't.
ehofman [Mon, 23 Feb 2004 09:48:10 +0000 (09:48 +0000)]
Frederic Bouvier:
The last change from Curt to Airports/simple.[ch]xx made
GUI/AirportList.cxx not compilable because of the loss of
a '*' in getAirport.
Also : fabs is not defined under MSVC unless <math.h> is
included.
curt [Mon, 23 Feb 2004 01:39:12 +0000 (01:39 +0000)]
Enhance the FGMetarEnvironmentCtrl class to also do on the fly weather
updates based on the "closest" airport with metar data available. Note that
the web based query is in the main loop and causes brief sim pauses. Update
rate (once per minute) needs to be tweaked with, but is a good value for
testing.
curt [Mon, 23 Feb 2004 01:37:26 +0000 (01:37 +0000)]
Various mods to allow querying for nearest airport (with optional ability to
only query those stations with metar weather available.) Metar availability
is determined on the fly for now.
ehofman [Fri, 13 Feb 2004 12:54:38 +0000 (12:54 +0000)]
Make sure the friction forces are positive, otherwise they will push the aircraft rather than holding it into place. The ground reaction code still needs some attention.
curt [Thu, 5 Feb 2004 17:11:47 +0000 (17:11 +0000)]
Add my old ultra-simplistic PI controller. The fancy PID controller doesn't
seem to be fully deterministic in P-only mode. This old simple controller
does what I expect, so it's good for calulating stage #1's of multi-stage
controllers.
curt [Wed, 4 Feb 2004 17:10:32 +0000 (17:10 +0000)]
Cleaned up some left over stuff. Working towards infrastructure to support
adding additional PID type algorithms to the code.
Add support for calculating heading bug error relative to magnetic heading
for slaved DG's.
daveluff [Wed, 4 Feb 2004 17:00:19 +0000 (17:00 +0000)]
Make sure at least one Transform() is performed to set the model position *before* first calling DoGroundElev() in order to avoid polluting the tilemgr with bogus tiles
ehofman [Mon, 26 Jan 2004 20:33:30 +0000 (20:33 +0000)]
Alexander Nedotsukov:
I just met a couple of warnings about depricated headers beeng used.
Please take a look at patch (against today cvs) attached wich
does strstream -> stringstream migration. I hope you found it usefull.
curt [Fri, 23 Jan 2004 21:02:09 +0000 (21:02 +0000)]
John Wojnaroski:
latest version is attached to reduce need to search property
tree each frame. I don't think this will break any Fg code and
opengc has been updated a while back and have had no complaints ;-) so it
should be a no impact change, hopefully.
ehofman [Thu, 22 Jan 2004 21:13:47 +0000 (21:13 +0000)]
Make the AI models a bit more intelligent. The Gear should be extended and retracted automatically, the navigation lights turn on when sun-angle-rad > 1.57, strobe and beacon are always on and make sure all properties are returned in the right unit format.
ehofman [Thu, 22 Jan 2004 18:42:42 +0000 (18:42 +0000)]
Make it possible to truncate the result of a number-value text chunk calculation rather than rounding it by specifying <truncate>true</truncate> inside the chunk.