1
0
Fork 0
Commit graph

2447 commits

Author SHA1 Message Date
david
64e81d1960 Make sure values get back to FGInterface, in case we're not trimming.
This is especially important for setting multiple values like Euler
angles.
2003-04-04 22:44:32 +00:00
david
eff59b94a6 Do not allow the dewpoint to be higher than the temperature. 2003-04-04 22:38:55 +00:00
david
7543355d17 Add new property-randomize command.
Set a random value for a numeric property

Params:

  <property> - the name of the property to randomize
  <min> - the minimum allowed value
  <max> - the maximum allowed value
2003-04-04 22:38:35 +00:00
david
abf660ecef Make the turn indicator a little less responsive, again. 2003-04-04 03:25:27 +00:00
david
ad6236cbe7 Add the ability for the AI to tumble in extreme attitudes, if
/instrumentation/attitude-indicator/config/tumble-flag

is true.  The AI will take up to five minutes to reerect itself
completely.
2003-04-04 03:25:02 +00:00
curt
d82ce71d28 Tweak to the --atc610x option. 2003-04-02 14:56:21 +00:00
curt
b5f7761861 Fixed a remaining typo from the death and destruction earlier today.
Added an option to avoid using non-existant rudder pedals if they truely
non-exist.
2003-04-02 03:45:08 +00:00
curt
0620fed54a Switch to snprintf() to add an additional small measure of safety until
someone rewrites this file without needed a printf() varient at all.
2003-04-01 19:14:08 +00:00
curt
ec5609ef43 You bastards! Writing property names to char arrays that are too short for
the data you are putting in it. :-(  Fixed ...
2003-04-01 18:50:46 +00:00
ehofman
5454a4f281 Set the initial log-level back to info 2003-04-01 18:45:34 +00:00
ehofman
acf65e6ff4 Fix another controls overhaul problem 2003-04-01 16:56:13 +00:00
david
7ba6807736 Fix to use renamed /controls properties. 2003-04-01 15:51:15 +00:00
david
726d97be3c Removed old menubar option. 2003-04-01 15:50:51 +00:00
ehofman
cdd7998c90 David Luff:
The one to fg_init.cxx initialises the AI subsystem regardless of whether it's enabled or not so that later enabling by the user doesn't crash it, and the one to main.cxx avoids running the ATC manager and ATC display system unless enabled.
2003-04-01 13:42:10 +00:00
ehofman
c3cefaf883 Updates to the controls properties tree. This is a major update so there may be one or two 'old' refferences left. To simplify the transisition there is a file called README.properties in the docs-mini directory of FlightGear that explains the new controls layout. 2003-04-01 12:43:18 +00:00
ehofman
a6c1632298 Fix a small problem which crept in after a late night session 2003-04-01 08:36:09 +00:00
curt
d3f6354332 Return code to it's original form which works around an idiosyncracy in
our data.
2003-04-01 04:13:02 +00:00
curt
d25fa96db3 Previously if a freq search matched an ILS that had no dme, it would
proceed to search for an VOR of that same frequency.  On rare occasion
this search could return true with a far distant VOR and cause a small
amount of confusion.
2003-04-01 03:44:20 +00:00
curt
fe3283eb12 Updated to work with new instrumentation version of dme. 2003-04-01 03:42:51 +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
ehofman
7de4466897 Change some cerr messages into SG_LOG messages 2003-03-31 09:36:49 +00:00
ehofman
891e83809e Remove an unnecessary check. This is done in fgPanelVisible already 2003-03-31 08:36:49 +00:00
ehofman
58937e7e6b Fix a bug where current_panel was called before it was initialized properly 2003-03-31 08:25:00 +00:00
curt
67ad32267f Sorry, left in some debugging statements, now removed. 2003-03-31 01:35:26 +00:00
curt
5df9811576 I found 3 problems with the GS modeling in flightgear (all my fault originally
I believe.) :-)

- The height of the navaid was not being properly converted to meters
  before being used in our internal calculations.  This caused the GS
  to be placed too high.

- I was using the wrong trig function to calculate the current approach
  angle of the aircraft.  The distance to the GS source is the euclidean
  point to point distance and represents the hypotenuse (not the ground
  distance) so I need to use asin() rather than atan() to calculate the
  angle.

- I was calculating distance directly to the GS source, rather than
  taking into consideration that the GS transmitter projects a plane,
  so I need to take the distance to the line where that plane intersectso
  the ground.  Previously, the way I modeled my distance calculation, the
  GS transmitter effectively formed a 3 degree cone from the source.  The GS
  transmitter is usually placed a 100 meters or so off the runway edge so
  the cone model could never bring you in to the touch down point precisely.

With these changes, the GS will bring you in precisely to the touchdown
point as defined in the default.ils.gz file (it wouldn't before.)  The only
issue that remains is that it will bring you in to the elevation defined
in the ILS database, which doesn't necessarily match the DEM/SRTM terrain
at that point.  Still on average, this will be a big improvement until we
can do a better job of getting the runway end elevations nailed correctly.
2003-03-31 01:29:23 +00:00
ehofman
7948238156 Declare fgReshape into gui.h 2003-03-30 19:40:43 +00:00
ehofman
729a3b9af7 Cache some nodes 2003-03-30 16:49:48 +00:00
ehofman
1f8da4224c Change the log level of somme messages which can harldy be called allerts 2003-03-30 13:30:25 +00:00
ehofman
cf7839a67b Second update in attempt to create an aircraft selection dialog
New panels are loaded now
  New 3D model gets loaded
  Reinitialize more subsystems
  Add reinit() to FGFX, sound gets reinitialized

  Still a lot needs to be done though.
2003-03-30 12:49:05 +00:00
ehofman
4b62426109 Move current_panel to globals 2003-03-30 12:46:08 +00:00
curt
68522eb75c There were several typos in the unbinding section of FGInterface. This meant
that after a reset or reposition, several FDM variable were not unbound
correctly and left dangling pointing to unallocated memory.  This wasn't
a crash type bug, but those properties then had bogus values.  This
specifically prevented the turn coordinator gyro modeling from working after
a reset or reposition.
2003-03-30 02:26:05 +00:00
curt
2bf14d785f Removed static inline qualifiers to the fgLoadAircraft definition. 2003-03-29 22:09:28 +00:00
ehofman
37c427558a A first stab at an aircraft selection dialog 2003-03-29 15:04:52 +00:00
david
159bcc4401 Make the turn indicator more responsive. 2003-03-29 14:19:12 +00:00
curt
a552e3bc82 If the main frame rate is less than the requested io rate, don't send multiple
copies of the same data for the sole purpose of faking it.
2003-03-29 03:43:39 +00:00
curt
652863db06 Fix a typo (specified analog in channel 39 rather than 29.
Various other tweaks.
2003-03-29 03:39:52 +00:00
curt
7f28165daf Added a property /sim/rendering/draw-otw which specifies whether or not
we want to draw the out-the-window view (defaults to true in properties.xml)
2003-03-29 03:21:48 +00:00
curt
db46791c48 Don't start paused for in air starts. 2003-03-29 03:19:35 +00:00
curt
fcf6021f76 Add a property which specifies if the current nav station has a glideslope. 2003-03-29 03:19:03 +00:00
curt
49cace7a21 Fixed intermittant marker beacon audio. 2003-03-29 03:18:17 +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
curt
4eadfc4233 Added support for toe brakes
Added support for instrument panel pots
Just default circuit breakers to on.
2003-03-27 02:57:31 +00:00
ehofman
2b151fd7f3 Latest MultiPlayer updates 2003-03-26 14:12:17 +00:00
ehofman
9914cfa93c Latest MultiPlayer updates 2003-03-26 14:06:51 +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
ehofman
5355d1b048 Add a generic, configurable communiction output option 2003-03-25 18:47:30 +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
ehofman
b71e0774d6 Make spoilers and speed-brake position accessible 2003-03-24 10:44:45 +00:00
ehofman
60283d19bb Add speed-brake and spoilers controlls 2003-03-24 10:04:19 +00:00
tony
1a50c56d5e Updates from JSBSim, including new turbine engine model from David Culp 2003-03-23 15:12:35 +00:00
ehofman
0fe7c2452c MultiPlayer updates for MSVC from Frederic Bouvier 2003-03-23 10:08:47 +00:00
ehofman
ef37b45dc7 Frederic Bouvier's assorted set of MSVC fixes 2003-03-23 09:59:46 +00:00
ehofman
2d0cc7e1a8 Latest MultiPlayer updates 2003-03-23 09:51:28 +00:00
ehofman
1b450bee25 Make callsign parameter aware 2003-03-22 15:43:24 +00:00
ehofman
9ef6b16054 Remove old if..then..else kludge an favour of Frederic Bouvier's new code. This also fixes a problem with MultiPlayer options being defined in the wrong place 2003-03-22 14:52:15 +00:00
ehofman
0782e877a9 Add runtime log level support 2003-03-22 10:38:15 +00:00
ehofman
d2583bb172 Add comma to log statement 2003-03-21 22:22:33 +00:00
ehofman
46d48f7f98 Add logstream header files when using SG_LOG() 2003-03-21 21:12:12 +00:00
curt
3ade4d02e6 Removed SG_USING_STD(for_each) to make MSVC happy(er). :-) 2003-03-21 21:09:21 +00:00
curt
2e90248df8 Make error message slightly more informative. 2003-03-21 20:39:59 +00:00
curt
f4ccd7dfe2 Remove some compiler warnings. 2003-03-21 20:39:27 +00:00
ehofman
10e9877d83 Latest episode of the MultiPlayer saga 2003-03-21 20:33:41 +00:00
curt
4184882757 Add missing #include <algorithm> which provides a prototype for for_each() 2003-03-21 19:41:04 +00:00
ehofman
6e6bbc8197 Fix a small problem where multiplayer support was added to network support unconditionally 2003-03-21 18:47:24 +00:00
ehofman
4c55a5aeb4 Andy wrote:
This is just a port of an old 3D HUD patch to the new view code.
This pans the HUD with the view, by pasting it onto a quad fixed in front of the viewer.  It also fixes the awful, arbitrary scaling problems the HUD code has.  The old HUD only looks right when viewed at 1024x768 and 55 degree FOV.  This works the scale out magically so that it looks right in all views.  It also redefines the "<compression-factor>" tag in the ladder to (1) mean compression instead of expansion and (2) have non-psychopathic units (now "1" means 1 degree per degree).  Fix this in your existing HUD ladder files before reporting bugs.  It's definitely a cosmetic win -- the velocity vector points at the right thing and the horizon lines up properly.

Norman wrote:

I have created a modified version of Andy's patch that implements the 3D HUD as the 'normal' and the 2D HUD as the 'minimal' HUD.   < i > and < shift I > keys
2003-03-21 15:02:23 +00:00
ehofman
076e9878d1 Fix a typo 2003-03-20 22:31: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
df2ce45ab7 Change cout and cerr in SG_LOG() where appropriate, otherwise comment it out 2003-03-20 10:43:02 +00:00
ehofman
f2e2101264 David Luff writes:
I've fixed a bug in FGRunways::search(aptid, tgt_hdg) which wasn't working properly for airports with multiple parallel runways. I've also firmed up and pulled out into it's own function the GetReverseRunwayNo code, and done some input checking.

As a result of fixing the above in runways.cxx, I've pulled out the
parallel implementation in the functions that set position by airport and
heading/runway number in fg_init.cxx and called the runways functions
instead.
2003-03-20 09:38:06 +00:00
ehofman
c5c3095859 Add includes for MacOS X 2003-03-20 08:51:01 +00:00
ehofman
e46c59d4d0 Add multiplayer support from Duncan McCreanor and Diarmuid Tyson 2003-03-19 20:45:09 +00:00
ehofman
01be2ed8e4 Compiler warning fixes and small updates 2003-03-19 17:46:52 +00:00
ehofman
cb8b72744c Add mach number to the property tree 2003-03-19 16:06:17 +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
david
b3930c9c60 Added a new turbulence type ttStandard, and made it the default.
ttStandard is copied from ttBerndt, with the following modifications:

1. All turbulence is diminished within three wingspans of the ground.

2. The horizontal forces are used to calculate the moments, but then
   zeroed out so that only the vertical force is actually applied to
   the aircraft.

3. The yaw moment is not used.

In fact, the horizontal forces and the yaw moment should be allowed,
but they are extremely rare compared to the vertical force and the
pitch/roll moments.  For now, simply zeroing them gives the most
accurate feel.
2003-03-16 21:14:45 +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
curt
c32c8aca51 Wire frame mode got broke somehow. This seems to fix it. 2003-03-14 02:07:45 +00:00
daveluff
f74d6ec90e Whoops - left out ++itr in a while(1) loop 2003-03-13 11:44:40 +00:00
david
4d146352d7 Simplify the pitot system and ASI -- the indicated airspeed should be
more reasonable now.
2003-03-12 20:28:54 +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
david
2908bd995d Added simple GPS support (no waypoints yet). 2003-03-10 14:09:43 +00:00
david
f10f03fd43 Corrected some typos. 2003-03-10 14:09:26 +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