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.
curt [Mon, 12 Jan 2004 17:39:41 +0000 (17:39 +0000)]
Attempt #1 to sort out confusion between left / right / parking brake
controls in the cockpit vs. which wheels they apply to. FlightGear now
sets /controls/gear/brake-left, /controls/gear/brake-right, and
/controls/gear/brake-parking. It should be up to the FDM to sort out
which wheels under which circumstances are affected by these controls
and ultimately what happens to the physical motion of the aircraft.
andy [Fri, 9 Jan 2004 17:05:26 +0000 (17:05 +0000)]
First cut at a turbulence model for YASim. It's a
perlin/scale-invariant vector field implemented as a 2D lookup table.
Seems to work OK, but needs testing and feedback.
I, Curtis Olson, being the primary author of these header files, hereby
release them into the public domain to facilitate interfacing FlightGear
with other external code (which might need to remain proprietary or may
be licensed under some not quite GPL compatible terms.)
curt [Tue, 30 Dec 2003 05:57:25 +0000 (05:57 +0000)]
First stab at correct vasi/papi coloring. This is still rough and doesn't
account for variation in lighting alignment, but it's more useful than the
previous attempt which was based on a misunderstanding of how environment
mapping worked.
andy [Mon, 22 Dec 2003 19:18:22 +0000 (19:18 +0000)]
Fix for a premature deletion bug. The _arg SGPropertyNode* is passed
to handlers which might want to assign it to a SGPropertyNode_ptr for
reference counting (Nasal does, for instance, to prevent garbage
collector interactions). If that smart pointer is then destroyed,
that will free this object while it is still live.
Simply use a SGPropertyNode_ptr here; the code ends up smaller as a
bonus, since FGBinding no longer has to deallocation for _arg.
ehofman [Sun, 21 Dec 2003 20:12:55 +0000 (20:12 +0000)]
Make the AI model export it's internal state to the property tree under /ai/model[] using the same naming convention as used for the regular FDM. Also make sure the model animations are relative the the /ai/model[] node.
andy [Fri, 19 Dec 2003 02:42:32 +0000 (02:42 +0000)]
Minor API changes to support the new sg_geodesy implementation. A few
places now use sgCartToGeod() instead of rolling their own
approximation. And YASim is now using exactly the same 3D coordinate
system as the rest of FlightGear is.
curt [Tue, 9 Dec 2003 21:05:26 +0000 (21:05 +0000)]
Fix the nmea and garmin output to a) fake a GSA sentence, b) fix a y2k bug
(seriously, my bad), c) fix some issues with the RMC string, d) use proper
line terminators (\r\n), and e) a few other clean ups.
andy [Mon, 8 Dec 2003 02:05:10 +0000 (02:05 +0000)]
Add a new command, "dialog-new", allowing external code (e.g. Nasal
scripts) to create dialogs at runtime. Augment "dialog-close" to take
a name argument, allowing code other than PUI callbacks to close
dialogs.
The changes to the GUI directory to enable this are actually minor,
basically amounting to using SGPropertyNode_ptr reference counting
(the GUI subsystem no longer "controls" the dialog property trees, so
it can't delete them).
ehofman [Sun, 7 Dec 2003 17:39:48 +0000 (17:39 +0000)]
Melchior FRANZ:
Everyone knows that ufos can turn on the spot.
Turn on rudder input at low speeds. (Quite useful when using the
ufo fdm for exploring the scenery.)
andy [Fri, 5 Dec 2003 01:54:39 +0000 (01:54 +0000)]
Turn the __timers garbage collector cache into a more generic "gcsave"
interface, and use it to cache FGNasalScript objects returned from
a new parseScript() method.
Added a rand() function.
Added an interpolate() function interface to the new SGInterpolator
subsystem.