Stuart Buchanan
af150d1a56
Only initialize MP subsystem if a txhost is set.
2012-01-04 21:47:35 +00:00
James Turner
a3c243f266
Mark NavDisplay stateSet as STATIC
2012-01-04 12:43:25 +00:00
ThorstenB
23cdb0d302
#561 : keep magnetic heading within limits when mag-variation is negative
...
Thanks to Hyde!
2012-01-04 00:00:10 +01:00
ThorstenB
dac00efbc7
Fix some compiler warnings.
...
Comment out unused code.
2012-01-02 23:16:17 +01:00
Durk Talsma
aab04f44bd
Bugfixes and some finetuning:
...
* Pregenerating taxiroutes could interfere with runway assignments by ATC, when conditions changed, resulting in a taxi to one runway and a takeoff from another
* A simpler solution for the "Error in Traffic record bug". This still needs some more testing, but I haven't seen any error message anymore, since changing to the current code.
* Initialize AI traffic at speed zero, this should prevent some weirdness observed under boundary conditions.
* Don't activate groundnetwork proximity detection for pushback traffic until the "ready for startup message is transmitted. this should allow sufficient time for them to reserve a route, but a little more testing still needs to be done.
2012-01-02 22:23:24 +01:00
Durk Talsma
e0b6ee9d5d
--debugMsg;
2012-01-01 15:30:51 +01:00
Durk Talsma
cf279e320b
Bugfix: Shutdown the ATC manager when it runs out of waypoints.
2012-01-01 13:12:13 +01:00
Durk Talsma
c8d7b3ecf2
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-12-31 19:59:56 +01:00
Durk Talsma
53445c80d4
Some commented out debugging code that may help us trace down bug 532.
2011-12-31 18:16:38 +01:00
Torsten Dreyer
de7debe253
simplify the METAR string, remove newline etc.
2011-12-31 17:31:13 +01:00
Durk Talsma
b648b71671
Fix for issue: 520: Error in FGTrafficRecord::setPositionAndIntentions.
2011-12-30 15:27:21 +01:00
ThorstenB
229d9273d7
#545 related: User settings not saved when window was closed
...
via the window buttons instead of pressing ESC or using menu exit.
(More code should be moved after the 2.6 release)
2011-12-30 00:39:31 +01:00
Mathias Froehlich
48b4596a5f
Make the use of the compressed internal format a configuration option.
2011-12-29 12:24:04 +01:00
James Turner
c831d9c857
Get the ATC frequency dialogs working again for the 2.6 release.
2011-12-27 22:55:52 +00:00
James Turner
36fc0367d2
Nav-display: expose TCAS threat level correctly.
2011-12-27 20:19:10 +00:00
ThorstenB
f0c729f2d5
#545 : Fix ATC chatter sound settings being ignored
...
FGSampleQueue is initialized at run-time, long after preferences are
loaded from the persistent files - so it should not reset anything.
2011-12-27 13:04:09 +01:00
Torsten Dreyer
ddb4fa050f
Some warning fixes, mostly unused variables
2011-12-25 14:41:47 +01:00
Durk Talsma
0bb17d755c
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-12-24 17:56:45 +01:00
Durk Talsma
762d8a90dd
Remove a stray debug message.Z
2011-12-24 16:34:33 +01:00
Erik Hofman
cbdd89493f
properly add librt when clock_gettime is used
2011-12-24 11:34:35 +01:00
Erik Hofman
05476d0be3
Fix for SF bug #3171743 - P-factor does not take into account the thruster pitch and yaw angles
2011-12-23 14:18:38 +01:00
Torsten Dreyer
520c002058
Fix #535 : METAR from command line ignored
2011-12-22 22:11:37 +01:00
James Turner
342140a694
Add test-mode to NavDisplay, and hence fix bugs in range / scale handling.
2011-12-22 14:07:06 +00:00
ThorstenB
596c3e5d03
Fix issues related to #419 .
2011-12-19 21:36:42 +01:00
Erik Hofman
1fb790eb60
comment out unused variables and function and properly initialize variables
2011-12-19 16:50:21 +01:00
Frederic Bouvier
c964d0e83e
Restore JSBsim and Yasim in VS2008 build
2011-12-18 16:14:53 +01:00
Frederic Bouvier
c676ffaf53
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2011-12-17 18:13:31 +01:00
Frederic Bouvier
54d5614e52
Better c++ design to avoid leaks in case of exceptions
2011-12-17 18:13:05 +01:00
ThorstenB
b575446b36
Add some debug messages to help analyzing #385 .
2011-12-17 15:26:50 +01:00
ThorstenB
dcaf3d9aea
Avoid spamming the log output
...
Stop printing "State == Running" debug messages in every update loop
(makes "--log-level=debug" a lot more usable)
2011-12-17 15:22:50 +01:00
Erik Hofman
e6e09a8161
Also expose the true sun color in the property tree.
2011-12-17 10:57:08 +01:00
Erik Hofman
ff4c771759
Expose the cloud color in the property tree
2011-12-16 15:37:16 +01:00
Erik Hofman
c78b7e1abb
Remove AI prefix for the sound path and add it to the config files instead
2011-12-14 12:45:22 +01:00
Torsten Dreyer
196cfdb569
Fix windows build
2011-12-13 20:48:50 +01:00
adrian
9491c2ea76
Merge branch 'next' into attenuation
2011-12-13 13:35:45 +02:00
adrian
b61e53c484
Merge branch 'navaids-radio' into attenuation
2011-12-13 13:01:23 +02:00
adrian
9cd77924be
take care of cases where the model obstructs the antenna
2011-12-13 12:58:44 +02:00
adrian
1c5eb0fb3e
Merge branch 'next' into navaids-radio
2011-12-12 14:56:28 +02:00
Erik Hofman
babe714de7
reaneble ai modeul sound effects
2011-12-12 10:49:09 +01:00
adrian
3f3755fda2
Merge branch 'next' into attenuation
2011-12-11 19:06:24 +02:00
James Turner
7c79e16d8d
Add hud-cycling back - issue #337
2011-12-11 14:12:17 +00:00
ThorstenB
d47342a5a4
Add --log-class option, improve logging classes.
...
Replace SG_GENERAL by more specific log classes in many places.
Allow "," to separate logging classes (using "|" is odd on the
command-line).
Also add new option to make logging more useful for developers.
You can use:
--log-level=debug --log-class=environment
to only get environment debug messages, or
--log-level=debug --log-class=sound,ai
to only get debug messages related to the sound or AI subsystem.
2011-12-11 14:06:17 +01:00
ThorstenB
7f5dfe1421
Provide error message when file isn't found.
2011-12-11 14:06:17 +01:00
Frederic Bouvier
14b76a1d63
Multiple --atlas options are valid (one for Atlas, one for Terrasync)
2011-12-11 13:12:18 +01:00
ThorstenB
a756ad0f43
#513 : netgui alignment mismatching on 32bit/64bit machines
...
netgui data structure now is identical for all platforms. Manually aligned
the fields, so compilers do not add (CPU architecture-specific) padding.
2011-12-09 19:01:15 +01:00
adrian
3eff9a14c9
Merge branch 'next' into navaids-radio
2011-12-09 18:57:50 +02:00
adrian
b796df3bd7
Merge branch 'next' into attenuation
2011-12-09 18:57:38 +02:00
ThorstenB
4c17cee5fb
Lower log level for event input/udev messages.
2011-12-09 17:20:28 +01:00
ThorstenB
444720f62d
Avoid useless warnings during FG startup.
...
Do not warn about missing scenery manager, unless it is really needed.
Also raise warn level for multiple init calls.
2011-12-09 17:19:45 +01:00
ThorstenB
826107f132
#510 : Fix disappearing AIShips.
...
Untangle AI reinit and init methods. Some code in init hooks expects to be
called once only. Derived classes should not redirect their reinit to init,
even if this seems fine for the methods of the derived class itself. This
also triggers the init methods of all base classes, which may not expect
multiple calls to their init methods (or to "init" on "reinit").
2011-12-09 17:06:19 +01:00
ThorstenB
bfb0619f76
Fix memory leak with FGAIModelData.
...
Be lazy and use ref pointers - to remove memory automatically.
2011-12-09 17:03:14 +01:00
adrian
66fdb2a5e2
Remove interface from Nasal
2011-12-09 15:44:22 +02:00
adrian
24ff279218
itm.cpp: don't polute the global namespace
2011-12-08 20:16:11 +02:00
adrian
f7f8d7dca9
Clean up my code in NasalSys.cxx
2011-12-08 19:48:31 +02:00
adrian
fec3f47154
Document the code better;
...
Add some checks in the clutter function;
Use string pointers to get materials;
2011-12-08 15:05:27 +02:00
adrian
10e933dc53
Send geod from Nasal, properly document the code, take some parameters from properties
2011-12-06 23:00:50 +02:00
adrian
971c2820b9
Expose a radio function (receiveBeacon) to the Nasal subsystem
2011-12-06 21:03:40 +02:00
adrian
4826b21968
Lower receiver sensitivity, modify loading of antenna pattern
2011-12-06 11:38:48 +02:00
adrian
8a61ad0fc9
Merge branch 'attenuation' into navaids-radio
...
Conflicts:
src/Radio/radio.cxx
2011-12-06 10:27:03 +02:00
adrian
451bf89f70
Merge branch 'next' into attenuation
...
Conflicts:
src/Radio/radio.cxx
2011-12-06 02:15:04 +02:00
adrian
b7d59463c8
Fix error caused by assert statement in itm.cpp
2011-12-06 02:04:21 +02:00
adrian
e597d6314e
rename function
2011-12-05 22:42:40 +02:00
Torsten Dreyer
26011dd9c6
Fix a typo in the radio propagation code
...
And for sentimental reason: keep the VC90 project file working
2011-12-05 21:40:01 +01:00
adrian
4b8e74c6af
Make antenna radiation calculations selectable via switch
2011-12-05 11:43:21 +02:00
Vivian Meazza
b61e22bdb3
Windows fixes/work-arounds
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-05 08:55:33 +00:00
Durk Talsma
482672f941
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-12-04 22:53:58 +01:00
ThorstenB
cc40660206
Performance improvement
...
Avoid frequently creating/dropping an identical sound sample, when the
nav radio signal is flickering. Always keep most recent sound when signal
is lost (only stop it/turn volume off).
2011-12-04 21:43:21 +01:00
adrian
d8e4f8035d
Merge branch 'attenuation' into navaids-radio
2011-12-04 22:16:45 +02:00
adrian
f720f76456
Hopefully fix windows compilation error
2011-12-04 22:08:56 +02:00
adrian
500086adec
Read antenna radiation pattern from file
2011-12-04 21:59:38 +02:00
Vivian Meazza
6b1391e404
Make parameter "roll-factor" settable in scenario files
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-04 19:10:42 +01:00
Durk Talsma
f7cd808f23
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-12-04 18:35:13 +01:00
Durk Talsma
32eb0fd00c
Merge branch 'merge-requests/1555' into next
2011-12-04 17:33:04 +01:00
Durk Talsma
fcfb905ef1
Make sure not to disable the entire ATC system when handling special cases.
2011-12-04 17:31:02 +01:00
ThorstenB
07aa70dce9
sound: fix sound-buffer-in-use issue
...
FGFX objects must be dereferenced early enough, and sound manager must be
removed late enough - otherwise openal complains about resources being
still in use when tryin to remove buffers.
Also: do not create FGFX objects for AI/MP aircraft, when AI sound is
disabled.
2011-12-04 17:18:02 +01:00
ThorstenB
9933a7cb4a
cmake: add support for Torsten's UDev EventInput
...
(Hopefully meeting Torsten's quality expectations)
2011-12-04 14:37:25 +01:00
adrian
69b73a0233
Merge branch 'next' into attenuation
2011-12-04 11:30:16 +02:00
adrian
6d816823db
Load pattern file from FG_HOME/antennas
2011-12-04 11:28:59 +02:00
Torsten Dreyer
ded106fe31
event input for Linux: substitude dbus+hal by udev
2011-12-03 22:59:20 +01:00
adrian
693f868930
Get rid of annoying printf messages in itm.cpp
2011-12-03 20:08:50 +02:00
adrian
b685fffd82
Set ATC ground tx-power and antenna gain to smaller values
2011-12-03 18:55:11 +02:00
adrian
52bdb959c7
Rename conversion functions to be more explicit
...
...and set some more properties: tx-erp, etc.
2011-12-03 18:48:24 +02:00
Erik Hofman
61e60484c8
make the sound of the base model work again. this also gives an indication where things start to go wrong.
2011-12-03 15:29:04 +01:00
adrian
e4f511fb31
Write a few more properties:
...
signal-dbm - signal strength in dBm
field-strength-uV - signal strength in microvolts
2011-12-03 16:00:14 +02:00
Erik Hofman
831f81d97c
Properly construct a string from another string and an integer, use a relative path for sound construction, allow enable/disable aimodel sounds using /sim/sound/aimodels/enabled
2011-12-03 14:40:48 +01:00
adrian
3340694170
Add some functions to convert between various units
2011-12-02 19:13:53 +02:00
adrian
6179c26a04
Set a couple of properties using the node /sim/radio
...
Also use correct the polarization calculations, using
Simgear constants for degree to radians conversions
2011-12-02 17:38:52 +02:00
adrian
e3e23b0915
Add function to calculate polarization loss
...
This function is reliable only for vertical polarization
2011-12-01 22:46:46 +02:00
adrian
7e2391dceb
Merge branch 'attenuation' into navaids-radio
2011-12-01 14:34:40 +02:00
adrian
ad6b0b81da
Make polarization a configurable parameter
2011-12-01 14:33:25 +02:00
adrian
1db2d8a660
Start implementing antenna properties
2011-12-01 14:28:20 +02:00
adrian
8184c290cc
Merge branch 'radio-clutter' into attenuation
2011-12-01 13:37:12 +02:00
adrian
c112b8b8e1
Merge branch 'next' into attenuation
2011-12-01 13:36:53 +02:00
adrian
1c1e954de2
Remove hard-coded values wherever possible;
...
Make most of the station parameters configurable outside
the attenuation functions with the ultimate goal of exposing
them via the property tree
2011-12-01 13:34:34 +02:00
ThorstenB
32c4cfa768
Fix shared library build for metar executable
2011-11-30 21:45:22 +01:00
adrian
0c66ca6785
remove debugging code
2011-11-29 16:38:02 +02:00
adrian
8928e0c415
Clutter loss doesn't depend anymore on sampling distance
...
Also, fix double horizon diffraction, the second horizon
is relative to the first horizon, not to the beginning of
the path.
2011-11-29 16:15:06 +02:00
adrian
dcc915e5bd
Add separate fields for receiver and transmitter:
...
- antenna gain and cable losses will be set individualy
- Fix the calculations of the number of elevation points
- Improve clutter loss calculations to yield sane results
2011-11-29 15:00:49 +02:00
James Turner
f054f15693
Fixes for linking with shared SimGear.
2011-11-29 10:24:33 +00:00
adrian
d988e4c4ad
forgot about constructor and destructor
2011-11-28 10:49:05 +02:00
adrian
a6b9beca9d
rename FGRadio to FGRadioTransmission, add RX and TX antenna heights
2011-11-28 10:38:58 +02:00
adrian
6be68f475d
remove unnecessary function
2011-11-28 08:36:56 +02:00
adrian
d23fbc3c13
make clutter loss calculations switchable via property
2011-11-28 08:31:04 +02:00
adrian
4c0c79fa4c
Decouple material index from other variables
2011-11-28 07:37:37 +02:00
Erik Hofman
99bb79c7d5
Properly remove FGFX classes when not needed anymore
2011-11-27 15:10:44 +01:00
Erik Hofman
f89ad9baf0
Move some code from the header file to the source file.
2011-11-27 13:48:04 +01:00
Erik Hofman
1e8167164a
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2011-11-27 13:47:18 +01:00
adrian
6b24aa0c14
Add clutter loss for single horizon diffraction
2011-11-27 12:53:30 +02:00
Erik Hofman
2c8da4c122
fix a typo
2011-11-27 10:52:28 +01:00
adrian
dd6588d4f0
Use landcover to determine ground clutter path loss for LOS
...
modified: src/Radio/itm.cpp
modified: src/Radio/radio.cxx
modified: src/Radio/radio.hxx
2011-11-26 18:51:33 +02:00
ThorstenB
b54defea52
cmake: fix sequence of (static) library dependencies
...
sgmath depends on sgprops, sgprops depends on sgstructure.
Also, core libraries are enough for fgadmin.
2011-11-26 16:41:35 +01:00
adrian
b2e83c4dcc
document transceiver specs
2011-11-26 09:03:29 +02:00
Erik Hofman
ebcc6359b9
Initials sound support for AI models.
2011-11-25 13:39:10 +01:00
Erik Hofman
02c286bb08
Sync. With JSBSim CVS
2011-11-25 13:38:08 +01:00
Stuart Buchanan
4d49329dee
Remove 3d clouds reliance on /sim/rendering/shader-effects
2011-11-24 22:28:10 +00:00
adrian
7b101c3c70
cleanup
2011-11-24 18:29:17 +02:00
adrian
a551bf671c
check if tuned on frequency
2011-11-24 18:17:13 +02:00
adrian
ff89b81197
add function for navaid reception
2011-11-24 17:40:37 +02:00
adrian
2c6946c3e8
refactor receiveATC(), implement simple LOS routine, set comm1-signal property
2011-11-24 17:25:49 +02:00
adrian
f023c3bc0a
log to SG_BULK
2011-11-24 15:37:33 +02:00
adrian
0025dfb9bc
Merge branch 'next' into comm-subsystem
2011-11-24 10:20:34 +02:00
adrian
0dd93d56d6
cleanup
2011-11-24 10:19:07 +02:00
adrian
e17852f679
prepare for festival volume
2011-11-24 10:00:28 +02:00
adrian
9bcc3a87b6
cleanup
2011-11-24 06:39:54 +02:00
adrian
98a94d83ef
call from FGATCController::transmit()
2011-11-24 06:20:59 +02:00
adrian
322a15f8da
add to CMake
2011-11-24 05:38:15 +02:00
adrian
b55fd4de91
separate implementation
2011-11-24 05:02:42 +02:00
adrian
332f76b11e
remove subsystem
2011-11-24 04:49:05 +02:00
adrian
9ab41ea158
Merge branch 'next' into comm-subsystem
...
Conflicts:
src/Instrumentation/Makefile.am
2011-11-23 14:02:43 +02:00
Anders Gidenstam
50f82808f9
src/FDM/JSBSim/models/FGGasCell.cpp: Restore the ballonet model to a working state.
2011-11-22 21:16:10 +01:00
James Turner
029226f8d4
Use property objects to avoid property look-ups during TimeManager updates.
2011-11-20 18:30:31 +00:00
James Turner
9e344ee645
Avoid crash when reloading GUI from debug menu.
2011-11-20 16:33:22 +00:00
James Turner
ebfdebeb43
Cocoa menu-bar implementation.
2011-11-20 16:26:05 +00:00
ThorstenB
e1c1a28288
Introduce some structure in fgMainLoop.
...
- Move some code to sub functions.
- Make sound manager a subsystem-manager member (and make sure it's
still processed last).
2011-11-20 16:21:15 +01:00
Erik Hofman
04395fa9a5
Postpone initialization of the avionics soundgroup until avionics are enabled. This prevents AI classes from creating new and unnecessary avionics sample groups.
2011-11-20 15:31:58 +01:00
Erik Hofman
544bad86c7
remove a .swp file
2011-11-20 15:06:10 +01:00
Erik Hofman
9e1121fc4c
First implementation of sound effects for AI models.
2011-11-20 15:05:37 +01:00
Erik Hofman
64102d0da9
Allow for a different property root location besides '/'
2011-11-20 15:03:48 +01:00
James Turner
8b340ff043
Hopefully fix non-Mac ;)
2011-11-19 22:42:15 +00:00
Frederic Bouvier
394cc3ee9f
Fix MSVC build
2011-11-19 23:37:42 +01:00
James Turner
daa973f1bc
And make FGMenuBar abstract too, sinking the current implementation into FGPUIMenubar
2011-11-19 22:04:35 +00:00
ThorstenB
76baf75a47
Fix include dependencies for non-Mac platforms.
...
;-)
2011-11-19 22:48:26 +01:00
ThorstenB
339c57e0b2
Adapt path of performance-monitor properties.
2011-11-19 22:37:13 +01:00
James Turner
03c966de13
Make FGDialog an interface, moving existing code to FGPUIDialog implementation. (no functionality change, yet)
2011-11-19 20:46:17 +00:00
James Turner
a05ea36acb
Restructure GUI code, isolate PLIB in source files, to ease future refactoring and alternative GUI layers.
2011-11-19 20:25:51 +00:00
ThorstenB
4b2506d709
Add new performance monitoring subsystem.
...
Rename some subsystems for naming consistency.
2011-11-19 15:37:49 +01:00
ThorstenB
1e184bb0f4
Avoid segfault on shutdown
...
Fixes double-delete of old ATC manager.
2011-11-14 20:38:50 +01:00
Durk Talsma
93f9b471e6
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-11-14 19:36:59 +01:00
Durk Talsma
6fa2b1cbe6
Equate sun angle for morning and afternoon. This is a temporary solution, but should give more consistent results for locations that are relatively close to the poles.
2011-11-14 17:22:02 +01:00
Torsten Dreyer
2b68bebb5d
namespace std fixes
2011-11-14 15:33:02 +01:00
Frederic Bouvier
f1d0ac52a6
Fix MSVC9 build
2011-11-14 08:38:58 +01:00
James Turner
85924cf953
Fix some Windows std:: namespace issues.
2011-11-13 21:27:55 +00:00
James Turner
c14b3bc268
std namespace fix
2011-11-13 20:32:42 +00:00
James Turner
07a627680e
Get ATIS working again temporarily, since a proper refactoring will take a few days.
2011-11-13 20:32:30 +00:00
Mathias Froehlich
42fb9b8e9f
Consolidate the different ReaderWriterOptions classes.
2011-11-13 18:34:53 +01:00
ThorstenB
1366336a87
Drop obsolete include files - no longer used anywhere.
...
There are replacements in simgear...
2011-11-13 16:56:05 +01:00
ThorstenB
318e7ac773
Untangle subsystems by replacing direct TileCache call with callback.
2011-11-13 15:47:52 +01:00
ThorstenB
93307270a8
Use lazy loading for main aircraft
...
instead of paging.
2011-11-13 14:29:28 +01:00
ThorstenB
2983814d52
Drop obsolete include
...
Can we drop "fg_typedefs.h" now? No longer used anywhere...
2011-11-13 14:27:05 +01:00
ThorstenB
7b4c5820cb
Show YASim config error messages.
...
YASim exceptions with error messages got swallowed somewhere, make
sure to show them...
2011-11-13 14:26:37 +01:00
ThorstenB
12b6e8952a
Avoid crash in ATIS/ATC modules.
...
The old ATC_mgr is no longer available/initialized, which caused ATIS/ATC
modules to crash when selecting ATIS frequencies. This adds a guard to
avoid the crash, but doesn't revive the ATIS feature.
2011-11-12 20:51:03 +01:00
James Turner
c92a3313bc
Fix a secondary issue in bug 484 - avoid a crash when --lat, --long *and* --airport were specified. ATCmgr assumes /sim/atc/runway is set in this case, but it is not, leading the a runway-not-found assert.
2011-11-12 18:00:12 +00:00
Durk Talsma
4903556bb2
Enable the AI pilot to hit the breaks hard when necessary.
2011-11-12 18:42:59 +01:00
Durk Talsma
0905b4f367
Fixing an age old bug. AIAircraft arriving on an airport never received a proper gateId, causing them to taxi to the end of the world and beyond.
2011-11-12 18:40:23 +01:00
ThorstenB
1eb8d0caa4
#424 : Don't page out AI objects. Just load lazily.
...
Changes commit 1e7d072eed
and uses the new
deferred loading - instead of paged (un)loading.
2011-11-10 22:12:54 +01:00
ThorstenB
7aae4484d1
Fixed typo.
2011-11-10 22:10:51 +01:00
James Turner
e89699acef
Fix for http://code.google.com/p/flightgear-bugs/issues/detail?id=478 , ensure sun-angle has a valid (default) value at init.
2011-11-10 14:47:57 +00:00
James Turner
f51d58686a
Fix http://code.google.com/p/flightgear-bugs/issues/detail?id=484 , further compatibility with previous options processing ordering.
2011-11-10 09:15:41 +00:00
James Turner
d2d3fc054e
Flip map zoom, to fit with user expectations better. http://code.google.com/p/flightgear-bugs/issues/detail?id=485
2011-11-08 21:06:51 +00:00
Mathias Froehlich
ec16f43f86
Use deferred models for scenery tile models.
...
Instead of PagedLOD nodes use ProxyNodes for models in
scenery tiles. This should lower the amount of PagedLOD nodes
in the active scene. Since the models are part of the to level
tiles they are then paged out once the tile is paged out.
2011-11-08 21:25:10 +01:00
ThorstenB
6fbb5aaf99
navradio: set receiver's signal-quality-norm to 0 when navaid station
...
is lost
2011-11-07 21:51:53 +01:00
James Turner
10e6cc016b
NavDisplay - cache nearby positioned items, and fix symbol instance queue to be cleared each update. Works much more sanely now.
2011-11-07 19:40:30 +00:00
James Turner
c1eca1ff6b
Refactor SGSky handling and ownership - sink into Renderer, remove global variable 'the sky', and hence clean up main loop and subsystem creation a little more.
2011-11-05 17:11:52 +00:00
James Turner
a4a8d08392
JPEG-server support, in the CMake world.
2011-11-05 17:11:39 +00:00
James Turner
daf644d600
Revert my code-cleanup, causing startup crashes, bah.
2011-11-04 12:02:43 +00:00
James Turner
ecced6be78
Fewer static properties in the main loop, minor code tidying.
2011-11-04 09:40:09 +00:00
Anders Gidenstam
cc1ab5b8b5
src/Main/options.cxx: It is rather common to have two --multiplay arguments.
2011-11-02 20:35:37 +01:00
James Turner
d75c0878fe
Switch the realWx controller to use the event-manager, and be slightly quieter.
2011-11-01 22:40:31 +00:00
James Turner
4b8ef9c3cf
Add compile-time support for a custom fg-root location, when using CMake
2011-11-01 17:05:54 +00:00
James Turner
e819a4aaa4
Make all FDMs selectable at runtime; default LARCsim/UIUC to off.
2011-11-01 16:21:59 +00:00
adrian
9527a0391e
add to project files
2011-11-01 17:44:41 +02:00
Mathias Froehlich
d1e5dc95ca
Remove automake ignores.
2011-11-01 13:53:52 +01:00
James Turner
70b4f38ebc
Goodbye automake.
2011-11-01 11:15:53 +00:00
James Turner
e3037b638f
Restore options *processing* order (which is now distinct from *parsing* order), to resolve issues when distinct but internally overlapping options are specified, e.g. for initial position or time.
2011-10-31 13:08:58 +00:00
ThorstenB
c697c3cc3d
Fix stupid compile-time switch issue...
...
... introduced by recent commit.
2011-10-30 20:49:48 +01:00
ThorstenB
acdf0dc469
Clean-up date/time option parser.
...
Add range checks and provide error messages.
Extend time offset to 64bit - so we're safe for 2038-01-19 (and the next
couple of millions years beyond...).
Support partial date/time strings, such as --start-date-gmt=2011 or
--start-date-gmt=:::12:00:00
2011-10-30 14:48:53 +01:00
Erik Hofman
8f50e24f88
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2011-10-30 13:31:55 +01:00
Erik Hofman
1a13ecc1e9
Latest round of JSBim updates.
2011-10-30 13:30:57 +01:00
James Turner
43bc61d131
Make environment-manager closest airport updating quieter, and use an event instead of a manual time counter.
2011-10-30 11:59:24 +00:00
ThorstenB
9c04b2c1ad
TCAS: pressure vs radio altimeter
...
Altert altitudes refer to AGL/radar alt - not sea-level/pressure alt.
Avoids false alerts, i.e. while taxiing.
2011-10-30 11:47:28 +01:00
Mathias Froehlich
2a4657c609
Fix returning reference to temporary.
2011-10-30 10:31:41 +01:00
ThorstenB
b6695cd3fa
Configure font in osg StatsHandler for OSG3.
...
OSG3 relies on "fonts/arial.ttf" being available. FG doesn't provide it -
so it's not necessarily available everywhere (not here). Use one of our
txf fonts instead.
2011-10-29 21:58:11 +02:00
Curtis L. Olson
f59a0611f2
Add OPTION_MULTI to several more options that could potentially be used
...
multiple times to write/read data to more than one source.
2011-10-29 10:34:06 -05:00
Mathias Froehlich
49b82663e2
Forward resize events to the stats handler.
2011-10-29 14:12:08 +02:00
James Turner
facf4c12d4
Make various protocols support multiple definitions, with the new options parsing code.
2011-10-29 11:15:45 +01:00
adrian
c6062ad93c
Merge branch 'next' into comm-subsystem
2011-10-29 12:22:00 +03:00
Mathias Froehlich
81cab66c2c
Make use of SGTimeStamp::sleepUntil for accurate sleeping.
...
For use with frame rate throtteling make use of
SGTimeStamp::sleepUntil. This function should cover the
system dependent parts of accurate sleeps and should
move the system dependent code out of the time manager.
2011-10-28 17:43:47 +02:00
Mathias Froehlich
0bd7078c42
Make use of SGTimeStamp for sleep*
2011-10-28 17:01:50 +02:00
James Turner
956ba8845b
Fix Mac crashing on exit - link order determines library load order at runtime, and both ALUT and OpenAL.framework (on Mac) define the alut symbols. Fix the order so we always use ALUT.framework for the alut symbols.
2011-10-28 15:09:10 +01:00
Durk Talsma
2da052d4ab
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-10-27 23:27:21 +02:00
Durk Talsma
7ae1aa4846
Improved AI taxi behavior:
...
* Use aircraft specific time-stamps for blocking taxiways
* Issue a stop instruction well-ahead of moving onto a blocked taxiway. This still needs some more braking power.
2011-10-27 23:24:56 +02:00
Torsten Dreyer
1a80d70e00
Some autopilot fixes
...
- fix minor memory leak
- make autopilots addable and removeable at runtime
2011-10-27 08:27:52 +02:00
Durk Talsma
8eca759077
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-10-26 22:38:38 +02:00
Durk Talsma
538e632f45
* Updated routing algorithm. Just sorting the schedules by usage heuristics doesn't work well for major multihub airlines.
...
* Improved groundnetwork routing algorithm. Don't uncesscarily block taxiways. Instead, use a "just-in-time" blocking system. The unblocking algorithm still needs some work, but the current version is already a major improvement over the previous version.
* Some tweaks to the handover from ground to tower controller. Aircraft could refuse to take-off of even refuse to taxi onto the runway. This now seems to be solved.
2011-10-26 22:26:37 +02:00
James Turner
16a54a4409
Change a hot-spot in the AI code, to use cartesian instead of geodetic math.
2011-10-26 17:26:11 +01:00
James Turner
34f86cd317
Many NavDisplay bug-fixes - almost usable now!
2011-10-24 23:55:46 +01:00
James Turner
9bd4ba6eb0
Anchor flight gear::Waypt's destructor, and make it virtual.
2011-10-24 18:21:50 +01:00
Mathias Froehlich
fea00cc9f8
Add seamless view muliscreen configuration.
...
Add a new way to configure multi screen systems.
The new version allows easier configuration of displays
that need to fit at the edges as well as configurations
where the screens match at reference points.
This kind of screen configuration will again zoom.
2011-10-23 16:40:13 +02:00
Mathias Froehlich
ad660380c2
Add fixed-near-far camera config parameter.
...
If set to true, the decision about the near and far
planes in the viewer are still adapted to not clip away
everything before the configured near plane.
2011-10-23 16:40:13 +02:00
James Turner
2157164271
Fix some code which clang didn't like
2011-10-23 15:33:00 +01:00
Durk Talsma
a6de24461e
Potential fix for bug #471 (crash in checkspeedadjustment).
2011-10-22 17:57:37 +02:00
Frederic Bouvier
8057c50849
AITraffic fix - forgot two files
2011-10-22 10:31:38 +02:00
Frederic Bouvier
4d9439d0c1
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2011-10-22 10:16:26 +02:00
Frederic Bouvier
3a262fe7d3
Fix a problem in AITraffic where waypoint iterator is trashed by push_back. A cleaner solution would be to use indices instead of iterators to track position in the waypoint vector
2011-10-22 10:15:16 +02:00
James Turner
e50ff87300
Relocate appData fgfsrc loading prior to init of fg-root, so we can specify --fg-root that way.
2011-10-21 16:49:15 +01:00
James Turner
e1be74902a
Fix automake linkage of metar utility.
2011-10-21 14:15:40 +01:00
James Turner
1b3ea65b5e
Hold an owning ref to the HTTTP request.
2011-10-21 12:58:19 +01:00
James Turner
c5cbc57895
Bring metar helper into CMake world, and use new HTTP code.
2011-10-21 12:48:42 +01:00
James Turner
8ef07230c4
Update FGMetar for revised SGMetar constructor.
2011-10-21 10:57:45 +01:00
James Turner
b1b4b7ecf4
Fix (nearly) all the std:: namespace violations in headers, in preparation for fixing SGsmplstat.hxx to *not* do a 'using namespace std'.
2011-10-17 17:41:59 +01:00
James Turner
3d861475f7
Fix two issues caught by the German QA department ;)
2011-10-17 17:39:47 +01:00
James Turner
0f5d27c10e
Detect and read a config file in FG_HOME - allows nicer tweaking of settings on Mac/Windows for people with Terminal/cmd.exe phobia :)
2011-10-16 21:54:47 +01:00
James Turner
407a495546
Automate TerraSync integration with the scenery / dir creation. Now can be used with only --enable-terrasync (and some patience)
2011-10-16 21:46:27 +01:00
James Turner
3d0254f6ec
Allow aircraft-dir option to override aircraft search logic completely.
2011-10-16 21:15:54 +01:00
James Turner
ccb21d4c0c
And keep platforms other than my beloved OS-X working too ;)
2011-10-16 19:58:22 +01:00
James Turner
6adb42078e
Refactor fg-home computation, use Library/Application Support on Mac.
2011-10-16 19:55:04 +01:00
James Turner
0431822e2a
Fix Unix build.
2011-10-16 19:17:23 +01:00
James Turner
b1c7495fec
Restructure option/config handling code, to avoid multiple scans & parses for special options (fg-root/fg-aircraft/aircraft). Push most of the code into a new Options class, inside options.cxx, and clean up various call-sites as a result.
2011-10-16 18:35:40 +01:00
James Turner
3d544fbc1f
Tweak map-widget data boxes for AI objects, so speed/altitude update in real-time.
2011-10-12 22:33:56 +01:00
Torsten Dreyer
9f41ee414f
Join duplicate fields ident and trans_ident in navrecord
2011-10-12 11:06:01 +02:00
James Turner
8986c3488d
Make sun-angle a plain property, so observers fire.
2011-10-12 09:17:58 +01:00
ThorstenB
b16338598a
Use more specific log classes.
...
Log class filters work better when different modules
use different classes :).
2011-10-11 21:55:50 +02:00
ThorstenB
53e6c0ac5f
Reduce AI/MP lags when removing models
...
Move load of removing OSG objects to the OSG pager thread
2011-10-11 21:43:24 +02:00
Durk Talsma
020d6a6363
-Revert to the original design. It still appearch to yield the best scheduling results.
2011-10-10 23:03:57 +02:00
Durk Talsma
835334bd4f
Finetuning of AI Aircraft landing performance. Aircraft slow down to taxi speeds just before leaving the runway. Increased vTaxi on the runway to further reduce time on the runway and slow down to vTouchdown well ahead of touching down.
2011-10-10 21:55:09 +02:00
Durk Talsma
88dc9a14b7
Remove the assertSpeed debugging code.
2011-10-10 18:51:41 +02:00
Durk Talsma
894f066370
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-10-09 23:46:52 +02:00
Durk Talsma
da3c098a4b
AITraffic exits the runway as soon as possible (in theory; the code still needs some fine tuning).
2011-10-09 23:44:42 +02:00
Torsten Dreyer
7431c14ba6
don't use uninitialized variables
2011-10-09 21:37:52 +02:00
Torsten Dreyer
9a21896a33
start adding backward-compatibility to newnavradio
2011-10-09 21:17:33 +02:00
ThorstenB
8b05d7b211
replay system: allow to resume simulation at any point of replay-time.
...
Currently supported for YASim only.
2011-10-09 20:36:01 +02:00
Torsten Dreyer
9022c6a58d
Reintroduce an old bugture: use localizer as dme
...
Our nav.dat.gz seem to have many bugs regarding paired LOC/DME where
the DME is missing.
A feature has recently been introduced to always use a LOC frequency
as a DME to avoid these issues. However many LOC station do not have
a DME paired at their frequency and this behaviour might be as confusing
as having no DME where one should be.
Before we get new/bugfree navdata, a property can be set to select
the desired behaviour:
if /sim/realism/dme-fallback-to-loc is true or absent, LOC will be
treated as DME (realism is off)
if /sim/realism/dme-fallback-to-loc is false, LOC will be NOT be
treated as DME (realism is on)
2011-10-09 20:21:02 +02:00
ThorstenB
30e2db94b1
Add generic "open-browser" command to show URLs or local HTML/text pages.
...
Replace deprecated "old-help-dialog" command with generic "open-browser".
Can also be used to add links to aircraft manuals in the menubar (local
file or http) , i.e.
<binding>
<command>open-browser</command>
<path>Aircraft/ogeL/FlightManual.html</path>
</binding>
2011-10-09 12:37:43 +02:00
ThorstenB
5b8ab277fd
Minor FDM shell performance improvement
...
Don't resolve all properties at run-time.
2011-10-09 12:24:16 +02:00
Durk Talsma
02712dc1ad
Several Bugfixes:
...
* Landing AIAircraft now land properly!!!
* Fixed problems with takeoff scheduling.
* Untangled several vertical speed calculation algorithms.
* No more bent-over-backwards and jump-in-the-air AI aircraft initializations.
* Fixed intermixed target speed and target altitude during climb phase.
* Implemented beginnings of a "line up and wait" procedure.
* Tried to use actual runway elevation for calculating the decent profile.
2011-10-09 00:25:04 +02:00
James Turner
ef995913e1
Further NavDisplay hacking, symbol binding is working more sanely now.
2011-10-07 08:34:56 +01:00
adrian
312447c565
Merge branch 'next' into comm-subsystem
...
Conflicts:
src/ATC/trafficcontrol.cxx
src/ATC/trafficcontrol.hxx
src/Instrumentation/CMakeLists.txt
2011-10-06 15:18:44 +03:00
Durk Talsma
a9ac75b9c9
Revert back to the version from sept 4. Vertical speed calculations of decending AI aircraft were messed up.
2011-10-05 21:40:47 +02:00
Torsten Dreyer
e9d24b05ca
Introducing: The new navradio code (WIP)
...
Here comes the work-in-progres code for a new navradio
implementation. Once completed, it will replace the
old/current navradio implementation.
The new code can be activated by setting
/instrumentation/use-new-navradio=true
at startup. This disables the old navradio implementation.
Current state:
- VOR works pretty good including the new
functionality 'code of confusion'.
- LOC and GS basically work
- backward compatibility (many properties) is to be implemented
2011-10-05 15:26:41 +02:00
Mathias Froehlich
a486eebeef
hla: Avoid explicit attribute update request. Is already done by simgear.
2011-10-04 20:58:46 +02:00