daveluff
c49a6be9bc
Whoops - forgot SG_USING_STD(cout)
2003-03-07 14:06:52 +00:00
daveluff
96970dcbaf
More stuff to make the AI/ATC system less hardwired and more generic. Most of the hardwired stuff is now gone - there's just a little bit left in FGAIMgr
2003-03-07 13:58:33 +00:00
daveluff
1154a0dae2
Added FindByCode (airport ICAO code) to commlist. This is basically a wrapper around Flightgear's airport lookup and FindByPos
2003-03-06 14:06:34 +00:00
daveluff
c70faa4c0d
Added constructor to ATCData struct
2003-03-06 14:04:02 +00:00
daveluff
3f15f38d8d
If no wind, active runway is now read-out as the most Westward facing one which is consistent with the rest of FlightGear
2003-03-05 21:40:24 +00:00
daveluff
42527ecf1b
Removed a lot of the remaining hardwired KEMT stuff, made the initialisation more generic, added the ability to taxi from a parking spot to a runway, used real ground elevation more
2003-03-05 21:38:29 +00:00
daveluff
8bbaba3193
Added some airport search functions that are straight copies of a couple of statics in fg_init, and will probably be removed again at some point, and added a function to convert a runway designator string to a spoken style phrase
2003-03-05 21:34:58 +00:00
daveluff
f930c93ddb
Added a function to get a path from a gate to a runway threshold, also removed some couts
2003-03-05 21:31:54 +00:00
curt
9b24a37180
David Luff:
...
// search for the specified apt id and runway no
bool FGRunways::search( const string& aptid, const string& rwyno, FGRunway*
r )
there was a bug, in that each runway corresponds to *two* runway numbers
(eg 01/19, 10L/28R) but the function was only checking one. I've modified
it to check the supplied number against both possible numbers for each
runway.
Secondly, I sent in the function:
// Return the runway closest to a given heading
bool FGRunways::search( const string& aptid, const int tgt_hdg,
FGRunway* runway )
a year or two ago now when I first did the ATIS. I'm not sure what I was
doing at the time (copied most of it out of fg_init.cxx) but I don't think
it's ever worked, so here's a brutal modification that does!
2003-03-05 18:02:24 +00:00
curt
92cfd383d6
Remove std::
2003-03-04 00:25:35 +00:00
curt
11e0a3b1f8
Don't remove the named pipe on a "Reset" or position change (i.e. when
...
FGExternalPipe is destructed.) This leaves the name pipe hanging around
even after flightgear exits, but assuming we put the files in /tmp that
shouldn't be a big deal.
2003-03-03 17:48:09 +00:00
daveluff
c8b8afeb78
IRIX fixes from Erik Hofman
2003-03-03 11:43:49 +00:00
daveluff
b308e92bd6
Removed DOS line endings
2003-03-03 10:38:13 +00:00
curt
dbf7218c63
A small optimization, pass the number of iterations to the remote end and
...
have it do all the work, rather than calling the remote end "iteration"
number of times.
2003-03-03 04:59:41 +00:00
curt
2b534ebf6d
Add a net_byte_order flag so that the calling code can specify if network
...
byte order conversion is desired (defaults to true.)
2003-03-03 04:35:09 +00:00
curt
000e86756c
Add support for --fdm=pipe,<pipe_name>
2003-03-03 04:34:27 +00:00
curt
ec9c990ae4
Add ExternalPipe subdirectory.
2003-03-03 04:33:51 +00:00
curt
cc269730a5
First stab at a "named pipe" interface to an external FDM. Compared to the
...
ExternalNet interface:
- allows a much more closely coupled execution. A remote network FDM will run
at it's own rate, and maybe a particular data packets will come, maybe it
won't. This makes it very hard to control timing and keep the animation
smooth. There are also cpu scheduling issues with running multiple
processes on a single machine. The linux scheduler by default runs at
100hz. If an FDM process uses a sleep/alarm system to avoid wasting
CPU, it will be forced to run at 100hz, 50hz, 25hz, 20hz, etc. This
makes it *impossible* to serve a display system running at 60hz without
dropping frames.
- the downside is that the FDM process must now run on the same machine as
the master flightgear process.
2003-03-03 04:30:16 +00:00
david
648f1208f8
Patch from Frederic Bouvier:
...
arrays of insufficient size are allocated in prop_picker.cxx ( size()
don't count the null char ) and strcpy is writing outside the allocated
array. A patch follow.
2003-03-02 16:37:48 +00:00
david
45f3eb7f99
Patch from Erik Hofman:
...
I've updated the instrument modulator code to allow tricks like the one
described by Andy. It is now possible to define <min>, <max> and
<modulator> in one layer and if <min> and/or <max> ore within the range
of the <modulator> tag, their value will be honoured.
So, if you define
<layer>
<min>0</min>
<max>50</max>
<modulator>100</modulator>
</layer>
The value will stay at 50, until the modulator forces it back to 0.
2003-03-02 14:19:24 +00:00
david
c8b8722a14
Don't fiddle with control positions at startup -- we can do that in
...
the *-set.xml files if desired.
2003-03-02 02:22:18 +00:00
david
c7998b9940
Initialize speed from mach number or vcas more-or-less properly.
2003-03-02 01:44:11 +00:00
david
1e5d48d1d9
Add spdFromMach() and spdFromVCAS().
2003-03-02 01:43:39 +00:00
david
c90d7e96c2
Make sure the atmosphere is updated before the flight model.
2003-03-02 01:43:00 +00:00
david
af38fe4803
Don't allow this subsystem to be suspended.
2003-03-01 21:29:31 +00:00
david
e1bb9b67f5
Refactor things so that individual subsystems can override suspension.
2003-03-01 21:29:16 +00:00
david
58adf467bf
Add a new <power> property to allow raising an axis to a power other
...
than 1 or 2 (<squared/> still works as well, and is equivalent to
<power>2</power>).
2003-03-01 21:28:51 +00:00
david
d38685b92f
Minor code cleanup.
2003-02-26 19:20:02 +00:00
daveluff
489b8186b0
Use actual terrain ground elevation instead of hardwired KEMT elevation field whilst taxiing. Still need to fix this for takeoff and landing roll. Also added a check that a valid gate is found whilst arriving, and simply disappear the plane if none is found (instead of stackdumping\!\!
2003-02-26 11:24:15 +00:00
david
21d3b2848a
Initialize the internal pressure to ambient pressure.
2003-02-25 20:04:22 +00:00
daveluff
42868f2550
Whoops - a stray debugging cout got through
2003-02-25 09:32:49 +00:00
daveluff
54a7b5d9ad
Modified slightly whilst developing the shortest-path algorithm in the ground code. Also removed some old KPAO specific initialisation.
2003-02-24 19:04:53 +00:00
daveluff
e805a4188c
Added a shortest-path algorithm between two nodes and removed the hardwired KEMT-specific path. Also tidied up some bugs in the gate handling code
2003-02-24 19:03:15 +00:00
david
c07f22ea16
Begin supporting a starting speed for YASim:
...
- NED and UVW are working correctly
- knots is giving true airspeed instead of calibrated airspeed
- mach is not working at all
This desperately needs a trimming routine.
2003-02-22 20:29:43 +00:00
david
afb2e68f89
Add new options:
...
--vor=ID
--ndb=ID
--fix=ID
--turbulence=NORM
2003-02-21 02:46:44 +00:00
david
4b9060b064
Invoke fgInitNav() before fgInitPos().
2003-02-21 02:46:07 +00:00
david
22097a5272
Add fgInitNav() function so that navaids and fixes can be loaded
...
earlier, before fgInitSubsystems().
Modify fgInitPos() so that the plane is not automatically aligned with
a runway when an airport is the reference point unless (a) a runway
was explicitly requested, or (b) the plane is on the ground with no
offset distance specified. To set up the plane lined up on an
approach to a runway, use something like
fgfs --airport=CYOW --runway=32 --altitude=300 --offset-distance=0.5
This way, it's possible to specify a starting position relative to an
airport without getting snapped onto a runway approach (unless you
want to be).
2003-02-21 02:45:47 +00:00
david
7d7a137d86
Declare fgInitNav().
2003-02-21 02:42:45 +00:00
david
8eac88efe9
Fixed calibrated airspeed output so that it accounts for wind.
2003-02-19 17:41:53 +00:00
david
b78d5a0b93
Interpolate the twist linearly over the wing.
...
Reduce the minimum number of twist segments from 16 to 8.
2003-02-18 17:37:28 +00:00
david
7228024ed5
Added a "twist" attribute for wings to allow for washout (or washin,
...
if desired) in the stall. This allows for fairly docile stalls when
desired, as on trainers (you also need to limit the elevator lift).
2003-02-18 16:50:07 +00:00
daveluff
0ecc199b09
Added basic support for using more than one voice. The render function is moved out of ATCmgr and into the ATC base class.
2003-02-18 10:44:01 +00:00
curt
317e48ba4f
Jim Wilson:
...
Here's a patch to fix the asi problem (it affects most aircraft panels).
[ Avoids a sqrt( x < 0 ) ]
2003-02-16 20:47:40 +00:00
curt
d4d53763d9
Commented out a stray cout.
2003-02-13 21:31:44 +00:00
daveluff
ecad8a206e
Alexander's new files added to Makefile.am
2003-02-13 12:21:01 +00:00
daveluff
85a79b4886
Changes in support of Alexander's ATC menu/transmission work. In particular all the pop-up dialog stuff has been ripped out of ATCmgr.[ch]xx and moved to ATCDialog.[ch]xx
2003-02-13 12:20:25 +00:00
daveluff
b271bc5da2
Better robustness for the ATCData structure istream operator. Adding fin.close() seems to have cured an intermittent stackdump when reading in the voice files which are the next istream operation to occur. Unknown types no longer cause the rest of the file not to be read - only the specific unknown entry
2003-02-13 12:17:37 +00:00
daveluff
f57e495893
Alexander's Approach ATC class modified to support his new menu/transmission code
2003-02-13 12:09:28 +00:00
daveluff
5dbf38c273
First draft of work by Alexander Kappes to add dynamically driven menu entries to the pop-up ATC dialog, parsing of text input to the ATC system and parameterised transmissions where the speech of a transmission is derived from the intent based on data files potentially allowing users to specify different phrases for each voice instead of being hard-coded. This is a work in progress.
2003-02-13 12:05:19 +00:00
david
2412c3a334
Integrate code posted by Jon Berndt, so that only the z-direction
...
turbulence is diminished near the ground.
2003-02-12 23:00:49 +00:00
david
0a6d2b7559
Minor code cleanups.
2003-02-12 18:35:04 +00:00
david
1693a364e4
Square the /environment/turbulence-norm property before scaling it for
...
FGAtmosphere -- that way, there are finer distinctions in the lower
end, where most people will fly.
2003-02-12 18:34:51 +00:00
david
9f5498acf4
Fade out the turbulence within two wingspans of the ground.
2003-02-12 18:34:39 +00:00
david
4ecd146258
Connect the FlightGear /environment/turbulence-norm property to the
...
turbulence gain in JSBSim's FGAtmosphere class.
Latest FGAtmosphere from JSBSim with working turbulence support.
2003-02-12 00:30:24 +00:00
curt
86bf012f50
Erik Hofman:
...
Sort aircraft when using --show-aircraft option.
2003-02-11 21:17:36 +00:00
curt
0ab97746c8
Erik Hofman:
...
Adds some small updates to the sound code (add vector clearing in destructors).
2003-02-11 20:26:42 +00:00
david
4c93c8a070
Temporarily disabled ILS range tweaking, until we come up with a
...
better scheme.
While it's true that the actual ILS indications are unreliable when
far off the approach path, the ILS is not out of range -- you can
still ident it (an essential part of any approach procedure), and the
indicator will usually be doing something, however bizarre. The
current scheme did not allow the user to ident the ILS until
practically on the approach path.
2003-02-11 20:05:18 +00:00
curt
53083bf9fb
Another tilemgr fix from Jim W.
2003-02-11 15:50:53 +00:00
daveluff
4231262d61
Several *list.[ch]xx files removed
2003-02-10 22:30:13 +00:00
daveluff
5e40c46afc
approachlist.[ch]xx superceeded by commlist.[ch]xx
2003-02-10 22:29:15 +00:00
daveluff
f3cc3cc658
towerlist.[ch]xx superceeded by commlist.[ch]xx
2003-02-10 22:28:31 +00:00
daveluff
20455b1f61
atislist.hxx superceeded by commlist.hxx
2003-02-10 22:27:43 +00:00
daveluff
4df26cb392
atislist.cxx superceeded by commlist.cxx
2003-02-10 22:27:12 +00:00
curt
5efcc9c1d9
Dave Luff:
...
Patch to remove initialisation of atislist,towerlist and
approachlist which have been superceeded by commlist.
2003-02-10 20:42:18 +00:00
curt
0fe90a83dd
Fix a bug in tile manager updating when switching from one view to the next.
2003-02-10 15:34:18 +00:00
daveluff
1915423544
groundlist now replaced by commlist
2003-02-07 13:38:57 +00:00
daveluff
df3e54cc47
Whoops - missed a file from the commlist changes yesterday
2003-02-07 13:34:56 +00:00
curt
79b3e39251
There are a number of little changes. Tested with current cvs as of 20:30EST
...
04Feb. Actually been running since the beginning of January with these
patches. All changes work without crashing with the current base package cvs,
but there are some visual problems with the views (other than pilot view)
without changes to the base package.
As soon as you can build test and commit I can add in those base package
updates that will make it all work nicely. I will also go through all the 3D
Aircraft configs to make sure the change in the "pitch-offset" for cockpit
views (see below) are made to maintain current behavior.
Here are the files (changes listed below):
http://www.spiderbark.com/fgfs/viewerupdate.diffs.gz
http://www.spiderbark.com/fgfs/viewerupdate.tar.gz
2003-02-06 19:44:32 +00:00
david
41b04ba02b
Make sure that we have a VOR or VORTAC, and not just a DME or TACAN.
2003-02-06 16:18:17 +00:00
david
fbfb499d49
The switch position was screwed up -- 2 means "hold last frequency",
...
not "off".
2003-02-06 16:17:47 +00:00
david
2a388d796e
Use the property /sim/sound/voice to disable voice support even if
...
/sim/sound/audible is true.
2003-02-06 16:17:03 +00:00
daveluff
9b7405304d
Major re-work of the comm frequency storage and lookup. Only a small core amount of data is now stored instead of the whole ATC classes. All the comm frequency types are now stored in one map instead of a map each. query(...) and query_bck(...) have been renamed to FindByFreq(...) and FindByPos(...) for clarity and consistency with NavList
2003-02-06 10:42:43 +00:00
david
9864453259
GUI style changes suggested by Erik Hofman and Curtis Olson.
2003-02-05 02:17:08 +00:00
david
e4f1dbace7
Patches from Johan Walles:
...
Here are the two modifications I had to make to get flightgear (just
updated from CVS) to build. The first one is for being able to specify
SimGear's location at the ./configure command line, and the second one
is to be able to link.
2003-02-05 01:09:20 +00:00
curt
23668a2a08
Rephrased some comments to avoid /* in a comment warnings.
2003-02-04 22:28:48 +00:00
curt
b6e4238dfa
Clean up a compiler warning.
2003-02-04 22:28:19 +00:00
curt
e8b6077c79
James Turner:
...
Here's a change to the GUI property picker I did a few weeks back.
It makes the values in the property pick 'live' (and also re-factors
the picker code to use less arrays, this should be obvious from the
diffs). A good demo is to open up the engine node and observe the rpm,
cylinder head temp, oil pressure and so on while playing with the
throttle and airspeed. It's pretty rough (some rounding of digits would
help) but useful for testing (at least I think so). I'm not sure about
the performance implications either, but it seems fine for me.
2003-02-04 22:27:58 +00:00
curt
0111a2c71c
Fix a bug in transit sound termination and adjust the minimum time we
...
wait with no change before stoping the sound.
2003-02-04 18:18:24 +00:00
curt
8228afdbac
Periodically the turn coordinator is jammed all the way to one side.
...
Initialize _last_rate to 0 at start up to hopefully avoid this.
2003-02-04 17:23:21 +00:00
curt
fed01db83a
Oops, sorry, nothing more to see here, move right along ...
2003-02-04 17:22:00 +00:00
curt
6bfdb5a762
Add support for specifying an rpm source for the alternator. This enables
...
us to tie the output of an arbitrary generator to the state of an arbitrary
engine.
2003-02-03 22:35:24 +00:00
curt
1b40b5e4c9
Fixed a spelling error in the api. (ouch) :-)
2003-02-03 22:22:02 +00:00
curt
9e35d33657
Add the ability to specify an initial state (on/off) for a connector switch.
...
If nothing is specifed the switch defaults to on, but this is a problem for
the starter switch.
2003-02-03 22:15:36 +00:00
curt
fc095c7061
Avoid a potential segfault.
2003-02-03 21:57:25 +00:00
curt
2ce74e14b1
Register that we have been inited so the init routine isn't called repeatedly.
2003-02-03 21:57:07 +00:00
curt
88b98d9d79
Updated FGILSList api to better match the FGNavList api.
2003-02-03 20:05:27 +00:00
curt
371b5314a8
Updates to use new FGILSList api (updated to better match NavList api)
2003-02-03 20:04:56 +00:00
david
8506e731a2
Minor logging changes.
...
All logs and log entries are now disabled by default, unless
explicitly enabled by an 'enabled' property. This works much more
intuitively with the GUI dialog.
2003-02-01 17:59:52 +00:00
david
603834ccf1
Add support for numerals as well as letters in Morse identifiers
...
(needed for many navaids).
2003-01-29 23:30:34 +00:00
david
67defdcf2f
README for src/Systems/
2003-01-29 16:03:00 +00:00
david
91c8dd3196
Converted to a simple FGSubsystemGroup.
2003-01-29 16:02:46 +00:00
david
70dde366bc
Removed unneeded inclusion of std::vector.
2003-01-29 16:02:27 +00:00
david
9c574d4b87
Added a README for the src/Instrumentation/ directory.
2003-01-29 15:38:52 +00:00
david
9841edf429
Added a README for the src/Cockpit/ directory.
2003-01-29 15:34:31 +00:00
david
57da4bf02d
Removed the old FGSteam module from FlightGear.
2003-01-29 15:30:29 +00:00
tony
6acae863ec
Removing files already removed from JSBSim CVS.
2003-01-27 23:42:08 +00:00
david
269c83b86a
Correct old-reinit_dialog to old-reinit-dialog.
2003-01-27 15:39:41 +00:00
david
7470eadbe7
Make the indicator a little less jumpy.
2003-01-26 20:57:57 +00:00
david
95e3e9d28b
Add serviceable property.
2003-01-26 20:21:04 +00:00
david
d56bc5c9df
If the gyro becomes unserviceable, stop spinning immediately.
2003-01-26 20:20:33 +00:00
david
113b1192c4
Make serviceable property writable.
2003-01-26 20:20:15 +00:00
david
c8f775c103
Switch to opaque dialogs and menu (with a heavy heart).
2003-01-26 20:19:15 +00:00
david
c165466a07
Use new magnetic compass property.
2003-01-26 15:56:30 +00:00
david
f72891e113
Added magnetic compass instrument.
...
Removed some unused bind/unbind methods.
Improved responsiveness of slip-skid ball.
Some minor cleanups.
2003-01-26 15:56:11 +00:00
david
acbb9f5aff
Renamed /velocities/side-slip-rad to /orientation/side-slip-rad.
...
Renamed /velocities/side-slip-deg to /orientation/side-slip-deg.
Renamed /velocities/alpha-deg to /orientation/alpha-deg.
Added /accelerations/ned/north-accel-fps_sec.
Added /accelerations/ned/east-accel-fps_sec.
Added /accelerations/ned/down-accel-fps_sec.
Renamed /accelerations/pilot/x-accel-ft_sec2 to
/accelerations/pilot/x-accel-fps_sec.
Renamed /accelerations/pilot/y-accel-ft_sec2 to
/accelerations/pilot/y-accel-fps_sec.
Renamed /accelerations/pilot/z-accel-ft_sec2 to
/accelerations/pilot/z-accel-fps_sec.
2003-01-26 15:53:35 +00:00
curt
fe45f5b7a8
Output target navaid radial to external gui so it can resolve potential
...
ambiguity in selected ILS approach.
2003-01-26 03:39:09 +00:00
david
9adaa93b19
Kludge in a /systems/electrical/serviceable master property to kill
...
the whole electrical system. We will also need a mechanism to kill
individual suppliers (such as the alternator), but this is good enough
for most training.
2003-01-25 21:49:57 +00:00
david
25387150c4
Improve spindown when the gyro fails.
2003-01-25 21:48:35 +00:00
david
99aa857dcb
Added support for the slip-skid ball.
2003-01-25 21:13:13 +00:00
curt
8cc7b283d5
Refactored some of the navlist code and removed the built in "fail to find"
...
if the station is too far away. Instead, simply return the closest station.
All the code that searches navaids does it's own range checking anyway.
This will make the navlist query functions a bit more useful for other
types of functionality where you may need to lookup a station without
consideration of range (i.e. presetting your position relative to a navaid.)
2003-01-25 20:45:39 +00:00
david
677c3e3e9a
Added a Gyro helper class to factor out some common code for managing
...
a spinning gyro.
Changed FGInstrumentMgr to inherit from FGSubsystemGroup, greatly
simplifying the (already simple) class. I should probably rename this
to FGInstrumentGroup or something similar, but not today.
Added the gyroscopic turn indicator (part of the TC).
2003-01-25 19:49:27 +00:00
david
4526b1b8ee
Remove redundant rate properties recently added.
2003-01-25 19:47:35 +00:00
david
f3b00f1598
Publish properties for accelerations and rates.
2003-01-25 17:25:30 +00:00
curt
925f521521
Initial revision.
2003-01-24 18:12:04 +00:00
tony
a9d81f2e65
Latest JSBSim updates, including use of new "JSBSim" namespace
2003-01-24 12:55:28 +00:00
david
9679c7da15
Changed 'exit' command to quit immediately, rather than displaying a
...
built-in dialog (use an XML dialog instead).
Added an fgExit() function to simplify exit and cleanup.
2003-01-24 03:08:23 +00:00
david
980eae6187
Remove old-preset-* commands; replaced with a general, XML presets
...
dialog.
2003-01-24 02:49:30 +00:00
david
8e659f84fa
No longer recursively search $FG_ROOT/gui/dialogs/ for configuration
...
files; all of them must be at the top level.
Do not attempt to parse a configuration file unless it ends with
".xml".
2003-01-24 02:43:52 +00:00
curt
29a3525869
Add a "signed" distance to the GS transmitter. When you are in the approach
...
hemisphere the distance is positive, if you are in the departure hemisphere
the distance is negature. (Possible use for graphing approach distance
vs. glide slope or cdi.)
2003-01-22 01:24:32 +00:00
david
d819c42184
Remove another deprecated command, and fix things up so that dialogs
...
reload properly on a reinit.
2003-01-21 15:44:21 +00:00
david
87a84efbb0
Added support for reinit(), to reload the configuration files without
...
having to restart FlightGear. This should speed up GUI design and
debugging quite a bit.
2003-01-21 02:09:27 +00:00
david
0940afae5a
Fixed iteration bug in destructor.
2003-01-21 02:08:56 +00:00
david
fbcfbd9355
Removed need to specify 'type' property at the top level; it's always
...
a dialog.
2003-01-21 02:08:41 +00:00
david
f61d73e546
Make fgLoadProps more flexible, to read from $FG_ROOT or the current
...
directory.
2003-01-21 02:08:00 +00:00
david
e0c7b29aa7
Added reinit, suspend, and resume commands.
2003-01-21 02:07:29 +00:00
david
40bed0a3f1
Change GUI method names.
...
Do not delete GUI objects directly; let the GUI manager do it instead.
Simplify some code for readability.
2003-01-20 16:03:48 +00:00
david
9291bb510d
Rename some methods to be more intuitive, add a close method for the
...
active dialog, and add lots of documentation.
2003-01-20 16:03:09 +00:00
david
123931834f
Fix memory leaks (PUI doesn't make copies of lists, so we have to make
...
our own copies and keep pointers to them).
2003-01-20 16:02:26 +00:00
david
4dc28f11f4
Add more documentation comments.
...
Fix memory leaks (PUI doesn't make copies of lists, so we have to make
our own copies and keep pointers to them).
Adjust for new method names in NewGUI.
Move the GUIInfo struct into the cxx file so that it's not part of the
public interface.
2003-01-20 16:01:54 +00:00
david
bbff86ed36
Add new object types "slider" and "dial".
...
Fix memory leaks (PUI doesn't make copies of lists, so we have to make
our own copies and keep pointers to them).
Adjust for new method names in NewGUI.
Move the GUIInfo struct into the cxx file so that it's not part of the
public interface.
2003-01-20 16:01:16 +00:00
david
21b46469ee
Make sure the gust wind speed is never less than the base wind speed.
2003-01-20 13:02:18 +00:00
curt
364df6baaa
Fix a potential buffer overflow.
2003-01-20 03:14:43 +00:00
curt
e00fa3dbaf
Tweaks to protocol names to match recent changes in options.cxx (so they
...
will work.) :-)
2003-01-20 03:09:54 +00:00
david
62be29c640
Make some allowances for a dialog closing in the middle of a callback.
...
Add support for combo fields.
2003-01-19 23:04:03 +00:00
david
c1d6741fd5
Go back to the simpler arrangement syntax of a map of vectors.
2003-01-19 23:03:31 +00:00
david
35935cb23a
Major overhaul by Frederic Bouvier to make options table-driven.
2003-01-19 23:02:51 +00:00
daveluff
c5403b2a7c
Memory allocation bugfix from Frederic Bouvier, plus a few cout's commented out
2003-01-19 21:31:37 +00:00
david
6205d5eb1a
Do an update after apply to see what really got into FlightGear.
2003-01-19 17:22:05 +00:00
david
dd4890d952
Add support for a "checkbox" dialog widget (for boolean properties).
2003-01-19 17:21:38 +00:00
david
ed3ae450ce
Use a pointer for the bindings vector to try to work around a 2.95
...
bug.
2003-01-19 17:21:18 +00:00
david
cf5d7499ad
Changed return type of fireItem to void.
2003-01-19 15:27:29 +00:00
david
9e143bc615
Use FGGlobals::get_fg_root instead of looking up the environment
...
variable directly.
2003-01-19 12:54:26 +00:00
david
5d5de3c903
Removed a couple of the deprecated dialogs, and removed the old
...
predefined bindings for F11 and F12. Instead, there is now a soft
binding from F11 to the autopilot dialog.
2003-01-18 21:59:25 +00:00
david
013c322dd3
Added the property-cycle command.
2003-01-18 21:13:11 +00:00
david
7d3c375df2
Remove the old built-in bindings for F8 and F10 (they can be done in
...
keyboard.xml now).
2003-01-18 21:12:27 +00:00
david
64aa833087
Tie the bool property /sim/menubar/visibility to hide and reveal the
...
menubar.
2003-01-18 21:11:51 +00:00
david
7ae491dc2e
Keep track of the visible/hidden state more robustly.
2003-01-18 21:11:15 +00:00
david
b2713841b6
Simplify looking up the GUI subsystem.
2003-01-18 21:10:49 +00:00
curt
d8f4bfa9ae
Make the destructor virtual.
...
(I thought I'd slip this in along with David's change to the default menu
configure option. I believe that will cause a new config.h to be generated
which will cause a near complete rebuild of FG (as will this globals.hxx
change) so it shouldn't cause additional grief to have these happen at the
same time.)
2003-01-18 19:40:28 +00:00
curt
4226eab6bd
More updates to refine the output data to make it more useful for an
...
external GUI and approach path plotter.
2003-01-18 19:36:50 +00:00
david
88e2ffabfe
Add in some temporary commands to get at the old, hard-coded dialogs.
...
Most of these will eventually be replaced with XML-configured dialogs,
and the rest will be turned into proper widgets or global commands.
2003-01-18 16:26:41 +00:00
david
9e2707c9f8
Do late, lazy binding of commands from the command manager.
2003-01-18 16:25:50 +00:00
david
c10ce7bd26
Renamed GUIWidget to FGDialog.
2003-01-18 15:57:51 +00:00
david
6371783e2d
Include fg_props.hxx to get definition of FGConditional.
2003-01-18 15:16:54 +00:00
david
6632b2d8c2
Unbundle dialog-box support from the top-level GUI manager, to
...
simplify maintenance.
2003-01-18 15:16:34 +00:00
curt
abcd050795
Oops we tweaked the preset_commit command name, let's call it by it's
...
correct name.
2003-01-17 22:54:09 +00:00
david
55182238e6
Do not require libScripting.a unless PSL is available.
2003-01-17 18:25:34 +00:00
daveluff
9c96e109a3
Slight change to some STL stuff that was breaking MSVC6
2003-01-17 16:45:26 +00:00
curt
7c3df373af
Convert distance to touch down point to nm.
2003-01-17 13:49:48 +00:00
david
04f1dc4837
Make all PSL support conditional, because it's not included in plib
...
1.6. The macro is HAVE_PLIB_PSL.
2003-01-17 12:41:47 +00:00
curt
537cb97f56
Allow network byte order conversion to be conditionally compiled off.
2003-01-17 00:11:49 +00:00
curt
9f6cd30b34
Updates to the net_gui code that can spit out updated flight information
...
to the network which a gui might be interested in.
2003-01-16 20:57:28 +00:00
david
9d726c1bd8
Started a new FGMenuBar class to handle a different XML-configurable
...
menubar. This one allows regular command bindings, with the
(temporary) condition that every menu item must have a unique text
label. The new menubar is disabled by default; to enable it,
configure --with-new-menubar.
2003-01-16 18:06:27 +00:00
david
af4f1894c9
Added a run_inline method that automatically wraps the script in a
...
main() function. It's not hooked to a command, yet.
2003-01-16 18:04:24 +00:00
david
2256c3d5fd
Simplify subsystem handling through FGGlobals.
2003-01-16 16:01:26 +00:00
david
b2518a0056
Broadcast suspend/resume/reinit through the manager and its groups.
2003-01-16 15:11:04 +00:00
curt
ea543c1210
Renamed mini_fdm to native_gui which makes a lot more sense to me.
2003-01-15 02:09:10 +00:00
daveluff
2fb9a21f2d
Fix compilation bug that only occurred when compiled with weathercm subsystem enabled
2003-01-13 19:03:36 +00:00
curt
9bff823e0a
Added velocity and climb_rate to mini_fdm structure.
2003-01-13 00:27:50 +00:00
curt
f3d4f741f0
Update to the Mini FDM network protocal (mostly renaming class and file names)
...
Wired this in to options.cxx and fg_io.cxx so it can be activated.
2003-01-12 23:39:18 +00:00
curt
e4b3eebdbb
Added a "mini fdm" output. This could (for example) be useful for an
...
external gui if it wanted to monitor some key sim position/orientation
varialbles without saturating the net with the full slate of fdm data
@60hz.
2003-01-12 23:28:21 +00:00
curt
f9ae85b0c0
Consolidate and clean up some of the FDM network interface code.
2003-01-12 22:11:55 +00:00
curt
f2dac6306f
#ifdef out a bit more code that could cause compile problems on platforms
...
that don't have all the latest opengl extensions.
2003-01-12 14:28:26 +00:00
david
9bbe8a78b6
Added simple proof-of-concept support for running PSL scripts from
...
input bindings. They will work only with the latest CVS; otherwise,
./configure will disable them. There is a new command, 'script',
which takes a single argument, also called 'script', containing PSL
code (currently PSL requires a main() function).
Erik Hofman has written some more elaborate code for triggering PSL
code from drop-down menus and scheduling events; I will look at
integrating that next.
2003-01-11 16:30:32 +00:00
david
5424c65f00
Removed #ifdef FG_PLIB_JOYSTICK_GETNAME -- it's in 1.6, so we can rely
...
on it.
2003-01-11 16:27:56 +00:00
curt
f918bdcc0c
ExternalNet -> Updated to not repeat code from native_ctrls.
2003-01-10 19:45:29 +00:00
curt
9f5105bfbc
Oops, a bit more clean up.
2003-01-10 19:12:28 +00:00
curt
95600d1c27
Updated to support all the fields in net_ctrls.hxx
2003-01-10 19:10:46 +00:00
curt
d359a103c5
Rename a variable so we don't have to rely on scoping rules to distinguish
...
between the same veriable name used twice.
2003-01-10 17:01:57 +00:00
daveluff
086be2b474
Start the ATIS recorded message at a random position into the broadcast when the radio is tuned into it
2003-01-07 14:41:49 +00:00
daveluff
c8a67cb773
Search ATC frequencies with both comm1 and 2 instead of just comm1 as previously
2003-01-07 13:11:00 +00:00
curt
6a45be1d72
Oops missed some more usage of opengl extensions that may not be on everyone's systems.
2003-01-06 21:43:59 +00:00
curt
7805202fc6
Set SO_REUSEADDR on incoming UDP socket so other processes on the host
...
can also monitor the UDP broadcasts.
2003-01-06 02:51:07 +00:00
curt
e160b3b312
#ifdef out experimental lighting for now until someone has time to investigate
...
the "right" way to test for and use extensions.
Hopefully this will clear up compile problems a lot of people have been
haveing.
2003-01-06 02:50:29 +00:00
curt
be703a92b4
Add support for in-air preset starts relative to a VOR, NDB, or Fix.
2003-01-05 00:10:36 +00:00
curt
30dc5aab90
Ooops, the presets_commit command was lost going from the 1.8 -> 1.9 version
...
(Sun Dec 22 19:58:34 2002 UTC)
2003-01-04 21:22:43 +00:00
curt
5fc7c70a4a
Expose the ability to run built in (command manager) commands via the
...
"telnet" interface.
2003-01-04 19:04:07 +00:00
david
1ec788b6da
Patch from Julian Foad to fix wrapping behaviour for property-adjust
...
and property-multiply:
Firstly, change back to wrapping modulo the interval, with "min <= x <
max" semantics. I believe the previous implementation did that. The
inline function that Norman mentioned also does that.
Secondly, make it snap to the nearest value (min + N*resolution) when a
"resolution" tag is present, taking special care of floating-point
precision. Or perhaps specify "number of divisions in the interval" as
an integer, instead of "resolution" by which I meant a floating-point
"size of a division".
[also fixed]
While working on this file I noticed some potentially serious warnings:
fg_commands.cxx: In function `bool do_property_adjust(const
SGPropertyNode*)':
fg_commands.cxx:435: warning: control reaches end of non-void function
fg_commands.cxx: In function `bool do_property_multiply(const
SGPropertyNode*)':
fg_commands.cxx:465: warning: control reaches end of non-void function
/usr/local/include/simgear/misc/props.hxx: At top level:
fg_commands.cxx:600: warning: `bool do_presets_commit(const
SGPropertyNode*)' defined but not used
2003-01-04 18:47:25 +00:00
daveluff
a1d4e79127
Fix problem with cout
2003-01-03 16:30:44 +00:00
daveluff
7ae6c2010d
Fix compiler warning
2003-01-03 15:01:16 +00:00
david
9ff659bba7
Work around G++ 2.95 bug by removing use of STL find() function.
2003-01-01 18:47:50 +00:00
david
71f08e795d
Patches from Erik Hofman for SGI compatibility:
...
Some more cmall changes to the SimGear header files and removed the
SG_HAVE_NATIVE_SGI_COMPILERS dependancies from FlightGear.
I've added a seperate JSBSim patch for the JSBSim source tree.
2002-12-31 18:26:02 +00:00
david
e4409c5222
Add the 'offset' and 'factor' arguments back into property-adjust;
...
they're needed for the mouse.
2002-12-31 12:08:32 +00:00
david
af609fcd93
Patch from Bernie Bright:
...
FWIW here are patches for src/FDM/ADA.[ch]xx that remove a dependency on
<simgear/io/sg_socket.hxx>
2002-12-31 03:21:49 +00:00
david
52c564b5b8
Patch from Norm Vine to remove unnecessary include-file dependencies.
2002-12-31 03:13:17 +00:00
david
ea6448c956
Modify the property-assign command to optionally copy a value from
...
another property (suggested by Jim Wilson).
2002-12-31 03:05:38 +00:00
david
7cc894be4b
Require /sim/rendering/experimental-lighting to be true before using
...
experimental lighting rendering (which is very expensive on my
machine, for example). To use distance attenuation,
/sim/rendering/distance-attenuation must also be true.
2002-12-31 01:15:59 +00:00
david
8e60042052
Patch from Erik Hofman:
...
This patch turns out to be much more reliable compared to the previous
one I sent Curtis. Could you apply it for me?
2002-12-31 00:56:14 +00:00
david
cf3e79ee46
Cleanup from Norman Vine to prevent compiler warnings. He also writes:
...
Note I believe there was a 'missing comma' in the next to last row also
2002-12-30 22:21:31 +00:00
david
c153e21174
Bug fix suggested by Gonzalo Peralta:
...
Convert the fuel flow from gallons to pounds <kludge>assuming 100LL at
sea level, 6lb/gallon.</kludge>
2002-12-30 22:16:16 +00:00
david
e80c093681
Distance attenuation patch from Erik Hofman:
...
It adds a command line options to enable/disbale distance attenuation
using a property rather than using a #define inside the code. It also
adds a small change for systems that don't support the OpenGL extension,
so that the lights *do* fade away as they get furher away but they don't
get smaller in size.
2002-12-30 21:49:56 +00:00
david
0d12c4d83d
Removed the (apparently unused) 'factor' and 'offset' arguments from
...
property-adjust.
Modified property-adjust and property-multiply so that they always
work with double values, to simplify the code.
Factored out some common code.
Added a 'mask' argument to the property-adjust and property-multiply
commands. If mask is set to "all" (the default), then the command
works as before; if mask is set to "integer", it works only to the
left of the decimal point; and if mask is set to "decimal", it works
only to the right of the decimal place. This functionality is useful
for tuning VHF COM and NAV radios.
2002-12-30 19:50:17 +00:00
david
ea98111926
Made it possible to add and remove models programmatically, as
...
requested by Leon Otte.
2002-12-30 15:44:11 +00:00
david
c5751c7df4
Cleaned up some whitespace.
2002-12-30 15:43:16 +00:00
david
d31e0e7071
Allow panel mouse bindings to use mod-up.
...
Ensure that if a condition for a panel mouse binding fails, other
bindings for the same area will have a chance to run.
Add a repeatable flag for panel mouse bindings (defaults to true).
2002-12-28 19:05:45 +00:00
david
f85b9589da
Fixed so that 2D panel bindings work again.
2002-12-23 19:16:58 +00:00
david
63672604bf
Removed debugging statements accidentally left in.
2002-12-23 17:58:31 +00:00
david
a7e56cf399
Added new commands:
...
- dialog-open
- dialog-close
- dialog-update
- dialog-apply
The last two can copy a value from a property to a GUI field or
vice-versa either individually or across the whole dialog.
2002-12-22 19:58:34 +00:00
david
5c2fb92a92
Use SGPropertyNode_ptr and add a private copy constructor, both for
...
safety's sake.
2002-12-22 19:57:09 +00:00
david
0111183153
Reworked the XML-configurable GUI to use the same binding structure as
...
the keyboard, joystick, mouse, and 2D panel. Exposed methods for
applying and updating property values in GUI fields.
2002-12-22 19:52:26 +00:00
curt
6225936ead
Various tweaks.
2002-12-21 05:01:51 +00:00
daveluff
e785eb74a5
Add SG_USING_STD(ifstream)
2002-12-20 09:48:09 +00:00
curt
c7ab26871c
Allow the polling frequency of the telnet/props server to be set on the
...
command line.
2002-12-19 21:55:05 +00:00
daveluff
3447ab6e57
Read KEMT ground network from file instead of hardwiring it into the code.
2002-12-19 14:03:36 +00:00
daveluff
38b3f48d41
Code beautifying
2002-12-19 14:00:52 +00:00
daveluff
5931760602
Make AI traffic more robust to not getting a list of runway exits - it is now simply removed from view at the end of the landing roll instead of stackdumping if no exits are returned
2002-12-19 12:26:10 +00:00
curt
2d09acb10f
Fix a potential crash when an electrical system is not defined.
2002-12-18 21:55:33 +00:00
curt
a857322d9c
Norman Vine:
...
This patch finally reenables the AutoPilot gain adjuster.
2002-12-17 19:57:49 +00:00
daveluff
22d94b8273
First draft of an ATC dialog box, mostly copied from the autopilot new heading dialog box code. Need to bind a key to the ATC-dialog command to bring it up.
2002-12-17 17:19:14 +00:00
curt
b30ceec62d
Remove DOS line endings.
2002-12-17 15:31:34 +00:00
daveluff
4b9c0ad822
Add some stub functions to FGTower to aid ATC dialog box development
2002-12-17 11:36:14 +00:00
tony
3cb4d55342
Fix for X-15 crash.
2002-12-17 00:07:46 +00:00
daveluff
87be5d93a5
Comment out stray cout
2002-12-16 21:02:07 +00:00
curt
54b980854c
Read audio panel switches and parking brake.
2002-12-16 06:09:38 +00:00
curt
44be7da053
Added support for an audio panel.
2002-12-16 06:09:05 +00:00
curt
2b74a7c3d6
Additional failure modeling.
...
Support parking brake in external fdm.
2002-12-16 01:13:39 +00:00
curt
74b5aa6a41
OBS turning work, work on supporting failure moding.
2002-12-16 01:12:10 +00:00
david
8e7dfbe292
Add a reinit() stub for subsystems, so that they can be reinitialized
...
when needed (say, to reload the configuration files).
2002-12-15 14:58:08 +00:00
curt
0e69acaff7
Simplified to use the delta_time_sec that is passed to the update() routine
...
rather than calculating a separate delta_t and using that.
2002-12-14 14:39:56 +00:00
curt
51c5b9bf09
Work on nav2_obs tuner.
2002-12-14 14:38:19 +00:00
curt
339f39f235
Change time counter to a double. Add a variable which can allow us to
...
track long term rate stats to verify we are hitting the requested hz.
2002-12-14 14:37:40 +00:00
david
f332d1b659
Removed redundant logging statement.
2002-12-12 17:55:49 +00:00
andy
ba84ec24bf
Changing the thresholds to be bigger in the previous patch isn't
...
really useful unless we simultaneously change the per-iteration deltas
to be smaller. Add another pseudo-tunable to control the speed with
which we change values across iterations. As it turns out, this is
much more effective than the threshold tunable. It does come at the
cost of lower solution performance, however.
2002-12-12 02:15:06 +00:00
curt
5c8e6a5841
Tweak taxi light rendering so they don't look completely bogus at dusk.
2002-12-12 01:24:48 +00:00
andy
ac93c22545
Put in some (currently compile-time) tuning for the solver threshold.
...
A recent change resulted in the Piper Cub oscillating about its
correct solution.
2002-12-11 22:58:47 +00:00
andy
4fb6673ff7
Update masses on the rigid body when consuming fuel. Simply updating
...
the tank capacity won't change the aircraft.
2002-12-11 22:52:52 +00:00
david
c3398c9add
Have DummyBSphereEntity inherit from ssgBranch instead of ssgEntity,
...
to allow building with the latest plib CVS.
Problem identified by Norm Vine.
Fix suggested by Steve Baker.
2002-12-11 21:49:25 +00:00
curt
10baa71a65
Fix out of order initialization crash (not sure how it worked before
...
unless some recent changes subtlely changed some init order items around.)
2002-12-11 21:07:30 +00:00
curt
43e48070fe
- Some refactoring of the configure.ac script.
...
- Better Mac OS X support (they put glut.h in GLUT/glut.h) :-(
2002-12-10 20:50:48 +00:00
curt
69b5c093dd
#ifdef out all references to sgCloud3d until more of it's issues can be
...
addressed.
2002-12-10 19:25:12 +00:00
curt
b640aceaa8
Change library order for cygwin.
2002-12-07 13:54:13 +00:00
curt
28243f40ca
White space cleanups.
2002-12-07 02:26:50 +00:00
curt
1feedec8d1
- Change the global_tile_mgr to a globals->get_tile_mgr() which is
...
dynamically created at run time.
- Further clean ups to the FGTileMgr class interface.
2002-12-06 22:29:46 +00:00
daveluff
49d843e22e
Patches from Erik Hofman - use Plib's wave file loader plus IRIX fixes.
2002-12-06 15:35:18 +00:00
daveluff
4d6ac0ddf5
Code improvements from Norman Vine
2002-12-05 16:51:40 +00:00
curt
a4600f85c7
Updates for 0.9.1
2002-12-05 15:31:09 +00:00
curt
eac68e9d93
add uiuc_getwind.h to distribution.
2002-12-04 23:02:08 +00:00
daveluff
bc3df74066
Add ground.[ch]xx, groundlist.[ch]xx and ATCVoice.[ch]xx to Makefile.am
2002-12-04 20:08:03 +00:00
daveluff
c65c5f3a4a
Changes to support voice rendering of ATC
2002-12-04 20:07:12 +00:00
daveluff
d3e33e8b53
Changes towards tower control - work in progress with no end-user benefit yet
2002-12-04 20:06:20 +00:00