mfranz
be1df4819a
I had hoped that gmtime's lack of thread-safety wouldn't bite us. It does.
...
Fix jumping clock hands.
2005-06-03 08:39:50 +00:00
mfranz
e23c5e49c9
there's no such thing as /sim/time/elapsed-ms --> elapsed-sec
2005-05-10 09:29:24 +00:00
ehofman
4c10ef139c
Mathias:
...
I have done a patch to eliminate the jitter of 3D-objects near the viewpoint
(for example 3D cockpit objects).
The problem is the roundoff accuracy of the float values used in the
scenegraph together with the transforms of the eyepoint relative to the
scenery center.
The solution will be to move the scenery center near the view point.
This way floats relative accuracy is enough to show a stable picture.
To get that right I have introduced a transform node for the scenegraph which
is responsible for that shift and uses double values as long as possible.
The scenery subsystem now has a list of all those transforms required to place
objects in the world and will tell all those transforms that the scenery
center has changed when the set_scenery_center() of the scenery subsystem is
called.
The problem was not solvable by SGModelPlacement and SGLocation, since not all
objects, especially the scenery, are placed using these classes.
The first approach was to have the scenery center exactly at the eyepoint.
This works well for the cockpit.
But then the ground jitters a bit below the aircraft. With our default views
you can't see that, but that F-18 has a camera view below the left engine
intake with the nose gear and the ground in its field of view, here I could
see that.
Having the scenery center constant will still have this roundoff problems, but
like it is now too, the roundoff error here is exactly the same in each
frame, so you will not notice any jitter.
The real solution is now to keep the scenery center constant as long as it is
in a ball of 30m radius around the view point. If the scenery center is
outside this ball, just put it at the view point.
As a sideeffect of now beeing able to switch the scenery center in the whole
scenegraph with one function call, I was able to remove a one half of a
problem when switching views, where the scenery center was far off for one or
two frames past switching from one view to the next. Also included is a fix
to the other half of this problem, where the view position was not yet copied
into a view when it is switched (at least under glut). This was responsible
for the 'Error: ...' messages of the cloud subsystem when views were
switched.
2005-04-29 14:38:24 +00:00
mfranz
a14263a006
code simplification: use atan2() [discussed with David]
2005-04-22 06:41:07 +00:00
ehofman
d3bdc4e7bc
Melchior FRANZ:
...
FGAIMgr::GenerateSimpleAirportTraffic() tries to determine the airport's local
hour from the /sim/time/gmt-time string, which fails, because at this time the
property is still empty. That's why I don't get ATIS at LOWG (where it is *not*
midnight right now. :-) -> use sg's get_cur_time() instead
2005-03-31 17:00:27 +00:00
ehofman
743379925e
update paths.
2005-02-22 18:56:13 +00:00
ehofman
5bc15d7a69
Durk Talsma:
...
I just heard from John Wojnaroski that you and he are going to work on getting
a flightgear demo machine up for the linux expo thursday and Friday. John
indicated that he would very much like to get a CVS version with the new
traffic code up and running before the expo.
2005-02-10 09:01:51 +00:00
daveluff
03f0ac8519
Minor fix
2005-02-02 19:16:51 +00:00
daveluff
e2a170c7d4
Emergency fix for AI model loading - non existance of the piper model as in the latest base package crashes the program - add exception handler during load. Needs to be replaced with better AI aircraft loading logic at some point
2005-01-21 15:50:29 +00:00
daveluff
7793c32f95
Make sure the ATIS reports surface winds at airports above sea-level
2004-12-27 23:55:54 +00:00
curt
222446df29
Replace the data/Airports/basic.dat.gz and data/Airports/runways.dat.gz with
...
a single apt.dat.gz file which is in the native X-Plane format.
To do this I wrote a front end loader than builds the airport and runway
list. Some of the changes I needed to make had a cascading effect, so there
are minor naming changes scattered throughout the code.
2004-12-22 23:57:07 +00:00
curt
634e79353f
Roy Vegard Ovesen:
...
I've finished the emigration of the radiostack, and I've also removed it
completely. It turned out that the comm radio is completely implemented in
the ATC subsystem. I've changed the affected ATC files to point
to /instrumentation/com, but I guess that the maintainer of the ATC code
should decide wether to make it configureable, and how.
I also had to change some files in Network and Main. The changes in network
should be obvious, but the changes in Main were a bit suspect. The files
included radiostack.hxx, but they weren't directly depending on
radiostack-hxx. They were depending on other files that were included by
radiostack.hxx. I got it to compile, but I'm not sure if I included the
correct directly depending file.
For the data directory I changed every occurrence of /radios/
with /instrumentation/ with this simple one-liner that I found on the net:
find -name '*.xml' -type f | xargs perl -pi -e
's/\/radios\//\/instrumentation\//g'
Instead of me sending all the files that got changed by this I suggest that
you execute the one-liner yourself. Of course I can not guarantee that this
will work perfectly, but I considered hand editing to be not an option (I'm
lazy). I don't want to test every aircraft to see if everything still works,
I think it's better to wait and see if anyone complaints about broken nav
radios/instruments.
2004-12-03 21:21:16 +00:00
curt
d05121ef46
Fix my mailing address by replacing it with my web page.
2004-11-19 22:10:41 +00:00
curt
4214cd6c10
Migrate FlightGear code to use "#include SG_GL*" defined in
...
"#include <simgear/compiler.h>".
2004-11-18 19:53:00 +00:00
daveluff
3bb349179d
Use the Transmit-Render functions for tower output instead of directly calling ATCdisplay. This is part of preparations for optionally handing the strings off to a TTS engine if required.
2004-09-30 15:43:32 +00:00
ehofman
409dee5a9d
Remove unnecessary inclusions of sg.h ans ssg.h
2004-09-19 16:33:38 +00:00
ehofman
009afccb37
Reduce the log-level of the airport not found
...
message.
2004-07-23 18:58:42 +00:00
curt
ec8c167a27
Code at this level shouldn't care if the sound manager is paused or not.
...
Just forge ahead as if sound is playing, let the sound manger worry about
the details.
2004-05-14 15:49:10 +00:00
curt
944a82b576
Clean up some sound buffer allocation/deallocation issues.
2004-05-10 21:24:30 +00:00
andy
7ceb85d454
Changes to get FlightGear (well, the src directory at least) to
...
configure and compile out-of-the-box on a MinGW target:
Use -lSDL instead of -lglut32 on windows builds when --enable-sdl
is set.
Link against alut.dll in addition to openal32.dll.
Replace BSD bcopy() with ANSI C memmove() in a few places. This is
simpler than trying to abstract it out as a platform dependency in a
header file; bcopy() has never been standard.
The ENABLE_THREADS handling has changed to be set to 0 when threads
are not in use. This breaks expressions like #ifdef ENABLE_THREADS.
Replace with a slightly more complicated expression. It might have
been better to fix the configure.ac script, but I didn't know how and
this whole setting is likely to go away soon anyway.
The MinGW C runtime actually does include snprintf, so only MSVC
builds (and not all WIN32 ones) need _snprintf in JSBSim/FGState.cpp
Building on a platform with no glut at all exposed some spots where
plib/pu.h was being included without a toolkit setting (it defaults to
glut). Include fg_os.hxx first.
And when still using glut, glut.h has a bizarre dependency on a
_WCHAR_T_DEFINED symbol. It it's not defined, it tries to redefine
(!!) wchar_t to disasterous effect.
2004-04-30 00:52:11 +00:00
curt
0483333a6b
Get ATIS voice working again.
2004-04-26 22:02:30 +00:00
curt
df472fe0f5
Changes to go along with small interface changes in simgear/sound/libsgsound
...
(which is now written on top of OpenAL.)
2004-04-24 19:28:12 +00:00
daveluff
7019fcdc15
Fix a seg fault that could be caused if all no AI models were in existance. Ssg could then free the memory pointed to by our pointer behind our back, causing it to crash when next approaching a controlled airport requiring an AI model. Fix is to hold one ref to each model in the AIMgr at all times.
2004-04-11 15:20:36 +00:00
ehofman
34b0b5220c
Windows fix.
2004-04-06 14:25:33 +00:00
andy
941f99308d
Oops. A change to an upstream header seems to have remove glu.h, which
...
these files require. Dunno why my build didn't pick up the transitive
dependency.
2004-04-06 03:51:11 +00:00
andy
c0b4531d04
Yank out all the glut dependencies and concentrate them in a (easily
...
reimplementable) Main/fg_os.cxx file.
2004-03-31 21:10:32 +00:00
daveluff
e1d1bdc1da
A few abs->fabs where we are passing a double in
2004-03-29 10:25:21 +00:00
daveluff
0bea768f24
Patch from Fred Bouvier to use multi-platform ul library from plib for directory searching instead of ifdefs
2004-03-29 10:20:19 +00:00
daveluff
e8ccfb6d20
Round millibars to nearest whole number, and make inches default even in UK until the altimeter on the panel gets a millibar adjuster
2004-03-24 00:28:52 +00:00
daveluff
b6d30b7224
Convert altimeter to millibars for the UK
2004-03-23 23:36:27 +00:00
daveluff
a8b25e57ff
Add altimeter to the ATIS. Always does inches at the moment.
2004-03-23 23:25:37 +00:00
daveluff
22d8f5a72c
Fix another possible ATC stackdump
2004-03-22 22:09:47 +00:00
daveluff
7e395b47b7
Fix some warnings
2004-03-22 20:57:27 +00:00
daveluff
e2c4a83040
Some more tweaks to the landing clearance code
2004-03-20 04:12:05 +00:00
daveluff
db2ef57049
Delay deletion of AI traffic until after it has had time to release the frequency after its last transmission. This is a bit of a band-aid for more deep-seated problems with the dialog model, but it will solve some problems for now
2004-03-20 03:13:29 +00:00
daveluff
80761c515e
Release the frequency after finishing a transmission
2004-03-20 02:56:13 +00:00
daveluff
fc36c51e89
Slightly more robust handling of runway vacation
2004-03-20 02:55:25 +00:00
daveluff
4d25095e76
Convert some char* return types to string
2004-03-19 13:46:15 +00:00
david
25290c4467
Remove the old WeatherCM module.
2004-03-16 20:19:07 +00:00
daveluff
738b81dc49
Fix a possible crash
2004-03-16 10:35:29 +00:00
daveluff
1347ca930f
Work around for the AI-traffic due to precision issues generated by the radio frequency dialog
2004-03-15 11:14:03 +00:00
daveluff
ead3dd3d5c
Don't clear the user to land following downwind report if there is other traffic on final to land first - instruct the user to follow the other traffic and clear the user to land once the other traffic is clear of the runway instead.
2004-03-12 15:59:14 +00:00
daveluff
9e968eaec7
Fix a situation where the AI aircraft sometimes wouldn't be visible when they should
2004-03-12 15:58:00 +00:00
daveluff
7a044b3faa
Start adding a better framework for ATC-initiated communication. There should be no user-visible change from this commit
2004-03-10 16:01:17 +00:00
daveluff
1e3a4f312b
Add an option for the user to inform the tower (s)he is going around after downwind or final has been reported
2004-03-09 16:20:55 +00:00
daveluff
82ec72da84
Start making the AI traffic robust to not getting a tower pointer from ATC. Eventually this should also lead to being able to generate AI traffic at uncontrolled airports
2004-03-06 14:44:38 +00:00
daveluff
4c84d11862
Use the airport elevation instead of the actual ground elevation when out of visible range of the user. This should reduce thrashing / pollution of the tile cache.
2004-03-05 16:24:04 +00:00
daveluff
f8ef6d16b4
Fix a crash that sometimes occurred when reporting downwind in the circuit
2004-03-05 12:34:08 +00:00
daveluff
406c7d7042
Fix a problem where track would not get initialised to a sensible value before getting altered
2004-03-04 10:11:29 +00:00
daveluff
9773ba5542
Move the mechanics of turning out of the derived classes into AIPlane. The user-visible effect is that AI planes no longer suddenly change direction without turning properly.
2004-03-02 10:43:16 +00:00
daveluff
cb8db7725a
Don't cast string to c_str before passing to functions that take string, and remove an inadvertant push onto the airport_atc_map of data that already exists on it
2004-03-02 10:37:38 +00:00
daveluff
e4859c1fbf
Return the closest match instead of the first in-range match when searching by frequency
2004-03-01 13:49:47 +00:00
daveluff
dcf8d93852
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
2004-02-04 17:00:19 +00:00
daveluff
129a9fabe2
Oops - no 3D model assigned to aircraft starting at airports with logical networks
2004-02-04 16:59:04 +00:00
ehofman
4fb5e61162
MSVC fixes
2004-01-26 20:06:03 +00:00
daveluff
845ba951e4
Melchior found another way to crash it
2004-01-23 18:38:02 +00:00
daveluff
a739fad664
Lots of changes to the ATC/AI system for initial revision of random AI GA VFR traffic
2004-01-23 17:18:24 +00:00
daveluff
afb654a068
Initial revision of class for AI VFR GA traffic
2004-01-23 17:16:15 +00:00
daveluff
4fa02012dc
Don't loose the elevation in ATC projection conversions
2004-01-23 17:14:08 +00:00
andy
439a9fa1e4
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.
2003-12-19 02:42:32 +00:00
david
d296e5a7df
Use proper logging facility, and lower the priority of some of the
...
logging messages. This is part of an effort to make FlightGear a bit
quieter during normal operations.
2003-11-24 17:45:35 +00:00
daveluff
a8c7af79ab
Fix a nasty bug whereby non-scrolling ATC messages longer than the screen width were not rendered at all. They are now rendered with the end clipped - that can be fixed later.
2003-11-19 10:16:26 +00:00
ehofman
f3bb344f4e
MSVC fix
2003-11-14 09:41:31 +00:00
ehofman
e6cd7a0ed7
Add Manuel Bessler and Stephen Lowry's remote joystick code and add David Magginson's 3dconvert utility
2003-11-12 10:06:18 +00:00
daveluff
e77a6e4d3d
Re-commit the changes that I inadvertantly committed as cvsguest
2003-11-09 14:01:50 +00:00
curt
e07b153321
Someone managed to commit changes as cvsguest, return to the original
...
version. These changes need to be added via the proper channels.
2003-11-09 00:46:56 +00:00
daveluff
430a44a803
Further progress towards interactive ATC
2003-11-05 17:24:58 +00:00
daveluff
6162d4462b
Further progress towards interactive ATC control
2003-11-05 10:06:57 +00:00
cvsguest
f4b3bad58e
Fix a nasty bug - FGATC::SetDisplay() should be called *after* FGATC::Init() since display is often initialised to false in the init routine. Also some other bits and pieces.
2003-11-05 10:02:34 +00:00
cvsguest
c2983d61bc
Set the message display delay to default to zero
2003-11-05 10:00:46 +00:00
daveluff
29fa5ce8ec
Fix a typo in the comments
2003-11-04 12:00:36 +00:00
daveluff
a5014c67a8
Start supporting user interaction callbacks and tweak the circuit eta calculation
2003-11-04 12:00:14 +00:00
daveluff
ed2e58d230
Rationalisation of the ATC popup dialog code - moved it all over to AK's dynamic list system and removed the hardcoded list code, extended the dynamic list system a bit, started adding support for callbacks from the user interaction
2003-11-04 11:54:42 +00:00
daveluff
8e904eb882
Cleaned up the ATC communication dialog code somewhat
2003-10-22 10:50:11 +00:00
daveluff
3d104940e9
Fixed up the freqency search dialogs properly - this should eliminate crashing and memory leakage
2003-10-21 11:44:43 +00:00
daveluff
2454446233
Fix a crash from the ATC Frequency dialog at the temporary expense of a small memory leak
2003-10-20 21:48:57 +00:00
daveluff
0adae696aa
AI plane should go around instead of landing on user if user dawdles on runway now
2003-10-19 20:38:08 +00:00
daveluff
cd08f83aa5
Ug - must have been drunk when committing those two de-align lines! - this one works
2003-10-19 19:38:01 +00:00
daveluff
90c0f80b9a
Quick hack to prevent offering an option that isn't implemented yet
2003-10-17 18:56:29 +00:00
daveluff
81c252e40e
Remove some extraneous output, add a few comments, tidy a bit of formatting
2003-10-17 09:56:35 +00:00
daveluff
a28bf4d9ea
Enhancements to AI plane transmissions
2003-10-17 00:31:47 +00:00
daveluff
2666ce81d9
Bug fixes to the AI/ATC interaction mechanism
2003-10-17 00:31:07 +00:00
cvsguest
8308d47e8d
Report Final to tower control class in addition to displaying it
2003-10-16 16:06:54 +00:00
cvsguest
f742186633
Clear AI plane to land when it calls final if rwy clear
2003-10-16 16:06:22 +00:00
ehofman
0e370e6e28
Fix a problem where older IRIX compilers needed a typecast for certain opperations
2003-10-16 14:14:03 +00:00
daveluff
7105d2029a
Remove some cruft, and add a short TODO list
2003-10-16 11:28:44 +00:00
daveluff
0cb2aeffbd
Bug fix: derived classes were never getting a chance to respond to the towers landing intention query properly
2003-10-16 11:12:37 +00:00
daveluff
de24524acb
Transmit an empty string in order to trigger AI/ATC interation mechanism. TODO - transmit the correct phraseology.
2003-10-15 21:51:12 +00:00
daveluff
d0d70bebd7
Move responding to a plane announcing itself at hold short over to the response mechanism. Beware that a particularly nasty assumption that only one plane is ever holding for the runway at once remains for now though.
2003-10-15 21:50:05 +00:00
daveluff
ca766f9aac
Use MHz when stating freqency on-air and call the base class update for response time handling
2003-10-15 14:11:50 +00:00
daveluff
3610b0235c
Tweaks to use the ATC/AI interaction framework and respond to downwind report with position in circuit
2003-10-15 14:10:30 +00:00
daveluff
c76dd941f4
Tweaks to use the ATC/AI interaction framework
2003-10-15 14:09:26 +00:00
daveluff
d5d9723d9b
Tweaks to the ATC/AI interaction framework
2003-10-15 14:06:28 +00:00
daveluff
6d1418ff12
Refactoring - no actual change
2003-10-14 11:10:17 +00:00
daveluff
6769d7974c
Display AI plane transmissions if comm2 is tuned to the same frequency
2003-10-14 11:09:10 +00:00
daveluff
331954ff6f
Tidy the recent freq display code somewhat
2003-10-13 11:30:40 +00:00
daveluff
800510ed58
Fixed a bug where an ATC station on one channel wouldn't stop transmitting when deselected if another type of ATC at the same airport was tuned on the other channel
2003-10-11 18:10:28 +00:00
daveluff
eb0b8ad47c
Add a constant holding the number of different ATC types
2003-10-11 18:08:45 +00:00
daveluff
497559f2ba
Clarification of function comments in header file
2003-10-10 15:14:09 +00:00
daveluff
d43b6fd508
Added ATC frequency lookup dialog
2003-10-10 15:13:16 +00:00
daveluff
9e66194dca
Fix a possible endless loop due to insufficient space in a char array for some messages
2003-10-09 21:37:26 +00:00
daveluff
9d3d4ecc51
Missed a cout
2003-10-09 12:12:09 +00:00
daveluff
70cd48b5b1
A few bug fixes to Alexanders approach vectoring code to get it to work and display instructions
2003-10-09 11:54:09 +00:00
daveluff
2d89960a20
Reformat a function to get rid of tab-space mixture and remove some old commented out code that now lives in ATCDialog.cxx
2003-10-09 11:53:28 +00:00
daveluff
f8d1a58d64
Don't do AreaSearch in ATCmgr since nothing really needs it at the moment plus a couple of bug fixes to frequency search handling of approach
2003-10-09 11:52:42 +00:00
daveluff
b84cf7c3af
Oops - a boo boo of monumental proportions completely took ATC off the air...
2003-10-07 16:05:20 +00:00
daveluff
824f78f255
Formatting changes
2003-10-07 13:01:18 +00:00
daveluff
1a2ee0a908
Remove unimplemented options from the ATC dialog for now
2003-10-07 12:26:28 +00:00
daveluff
c89ea44131
Further progress towards AI/ATC dialog
2003-10-06 22:40:37 +00:00
daveluff
380c69c8a0
Progress towards AI/ATC communication without speaking all at once
2003-10-06 15:20:47 +00:00
daveluff
ea0751eaa2
Minor formatting changes
2003-10-06 15:19:42 +00:00
daveluff
62854c99a6
Removed some extraneous output
2003-10-06 14:09:59 +00:00
ehofman
980012e168
Move FGEventMgr and FGSubsystemMgr over to SimGear, add SGEventMgr to FlightGear's globals structre and some small code cleanups
2003-09-24 17:20:55 +00:00
daveluff
56a0477f76
Fix a nasty bug whereby the AI plane would descend far too early on the circuit following a touch-and-go
2003-09-23 21:01:02 +00:00
daveluff
d9958c7710
Get rid of some cruft
2003-09-23 15:02:12 +00:00
daveluff
6665dcce82
Implement two convienience functions.
2003-09-23 15:01:53 +00:00
daveluff
9bba532487
Another small, incremental step towards interactive tower control.
2003-09-22 23:57:57 +00:00
daveluff
0d9ea4d27c
Fix a compiler warning
2003-09-22 23:56:09 +00:00
daveluff
2b459ebb3f
Slightly more appropriate callsign for C-FGFS. These options still don't do anything at the moment mind!
2003-09-22 23:55:46 +00:00
daveluff
c0137d93af
Return landing type
2003-09-22 23:54:41 +00:00
daveluff
98a752d9e7
Return landing type. Simple AIPlane always returns full stop for now - more advanced classes are expected to override this if required. Also give some enums an ostream operator
2003-09-22 23:53:56 +00:00
daveluff
adce42cef6
Return position
2003-09-22 23:52:25 +00:00
daveluff
6e73e7dc08
Further progress towards interactive tower control. Very much an initial stab at a first iteration of a tricky problem, ie don't look too closely - some of it is ugly!
2003-09-19 16:51:27 +00:00
daveluff
bac252c23d
Reduce taxiing speed a fraction
2003-09-19 16:48:58 +00:00
daveluff
8acea57ad2
Add an overloaded function
2003-09-19 16:48:27 +00:00
daveluff
ca230a7cf3
Remove a couple of extraneous lines.
2003-09-19 09:38:22 +00:00
ehofman
19b61eec1e
Fix a model loading problem
2003-09-17 09:44:37 +00:00
daveluff
d3b7c2ac10
Fix a couple of bugs that resulted in ATIS not being heard at airports with AI traffic active
2003-09-05 13:58:51 +00:00
daveluff
b898c5e4ff
Change the start of descent point of the AI plane when the circuit has been extended when following previous traffic - it should not land short now, although it can land a way down the runway if start of descent should occur during a turn, since it doesnt start descending until the turn is finished
2003-09-05 10:26:11 +00:00
daveluff
be274df23b
Guard against update(...) getting called before init(...)
2003-09-05 10:23:20 +00:00
daveluff
1520fd648e
Output a few properties for AI code devel convienience - probably temporary
2003-09-05 10:22:18 +00:00
daveluff
3f162abf09
Whitespace cleanup
2003-09-05 10:21:29 +00:00
curt
e6859e4fe0
Redo the runway database scheme to use a flat/ascii file and load the entire
...
database into memory at the start. This should completely eliminate any
dependencies we have on metakit.
2003-08-29 04:11:23 +00:00
curt
6665d7d609
Remove one dependence on MetaKit.
2003-08-28 20:53:08 +00:00
curt
b4d0b6dcd4
Fix a property name spelling error.
2003-07-31 01:41:46 +00:00
daveluff
a714849cbd
Initial stab at making the AI plane take the user into account when flying a circuit. The AI plane will now delay it's turns to the various legs if the user has flown a wider pattern that it normally would in front of it. However, this is very much still work in progress - when the pattern gets extended the AI plane lands short of the runway, and it doesn't alter its speed around the circuit at all, only the turn positions. Still, its a start...
2003-06-11 21:49:46 +00:00
daveluff
d975fc129c
Minor changes to the comments
2003-06-11 21:16:40 +00:00
david
e588cbadd8
Removed FGEnvironmentMgr as a special case in globals, initialization,
...
etc.
Improved the weather system to interpolate between different
elevations and deal with boundary-layer conditions. The configuration
properties are now different (see $FG_ROOT/preferences.xml).
2003-06-08 14:47:03 +00:00
daveluff
f61dbf1382
Explicitly initialise aptElev
2003-06-03 14:08:24 +00:00
daveluff
b9332af209
Fix for Cygwin compilation
2003-06-03 13:08:42 +00:00
ehofman
d8ab993194
initialize some otherwise unitialized variables
2003-05-23 11:55:26 +00:00
curt
3c7bdc31d9
Cosmetic changes for new code moved into simgear to make the naming scheme
...
better follow simgear conventions.
2003-05-13 03:18:42 +00:00
curt
56db994994
Moved src/Model/loader.[ch]xx and src/Model/model.[ch]xx to
...
simgear/scene/model/
2003-05-09 20:40:59 +00:00
curt
51c04e9e4c
- Added "SG" prefix to sound classes that recently moved to SimGear.
...
- Cleaned up some minor compiler warnings.
- Moved src/Model/placement.[ch]xx over into simgear/scene/model/
2003-05-09 19:39:48 +00:00
ehofman
5ecfcca7e4
Extract the sound code from FlightGear and move it to SimGear
2003-05-09 18:44:33 +00:00
curt
575b3ac98c
Working at unraveling and breaking dependencies inside of src/Model.
...
I split the FGModelPlacement code out into it's own set of source files.
I created two versions of the fgLoad3DModel() routine. One that is
unecumbered by a panelnode dependency and one that is. acmodel.cxx is
the only place that needs to load an aircraft with instrument panels.
model.[ch]xx are now pretty much free to move over into simgear.
loader.[ch]xx should be able to follow closely behind.
This will be a big step towards being able to move the material management
code over into simgear.
2003-05-08 20:28:46 +00:00
daveluff
a142091a08
Fix to an ATC/AI communication timing bug
2003-05-07 00:07:20 +00:00
curt
2119db35c3
This is step "1" of probably "many" in the process of separating out the
...
scene management code and organizing it within simgear. My strategy is
to identify the code I want to move, and break it's direct flightgear
dependencies. Then it will be free to move over into the simgear package.
- Moved some property specific code into simgear/props/
- Split out the condition code from fgfs/src/Main/fg_props and put it
in it's own source file in simgear/props/
- Created a scene subdirectory for scenery, model, and material property
related code.
- Moved location.[ch]xx into simgear/scene/model/
- The location and condition code had dependencies on flightgear's global
state (all the globals-> stuff, the flightgear property tree, etc.) SimGear
code can't depend on it so that data has to be passed as parameters to the
functions/methods/constructors.
- This need to pass data as function parameters had a dramatic cascading
effect throughout the FlightGear code.
2003-05-06 23:46:24 +00:00
daveluff
a36bf24252
Further progress towards intelligent interaction between the AI plane and the user's plane
2003-04-15 22:55:22 +00:00
daveluff
139f3df761
Moved PatternLeg from AILocalTraffic to AIPlane
2003-04-15 22:54:11 +00:00
daveluff
49434e3085
Fixed some stuff in runway number to spoken string function, and added Alexander's function to get the minimum angular difference between two headings from approach to ATCutils
2003-04-15 10:37:58 +00:00
daveluff
541ff04072
Fix of framerate drop due to broken OnActiveRunway function - don't read in the runway.mk4 file (~1MB) every frame
2003-03-31 16:24:41 +00:00
daveluff
3f53eaeaa7
Add width to ATC RunwayDetails structure
2003-03-31 16:23:49 +00:00
daveluff
fa094c9980
Slight change of function api
2003-03-31 16:23:23 +00:00
daveluff
e4e6864613
Emergency fix of framerate problem
2003-03-31 09:51:36 +00:00
daveluff
657dfefec0
Calculate active runway in FGGround. It would be better to get the active runway from FGTower instead of duplicating the code to calculate it, but at the moment I can't guarantee that tower control at a given airport will be initialised before ground control, so this will have to do for now...
2003-03-28 15:25:48 +00:00
daveluff
b19e54c78a
Moved the RunwayDetails struct definition out of tower.hxx to ATC.hxx
2003-03-28 15:24:02 +00:00
daveluff
d936531600
Initialise user lon, lat and elev
2003-03-27 15:46:23 +00:00
daveluff
9efdc3030e
Some fixes to Alexander's pop-up dialog box
2003-03-27 15:45:48 +00:00
daveluff
e5dbeccc58
Log to SG_ATC instead of SG_GENERAL and cout
2003-03-27 15:45:20 +00:00
daveluff
55daa52f79
Pass dt to update(...)
2003-03-27 15:44:35 +00:00
daveluff
559b134878
Start interacting with ATC (still somewhat rudimentary)
2003-03-27 15:44:10 +00:00
daveluff
7fc214fab3
Progress towards interactive ATC...
2003-03-27 15:41:09 +00:00
daveluff
a4ea7c7561
Oops - let some DOS line endings creep in - quickly get rid of them before Erik notices...
2003-03-26 10:02:32 +00:00
daveluff
81c9e14c7e
MSVC fix from Frederic Bouvier
2003-03-24 11:06:00 +00:00
daveluff
3be0e17e66
Remove un-needed typedef
2003-03-24 11:05:25 +00:00
daveluff
254dc934d1
Add a function to allow transmission of messages to AI entities - the actual implementation is a bit of a temporary hack at the moment
2003-03-20 11:53:44 +00:00
daveluff
6fef4d457b
Load ground ATC frequency data, and map all stations by bucket index
2003-03-20 11:51:44 +00:00
daveluff
ef3b5a4d61
Minor formatting changes
2003-03-20 11:50:34 +00:00
daveluff
3364b6f19d
Base length of time messages are displayed for on dt rather than iterations in order to de-couple it from frame rate
2003-03-20 11:22:08 +00:00
ehofman
01be2ed8e4
Compiler warning fixes and small updates
2003-03-19 17:46:52 +00:00
daveluff
47f46d151d
Add the ability to scroll single ATC messages - this is toggled using property /ATC/display/scroll-single-messages (off by default). Also increased the time that single messages are displayed in non-scrolling mode - this makes ATC transmissions easier to read.
2003-03-17 11:32:51 +00:00
daveluff
b9985548d4
Fix a nasty problem in the FGAIMgr search code that could cause a stackdump with AI traffic enabled
2003-03-14 12:27:24 +00:00
daveluff
f74d6ec90e
Whoops - left out ++itr in a while(1) loop
2003-03-13 11:44:40 +00:00
daveluff
034f224de7
Need to call Init() when initialising tower, otherwise bad things happen...
2003-03-11 23:41:03 +00:00
daveluff
ac731cdd36
Emergency fix of a possible dereference dangling pointer path uncovered by Martin Spott
2003-03-11 17:15:23 +00:00
daveluff
46261bb51b
Added a function to determine whether a point is on a given runway
2003-03-11 13:25:14 +00:00
daveluff
0333c21bbf
Added a function to return the closest ATC station of a given type
2003-03-11 13:24:35 +00:00
daveluff
aabe4da5ca
Start roughing in interactive tower control. AI planes now get the ground control pointer through tower control, which then handles the difference between larger airports with separate ground and smaller ones where tower handles it
2003-03-10 13:41:37 +00:00
daveluff
3a2495e47a
Add units to function documentation
2003-03-10 13:40:10 +00:00
daveluff
75e26663bd
Fixed a compile problem that affected gcc-2.95 users on Cygwin and removed a few unused variable warnings
2003-03-09 23:04:38 +00:00
daveluff
a32c7d50bb
FGAIMgr now searches for proximity to airports with logical networks defined at startup and periodically thereafter, and only starts AI traffic when a suitable airport is found in range (currently only KEMT). In theory it should now be possible for a user to drop in a *.taxi file in my undocumented-shortly-to-change format into fgfsbase/ATC and have an AI Cessna appear at that airport and fly a circuit if they start there or fly near there. In practice its probably better until we start using the output from Bernie's taxiway editor, and there's bound to be glitches once other networks are tried
2003-03-09 17:39:44 +00:00
daveluff
a9463a8399
Added a range parameter to the FindByPos search function, also fixed a bug whereby one too few buckets in the North and East direction were searched - hence when only one bucket should have been searched none were
2003-03-09 17:35:16 +00:00
curt
4223da1a4b
Eeek! Emergency fix of a couple "case" problems for includes.
2003-03-07 14:42:14 +00:00
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
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
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
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
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
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
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
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
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
daveluff
c5403b2a7c
Memory allocation bugfix from Frederic Bouvier, plus a few cout's commented out
2003-01-19 21:31:37 +00:00
daveluff
9c96e109a3
Slight change to some STL stuff that was breaking MSVC6
2003-01-17 16:45:26 +00:00
daveluff
2fb9a21f2d
Fix compilation bug that only occurred when compiled with weathercm subsystem enabled
2003-01-13 19:03:36 +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
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
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
daveluff
e785eb74a5
Add SG_USING_STD(ifstream)
2002-12-20 09:48:09 +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
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
daveluff
4b9c0ad822
Add some stub functions to FGTower to aid ATC dialog box development
2002-12-17 11:36:14 +00:00
daveluff
87be5d93a5
Comment out stray cout
2002-12-16 21:02:07 +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
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
daveluff
46011ab535
Changes and additions to utility functions to support voice ATC rendering and AI taxiing.
2002-12-04 20:05:30 +00:00
daveluff
2a1c00b8e4
Minor changes to variable name and comments
2002-12-04 20:04:26 +00:00
daveluff
8bd892a1a0
Minor change to variable name
2002-12-04 20:03:18 +00:00
daveluff
9be0f4032d
Changes to support AI taxiing and crabing when flying in wind. Still a work in progress.
2002-12-04 20:02:03 +00:00
daveluff
791caf9fbc
Removed unused code and obsolete comments
2002-12-04 19:52:50 +00:00
daveluff
df089b80f8
Changes to support voice ATIS
2002-12-04 19:51:21 +00:00
daveluff
fe6784af51
Initial draft of a canned ATC voice handling class
2002-12-04 19:49:35 +00:00
daveluff
1db3b01e04
Add ground control frequency data handling along the same lines as navlist etc...
2002-12-04 19:47:16 +00:00
daveluff
25d9868759
Include GPL
2002-12-04 19:38:04 +00:00
daveluff
5f543a2fd1
Changes towards ground control and AI taxiing currently very hardwired to KEMT
2002-12-04 19:36:39 +00:00
curt
35b7d568d0
#include <config.h> where needed for cygwin/gcc-3.2.
2002-12-03 14:59:24 +00:00
curt
ae46fe825f
Erik Hofman: Irix build fixes.
2002-10-24 14:02:19 +00:00
david
c581cfa395
Preliminary support for AI planes from Dave Luff. This works only at
...
KEMT (w120n30 scenery), and you will have to set the property
/sim/ai-traffic/enabled to 'true' to see the other plane (and tune
comm1 to 121.2 to hear the other plane's radio calls).
2002-10-02 15:27:49 +00:00
curt
4f00d9a959
Tidy up the autoconf/automake configuration a bit.
...
- Removed some old cruft.
- Removed some support for older versions of automake which technically was
correct, but caused the newer automakes to squawk warnings during an
initial sanity check (which isn't done very intelligently.)
NOTE: this fix is technically not correct for older version of automake.
These older version use the variable "INCLUDES" internally and could have
them already set to an important value. That is why we were appending
our values to them. However, newer versions of automake don't set this
value themselves so it is an error to append to a non-existant variable.
We seem to "get away" with overwriting the value on older versions of
automake, but if you have problems, consider upgrading to at least
automake-1.5.
2002-08-25 19:40:04 +00:00
david
0ebe8ec8f0
Removed the FG3DModel class and replaced it with fgLoad3DModel.
...
Animations are now contained within the scene graph itself and are
updated whenever the graph is traversed -- that saves time by not
updating animations not currently in sight, and it allows animations
to be used for static objects and random objects as well.
Added new FGModelLoader and FGTextureLoader classes. These are intern
tables for models, to guarantee (mostly) that no model is loaded more
than once. FGTextureLoader is not yet used anywhere, but
FGModelLoader is now in place everywhere that ssgLoad* used to be
used (thus adding the ability to use animations).
In the future, FGModelLoader will add some interesting functionality,
including the ability to reload 3D models on the fly.
2002-08-07 01:34:49 +00:00
david
f8d4cb36b2
Fixed reporting of winds, cloudbase, and altimeter setting. The
...
temperature is still wrong.
2002-07-26 02:48:56 +00:00
david
51d3edaafa
Patch from Melchior Franz:
...
This patch eliminates about 10 of valgrind's "Use of uninitialised
value of size ..." messages. They are all caused by approachlist building
incomplete FGApproach class instances and then copying them into the
approchlist container, hence copying data garbage.
I know, I couldn't win a beauty contest with this patch, but the
alternative approach -- letting operator<< always leave complete
entries -- didn't look any better. And I do only add those seemingly
useless initialization where the values would be used uninitialized
else. The constructors are only run during setup and won't slow fgfs
down at runtime.
2002-06-28 19:14:42 +00:00