david [Fri, 8 Feb 2002 13:36:46 +0000 (13:36 +0000)]
JSBSim change from Dave Luff:
Attached is a fix to add a short period of cranking time required
before the engine fires. I've also added a little hack to limit the
torque applied by the starter motor when the rpm is less than 10 in
order to avoid the rpm overshooting idle in the first time step when
the prop is producing very little resistance due to the low rpm.
david [Wed, 6 Feb 2002 14:22:23 +0000 (14:22 +0000)]
Patches from Melchior Franz:
- remove buffer with class scope
- remove variable 'length' (isn't used anywhere)
- make process_command private (it isn't used anywhere outside, and it
shouldn't be)
david [Wed, 6 Feb 2002 14:22:04 +0000 (14:22 +0000)]
Patches from Melchior Franz:
- define buffers where they are needed (two places)
- comment out stale debug message (it doesn't buy anything, because the
contents are output two lines below, anyway)
- let every error message begin with "ERR ". This makes error messages
less beautiful, but easier to recognize for scripts. Every internet
protocol that outputs text, has such a tag for distinguishing regular
output from error messages. (pop3 uses "-ERR ", smtp uses error codes,
etc.)
david [Wed, 6 Feb 2002 14:21:24 +0000 (14:21 +0000)]
Patches from Melchior Franz:
- fix html bug (<form> was closed by another <form>, instead of </form>)
- remove useless <br>
- fix a bug, that would have truncated an argument containing a '&'
- extend the comment for urlEncode: cite the concerned RFC
curt [Tue, 5 Feb 2002 20:54:08 +0000 (20:54 +0000)]
A grab bag of tweaks and patches from Norman Vine.
- Better mingwin/cygwin support
- Various gui tweaks and code clean ups
- Initialization clean ups
- Hitlist/scenery tweaks
- other misc. stuff.
curt [Tue, 5 Feb 2002 05:51:11 +0000 (05:51 +0000)]
1. Tidies up h-FOV/v-FOV handling and makes window scale depend on
max(width, height) by default (easily changeable) rather than just width.
(src/GUI/gui.cxx, src/Main/main.cxx, src/Main/viewer.cxx, src/Main/viewer.hxx)
curt [Tue, 5 Feb 2002 05:04:02 +0000 (05:04 +0000)]
1. Enable intro music under MS Windows. (main.cxx)
This works on a CygWin build, and probably works on non-Cygwin builds
as well.
2. Enable FG to start even if audio is not available. (soundmgr.cxx)
Avoids the FGSoundMgr constructor crashing; the rest of FG then runs
OK without sound.
curt [Tue, 5 Feb 2002 04:42:39 +0000 (04:42 +0000)]
Tweaks from Julian Foad:
1. Enable auto-configure on more versions of auto tools. (configure.in)
2. Warnings from auto-configure tools. (src/Time/Makefile.am)
3. Typo: "the it's" -> "its". (docs-mini/README.Joystick)
4. Remove definition of FGViewer::update() that now is (or can be) pure
virtual\
. (src/Main/viewer.cxx)
5. Preferred form of function name according to comments in plib:
"not_working"\
-> "notWorking". (src/Sound/soundmgr.hxx)
curt [Mon, 4 Feb 2002 22:54:02 +0000 (22:54 +0000)]
Updates from "Jonathan Polley" <jwpolley@home.com> to convert from/to 'net'
format before reading/writing data from/to remote machine. This allows
different endian machines to talk to each other. Also added support for
passing time and time offset (warp) in the data packet.
curt [Thu, 31 Jan 2002 20:18:19 +0000 (20:18 +0000)]
Uncommented a few more inline accessors for the FDM. Note that this doesn't
mean that the various flight models are filling in the values with valid
data.
david [Wed, 30 Jan 2002 16:17:26 +0000 (16:17 +0000)]
Fixes from Cameron Moore:
I've attached 3 diffs against files in FlightGear to fix some printf
format strings. The changes are pretty straight forward. Let me know
if you have any questions. (BTW, I'm using gcc 2.95.4)
curt [Sun, 20 Jan 2002 03:52:36 +0000 (03:52 +0000)]
Restructured the 'freeze' property a bit. We now have
/sim/freeze/master (implimented)
/sim/freeze/fuel (implimented)
/sim/freeze/position (not implimented)
/sim/freeze/time-of-day (not implimented)
/sim/freeze/master is bound to the 'p' key via keyboard.xml, however,
/sim/freeze/fuel is not bound to anything at the moment so you must
change it via the external property interface, or specify an initial
value on the command line.
david [Sat, 19 Jan 2002 23:38:24 +0000 (23:38 +0000)]
Added the ability to tilt the view as well as rotate it; the
properties /sim/view/view-tilt-deg and /sim/view/goal-view-tilt-deg
control the tilt. There are (temporarily) keyboard bindings in the
base package for experimentation: Ctrl-O to tilt the view down, and
Ctrl-P to tilt the view up.
david [Sat, 19 Jan 2002 18:25:52 +0000 (18:25 +0000)]
Return a positive shortage when there is still fuel in the tank;
otherwise, the logic in FGEngine::ConsumeFuel breaks down and the
engine is starved when *any* feed tank is empty, rather than when all
feed tanks are empty.
curt [Sat, 19 Jan 2002 14:58:49 +0000 (14:58 +0000)]
Same autogen.sh tweak as for simgear to better handle irix vs.
linux. This will likely require more tweaking as other platforms report
in.
Fixed a warning that Makefile.am was generating.
david [Sat, 19 Jan 2002 05:34:03 +0000 (05:34 +0000)]
Removed FGEngInterface and FGGearInterface after consultation with
FDM people. FlightGear now supports an unlimited number of fuel
tanks. Also added correct fuel-flow reporting for piston engines, and
tracked new features in SimGear property support.
curt [Tue, 15 Jan 2002 22:33:24 +0000 (22:33 +0000)]
Cameron Moore writes:
It is Debian Policy to have a man page for all binaries.
Ove has several Wishlist items in the Debian Bug Tracker for this, so I
decided to whip the main `fgfs` manpage together and started one for the
`fgjs` utility (which I've never actually used).
david [Mon, 14 Jan 2002 03:14:42 +0000 (03:14 +0000)]
Changes to keep the various autopilot properties from stepping on each
other -- it is now possible to set properties at startup (such as an
autopilot altitude). The only user-visible change, other than the
fact that the properties work as they are supposed to, is that the
heading bug no longer starts at a random value.
curt [Fri, 11 Jan 2002 22:16:05 +0000 (22:16 +0000)]
Removed old remnants of plib-1.2.x support. We haven't officially supported
this older version of plib in some time, but there were bits of code remaining
that was (or could potentially) cause confusion.
david [Fri, 4 Jan 2002 20:58:48 +0000 (20:58 +0000)]
Renamed fgParseOptions(int,string) to fgParseArgs, and modified the
function to allow property files as non-option parameters after the
options have finished (and added "--" to terminate options). It's now
possible to do something like
fgfs denver-am.fgd
or even
fgfs at-lax.fgd in-c310.fgd around-sunset.fgd
This works the same way as the --config option, but will be friendlier
for GUIs, where start-up situation files can now be associated easily
with FlightGear.
david [Thu, 3 Jan 2002 17:42:04 +0000 (17:42 +0000)]
Update from JSBSim
Changed _set_Accels_Pilot_Body to use FGAuxiliary::GetNpilot instead
of FGAuxiliary::GetPilotAccel. It looks like a similar change was
started but never finished, and there are artifacts still lingering.
With this change, the slip/skid ball now works reasonably on the C172
when in motion, but not at rest (that will have to wait for fixes to
the gear code).
david [Fri, 28 Dec 2001 23:33:32 +0000 (23:33 +0000)]
Substantial rewrite of FGNewMat, the material class. Most of the
material-specific logic is now removed from the material library and
encapsulated in the material class itself, and materials are loaded
from $FG_ROOT/materials.xml rather than $FG_ROOT/materials. This also
removes a nasty bug in the old material-loading code that caused a
floating-point exception.
curt [Fri, 28 Dec 2001 22:29:59 +0000 (22:29 +0000)]
Updates to build system to better support automake-1.5
- automake-1.4 sets default values for INCLUDES which we can't
overwrite.
- automake-1.5 renames this to DEFAULT_INCLUDES and leaves INCLUDES
open for the developer to use.
Thus for automake-1.4 we are forced to 'append' to INCLUDES and in
automake-1.5 we can just set the value to whatever we like.
Unfortunately, the behaviors of the two versions are mutually
incompatible.
The solution I am committing now works for both versions but
automake-1.5 generates a lot of spurious warning messages that are
annoying, but not fatal.