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