James Turner
c2458a17bf
Re-apply fix for #204 , crash on JSBSim reset
2011-01-25 00:25:43 +00:00
James Turner
4b494b1d08
Re-apply partial fix for #222 , JSBsim crash-on-reset
2011-01-25 00:25:23 +00:00
Torsten Dreyer
6cb4fbcf0a
Bugfix: reset transparency of non fog/mist/haze layers
2011-01-24 19:44:51 +01:00
Torsten Dreyer
8fe3d6c8e8
Bugfix: reset transparency of non fog/mist/haze layers
2011-01-24 19:41:56 +01:00
Torsten Dreyer
b085649f20
Code cleanup, no functional change
2011-01-23 21:51:07 +01:00
ThorstenB
e64b382397
Report stopped MP transmission at higher log level,
...
it's too important to be a "debug only" message.
2011-01-23 19:01:43 +01:00
ThorstenB
ee26505e28
Added sanity checks to MP receive/send.
...
Stop invalid data (NaN values) from being sent or received via MP.
2011-01-23 19:01:43 +01:00
ThorstenB
5268b3c6ed
Report stopped MP transmission at higher log level,
...
it's too important to be a "debug only" message.
2011-01-23 15:24:28 +01:00
Erik Hofman
5402ab5a1b
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2011-01-23 15:14:57 +01:00
Erik Hofman
4a817a6307
Sync. with JSBSim CVS
2011-01-23 15:14:01 +01:00
ThorstenB
feab53b462
Added sanity checks to MP receive/send.
...
Stop invalid data (NaN values) from being sent or received via MP.
2011-01-23 15:07:09 +01:00
ThorstenB
59d06d130d
Make route editing sane.
...
Drag&drop, insert and remove now update the current waypoint as expected.
2011-01-23 10:45:31 +00:00
ThorstenB
7f846d20c7
Make route editing sane.
...
Drag&drop, insert and remove now update the current waypoint as expected.
2011-01-23 00:45:06 +01:00
ThorstenB
d365689d5c
Fix crash in GPS module.
...
Fixes crash on exit (during property untie). Also potential run-time crash.
2011-01-22 00:03:07 +01:00
ThorstenB
f32656b2a5
Fix crash in GPS module.
...
Fixes crash on exit (during property untie). Also potential run-time crash.
2011-01-21 23:44:23 +01:00
Torsten Dreyer
ac4d22628e
remove debug message spam
2011-01-21 20:44:35 +01:00
ThorstenB
99ee9a1bbb
GPWS: avoid "altitude_callout_voice != NULL" assertion
...
Properly remember which active alerts were already voiced.
Added NULL-pointer safety check
2011-01-21 20:20:22 +01:00
ThorstenB
fab1284f83
GPWS: avoid "altitude_callout_voice != NULL" assertion
...
Properly remember which active alerts were already voiced.
Added NULL-pointer safety check
2011-01-21 19:55:42 +01:00
Torsten Dreyer
258a4436aa
Fix bug 255, support turbulence to weather menu
2011-01-21 19:01:32 +01:00
Torsten Dreyer
5fc0be8820
Fix bug #253 , at least partially
...
make options
--wind=nnn@mm
--visibility
--visibility-miles
--ceiling
--turbulence
work again. These options now write properties in the
/environment/config/presets
branch. The values will be applied in the property-rules
in FGDATA/Environment/interpolator.xml
2011-01-21 19:01:27 +01:00
Torsten Dreyer
a81103341e
Fix bug 255, support turbulence to weather menu
2011-01-21 10:35:04 +01:00
James Turner
d227258b3b
Lazy caching of magvar on waypoints. Not used yet, but soon.
2011-01-20 08:49:09 +00:00
James Turner
7cbb3a10ed
Expand route-manager waypoint info, to support smarter FMS functions.
2011-01-20 00:39:42 +00:00
James Turner
54ef43878f
Fix bug 259 - don't override existing airport/runway in initPos
2011-01-19 23:58:00 +00:00
Torsten Dreyer
e86cecf470
Fix bug #253 , at least partially
...
make options
--wind=nnn@mm
--visibility
--visibility-miles
--ceiling
--turbulence
work again. These options now write properties in the
/environment/config/presets
branch. The values will be applied in the property-rules
in FGDATA/Environment/interpolator.xml
2011-01-19 19:36:04 +01:00
John Denker
f025c65c60
Fix ADF bugs ... including still driving the needle when power off.
...
ADF bug fixes from John Denker. Changes from current behaviour are:
* Include the power button in the electrical checks
* Raise the required input voltage from 1V to 8V
* Don't reset the heading to 90 degrees when out of range or no power
(heading is now only reset to 90 in ANT or TEST mode)
2011-01-18 22:12:29 +00:00
Mathias Froehlich
3134acca83
Add the hla stuff to the cmake build system.
2011-01-17 21:35:12 +01:00
Mathias Froehlich
70dd6279a7
Add an initial implementation of a hla module.
2011-01-17 21:35:03 +01:00
Torsten Dreyer
4e3a2a2c1c
EventInput(Linux): experimental initial read of values
...
First test of reading the button state and axes positions
on initialization of the device.
2011-01-17 20:27:03 +01:00
Torsten Dreyer
2ba4f3ddad
Autopilot: use SimGear function
2011-01-17 20:18:17 +01:00
Dave Luff
8691d2fe54
Revert "Minor edit."
...
This reverts commit 6596f62dd0
.
I think I was wrong!
2011-01-16 20:20:55 +00:00
ThorstenB
5ec5c34255
Minor update
...
Missed this place during code clean-up
2011-01-16 17:45:39 +01:00
ThorstenB
4043e79774
AI traffic performance boost for busy airports
...
Stop ground elevation (scenery) checks for stationary AI aircraft.
2011-01-16 17:45:39 +01:00
James Turner
d005cae22e
Bug 254: make all the HUD related options apply to hud[1], not hud[0], so they function as expected.
2011-01-16 15:31:39 +00:00
Dave Luff
6596f62dd0
Minor edit.
...
I don't think these 2 lines are required - true is set as the default value above.
2011-01-15 14:27:08 +00:00
John Denker
3dd75394af
Fix ADF bugs ... including still driving the needle when power off.
...
ADF bug fixes from John Denker. Changes from current behaviour are:
* Include the power button in the electrical checks
* Raise the required input voltage from 1V to 8V
* Don't reset the heading to 90 degrees when out of range or no power
(heading is now only reset to 90 in ANT or TEST mode)
2011-01-15 13:32:01 +00:00
Frederic Bouvier
d0a2fbba99
Revert joystick patch. One would have to provide a better one
2011-01-14 22:37:39 +01:00
Frederic Bouvier
4ec8b1e57f
Include plib ul
2011-01-14 22:09:21 +01:00
Frederic Bouvier
47624c1a4f
More joystick code fixes
2011-01-14 22:07:13 +01:00
Frederic Bouvier
ab686ab8d4
It looks like it was not the last mac js code that was committed in the first place
2011-01-14 22:03:15 +01:00
Frederic Bouvier
bb6d1b14c5
Fix a typo in the Mac js code
2011-01-14 21:52:36 +01:00
Frederic Bouvier
4d0a6f5668
Olaf Flebbe: incorporate plib js code to fix problems with MS joysticks under Vista and 7
2011-01-14 21:32:59 +01:00
James Turner
c2a3d24ef3
Make the Nasal NaN check less aggressive - still SG_ALERT, but return nil instead of terminating the Nasal script completely.
2011-01-14 20:05:58 +00:00
James Turner
664817b0a7
Make the Nasal NaN check less aggressive - still SG_ALERT, but return nil instead of terminating the Nasal script completely.
2011-01-14 20:04:20 +00:00
ThorstenB
867508def8
Minor update
...
Missed this place during code clean-up
2011-01-10 21:19:51 +01:00
ThorstenB
6ff61836fe
AI traffic performance boost for busy airports
...
Stop ground elevation (scenery) checks for stationary AI aircraft.
2011-01-10 20:53:46 +01:00
James Turner
5deec69e00
First attempt at libsvn support in terrasync with CMake
...
- not yet working!
2011-01-09 00:15:29 +00:00
ThorstenB
8efe895355
Added several include files, thanks to Roland Haeder
...
Added includes missing for some compiler/platform.
2011-01-08 22:34:43 +01:00
ThorstenB
4458f7ce73
Enable AI traffic for offline users and issue #248
...
- #248 : new enable/disable-ai-traffic command-line option
- AI traffic: don't wait for METAR when real-wx-fetch disabled, to
enable AI traffic when running offline
2011-01-08 21:38:26 +01:00
Torsten Dreyer
8cab5f9e60
Make mouse buttons work again.
2011-01-08 12:50:55 +01:00
Torsten Dreyer
8a08507282
MouseInput: invert y-accel property
...
Syd Adams: It could be inverted with nasal for use,
but it feels more natural with positive /forward , negative /
back.
2011-01-08 09:11:46 +01:00
Torsten Dreyer
0361f136fe
MouseInput: Add accel-x and accel-y
...
Syd Adams:
Is there any interest in mouse acceleration properties, besides myself ?
Obviously there is. Some code cleanup comes with it.
2011-01-07 21:05:17 +01:00
Curtis L. Olson
7fb8114feb
Add code to draw AI ships on the map widget (useful for carrier ops.)
...
An AI Tanker requested from the AI menu has an id of -2, so change the code to
only ignore AI models with an ID of -1.
2011-01-07 13:05:47 -06:00
Torsten Dreyer
9337584df0
METAR: enable reports from multiple stations
...
This patch enables multiple MetarProperties instances tied to the
property tree. For each node's value of /environment/realwx/metar
one MetarProperties instance is created and tied to the property
tree named there. (See FGDATA/Environment/environment.xml for details)
At least one instance will be created to provice backward compatibility
to the existing live-data weather system. This instance (tied to
/environment/metar) fetches a METAR for the nearest airport at a regular
schedule. All other instances fetch a report for airports named in the
property station-id. It re-reads the report every 15 minutes, the
remaining time until the next fetch will be scheduled is in the property
time-to-live. This property can be written to, to extend the live of
this report or schedule an immediate reload by setting it's value to zero.
This patch also provides magnetic variation for the station's location.
2011-01-07 13:11:06 +01:00
Torsten Dreyer
5cdfe3d7a5
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-01-07 09:07:56 +01:00
Dave Luff
f7c487fd4e
ATIS: revert to using inches globally by default.
...
Revert to using inches globally by default, unless the user sets the
property /sim/atc/use-millibars. Whilst this is therefore wrong by
default, it is probably the best thing in the short term since
FlightGear's altimeter dialog and the altimeters on the default
aircraft set using inches.
2011-01-05 20:12:18 +00:00
Dave Luff
dd690909af
ATIS improvements from John Denker
...
Primarily an improvment to the internationalisation. Previously the ATIS considered
the world as either the UK or the rest of the world. Now it considers it as US+Canada
or the rest of the world. This is much more consistent with global usage of pressure
units as either inches or millibars, which is the most important difference. Also
some other tweaks and cleanups.
2011-01-05 00:27:18 +00:00
Torsten Dreyer
c859833c63
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-01-04 17:21:47 +01:00
James Turner
b5d2e734d1
Merge branch 'next' of git@gitorious.org:fg/flightgear into next
2011-01-03 21:48:11 +00:00
Frederic Bouvier
d70c394cda
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2011-01-03 22:47:40 +01:00
James Turner
4b7ce32387
Remove some legacy declarations from navrecord
2011-01-03 21:47:24 +00:00
Frederic Bouvier
670fa26f7e
Cmake: more windows tweaks
2011-01-03 22:47:11 +01:00
James Turner
7ab8c72cf1
Fix bug #236 , tower elevation was wrong with custom-scenery-data.
2011-01-03 21:26:09 +00:00
Torsten Dreyer
905e796e35
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-01-03 20:20:18 +01:00
James Turner
7d58b44f73
Alexey Varjat: Add ILS data to GUI/MapWidget
2011-01-03 17:29:24 +00:00
James Turner
6d3773cb40
Olaf Flebbe: Removed Boost serialization linkage on MSVC
2011-01-03 09:50:05 +00:00
Dave Luff
2cb67b06b7
ATIS fixes from John Denker
2011-01-03 01:19:01 +00:00
Torsten Dreyer
3f6285965c
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-01-02 21:09:59 +01:00
James Turner
4428b7358c
Fixed CMake version.h, config.h creation
2011-01-01 21:46:16 +00:00
James Turner
4d1d215ded
version.h support in CMake builds.
2011-01-01 18:24:53 +00:00
James Turner
d4d70200eb
Better fix for bug #204 ; bind after all engines are loaded.
2011-01-01 16:08:17 +00:00
James Turner
738d653745
Work-around for bug #222 - delete the units/WOW property on init.
...
Another cleanup
2011-01-01 16:08:06 +00:00
Torsten Dreyer
70a525d47c
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-12-31 12:23:54 +01:00
Dave Luff
1758c11889
ATIS: Slight tweak
...
Add a slight gap between the end of the time and the start of the weather
2010-12-31 00:15:17 +00:00
Frederic Bouvier
445306cac7
Win32 fix
2010-12-30 19:07:49 +01:00
Dave Luff
c4ae902d75
ATIS: evaluate airport abbreviations case-insensitively
...
The apt.dat file contains inconsistent case for many airport name abbreviations,
e.g. MUNI/Muni and intl/Intl. Evaluate the abbreviations in lower-case when
expanding them in order to avoid missing any.
2010-12-30 16:24:43 +00:00
Dave Luff
9a987a3709
ATIS fixes/refactoring from John Denker
...
Some fixes, and refactoring of the lexicon and abbreviation remapping
into headers where it can be picked up by the scripts that generate
the voice files.
2010-12-30 16:24:43 +00:00
James Turner
e97eb4db85
Reduce log-level of aircraft-dir related messages.
2010-12-30 09:38:21 +00:00
Frederic Bouvier
92be000dbd
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-12-29 23:58:18 +01:00
Frederic Bouvier
4eb0634c9a
Space change to trigger a rebuild on Hudson
2010-12-29 23:55:01 +01:00
James Turner
6fd33dd2c3
Fix bug #204 , and help with bug #222 - delete all
...
properties under /fdm/jsbsim when deleting the JSBSim interface.
2010-12-29 22:46:35 +00:00
ThorstenB
6eadcb8dfc
Fixed AIplane vertical speed.
...
Fixed reversed fps-fpm conversion.
2010-12-29 21:17:46 +01:00
Dave Luff
07d430c129
More fixes to the ATCDCL & ATC compilation
...
Rename ATC/atis.[ch]xx to ATC/atis_mgr.[ch]xx, to avoid confusingly
having 2 atis.cxx and 2 atis.hxx in the source tree. Also fix a copy
and paste error in src/ATCDCL/CMakeLists.txt.
2010-12-29 18:52:39 +00:00
Dave Luff
9dd0d403ea
Merge branch 'next' of gitorious.org:fg/flightgear into atcdcl
2010-12-28 21:01:53 +00:00
Dave Luff
4042385a21
ATIS fixes from John Denker
2010-12-28 20:47:33 +00:00
Dave Luff
58f46bbe18
ATCDCL: Initialisation order fixes from John Denker.
2010-12-28 19:13:31 +00:00
Dave Luff
7d3d22f6c2
ATCDCL: Remove some unused cruft.
2010-12-28 19:05:44 +00:00
Dave Luff
d6fceb3fbc
Remove conditional compilation of ATCDCL
...
This patch removes the conditional compilation of ATCDCL, compiling both
the old and new ATC systems. The old system only provides ATIS, AWOS and
some dialog lookups, and hence should not conflict with the new system.
2010-12-28 18:23:40 +00:00
James Turner
ce2a112639
When attempting to pass a NaN between Nasal and property nodes, catch this.
2010-12-28 11:58:03 +00:00
Torsten Dreyer
a0689eedd7
Cleanup: don't unbind unknown properties
2010-12-28 12:28:26 +01:00
Dave Luff
b26705d3be
Remove more code only concerned with the depreciated interactive ATC/AI
2010-12-27 21:54:20 +00:00
Dave Luff
f3cfddfd92
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-12-27 19:25:43 +00:00
Dave Luff
a3433fbc6c
Remove legacy interactive tower and ground control
...
Also includes some whitespace cleanup of the remaining legacy ATC code.
2010-12-27 19:24:03 +00:00
Torsten Dreyer
e1858b14b6
GlobalWeather: don't crash
...
Don't crash when flying into METAR generated weather
reporting fog/mist/haze and clear sky
2010-12-27 14:24:44 +01:00
James Turner
a0d1a5cb10
Merge branch 'next' of git@gitorious.org:fg/flightgear into next
2010-12-27 12:45:07 +00:00
James Turner
2b5f50e856
WIN32/MSVC fixes from Olaf Flebbe
2010-12-27 12:44:17 +00:00
Dave Luff
4c288398cb
Removed legacy interactive approach ATC
2010-12-27 11:39:07 +00:00
Dave Luff
86505fd8bc
Fix up some include paths in main.cxx
...
Don't include legacy ATCmgr.hxx when it is not compiled (default).
Do include 3 paths that are necessary for main, but were only picked
up indirectly through the legacy ATC code.
2010-12-26 23:19:57 +00:00
Tim Moore
958a28b97f
cmake changes for osg::CullSettings::ClearMask and Fedora
...
HAVE_CULLSETTINGS_CLEAR_MASK was not set, so a program to test
CLEAR_MASK was added. The Posix timer function clock_gettime is in
librt on Fedora, and probably on other systems too.
2010-12-26 00:44:02 +01:00
Torsten Dreyer
ded664e89e
bugfix: set signal-quality-norm to zero if off or unserviceable
2010-12-23 22:16:55 +01:00
Torsten Dreyer
6db56e8f27
Bugfix: Immediately fetch METAR on reenabling of "Live data"
...
If "Live data" was disabled in any way in the global-weather dialog
and reenabled later, the next metar fetch occoured only after up
to 15 minutes after the report expired. This patch triggers triggers
an immediate fetch of a metar after enabling live data.
2010-12-22 08:34:44 +01:00
Torsten Dreyer
fe00f76684
Precipitation: use /environment/[rain|snow]-norm
...
Don't use the properties in /environment/metar but the properties
unter /environment, so these values can be set from other environment
controllers.
2010-12-21 09:59:23 +01:00
Torsten Dreyer
f8c7f95745
fog/misg/haze: tweak layer's top and limit to 2d-clouds
...
For the time being, this works only with 3d clouds disabled.
When enabled, limit the top of the misty layer to the bottom of
a possible cloudlayer above.
2010-12-20 21:07:59 +01:00
Curtis L. Olson
f8015bf54f
Add a small bit of nan/fpe protection. It's possible that this routine
...
could be called with a zero dt which would then lead to a divide by zero
error if we ran through all the computations.
2010-12-20 12:20:57 -06:00
James Turner
3f00b27926
Fix link ordering to keep GNU ld happy.
2010-12-19 09:03:35 -08:00
James Turner
0931fe332e
Guard against NaN SGGeods in FGPositioned spatial queries, and in the GPS lat/lon reading code.
2010-12-19 16:18:12 +00:00
James Turner
099d6475fd
CMake update for new KLN89 file.
2010-12-19 15:45:36 +00:00
James Turner
a91ec5f9f9
Initial work on CMake build files, with considerable help from Olaf Flebbe.
2010-12-19 15:06:04 +00:00
Torsten Dreyer
8f6098024b
Some code cleanup, no functional changes
...
- indention
- unused variables
2010-12-18 11:30:03 +01:00
Torsten Dreyer
80e7955a0c
metar: make unknown station-id's work again
...
Restore old feature where unknown station id's like XXXX were
substituted by the metar station closest to the current position.
2010-12-15 17:57:05 +01:00
Torsten Dreyer
8afcb8da0b
metar fog/mist/haze: some final(?) tweaks
2010-12-15 16:58:42 +01:00
Torsten Dreyer
58fbd0d72a
msvc warning fixes
2010-12-15 16:40:25 +01:00
Torsten Dreyer
1b4a4c9f52
Metar fog/mist/haze: no hardcoded constants
...
Move hardcoded constants to the property tree
2010-12-12 21:30:39 +01:00
James Turner
0b3829810f
Don't crash if WindowBuild fails.
2010-12-11 14:29:05 +00:00
ThorstenB
2302f04095
fix NAV receiver vs GPS bugs
...
Allow switching off slaved-to-gps (resynch NAV radio/update all NAV outputs)
Allow tuning NAV stations and keep DME alive when slaved to GPS
Clear station ID and heading when loosing NAV signal
2010-12-11 12:37:39 +01:00
Frederic Bouvier
45b001a784
Fix a typo
2010-12-11 10:43:39 +01:00
Frederic Bouvier
82b1735c64
Use a syntax MSVC can compile
2010-12-10 08:28:05 +01:00
Dave Luff
3d4d621a3b
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-12-09 23:38:18 +00:00
Dave Luff
d73a3cd207
KLN89: Move units configuration out of dclgps and into KLN89
2010-12-09 23:34:37 +00:00
Dave Luff
2102c3c9ff
KLN89: Add initial implemenation of ALT pages.
...
The user can now set the KLN89 baro pressure setting, but this is
not currently used since currently the unit performs no VNAV calcs.
2010-12-09 22:31:34 +00:00
ThorstenB
b4478b56c9
Issue #66 : Non alphanumeric characters in callsign
2010-12-09 16:57:12 +01:00
Torsten Dreyer
87daa1290a
Improved fog/mist/haze creation from METAR
2010-12-09 11:08:36 +01:00
Torsten Dreyer
340bb58579
Export the 2d cloudlayer transparency to the property tree
2010-12-09 09:08:49 +01:00
Dave Luff
d450900e0b
KLN89: Fix a tiny UI bug - don't draw the indicator bar on the DTO page
2010-12-08 19:03:54 +00:00
James Turner
d2bbaa69e0
Change how ils.xml data is loaded, to reduce impact on startup time.
2010-12-07 18:07:50 +00:00
Dave Luff
9eca656a98
KLN89: Remove several bugs related to OBS mode
2010-12-07 17:34:30 +00:00
James Turner
b847ca6026
Merge branch 'topics/bug192' into next
2010-12-07 13:06:39 +00:00
James Turner
2c175f57ae
Override puaComboBox recalc_bbox, ignore the popup-menu
2010-12-07 10:33:14 +00:00
Dave Luff
e6aea6dcde
KLN89: Allow user to set default first char of waypoint as per real life unit.
2010-12-06 22:50:37 +00:00
Dave Luff
59a22860ff
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-12-05 23:41:59 +00:00
Dave Luff
f234f76287
KLN89: Add user-adjustable minimum brightness setting.
2010-12-05 23:40:05 +00:00
ThorstenB
ca8cd763af
Rid some uninitialized vectors (NaNs).
2010-12-05 23:01:57 +01:00
Torsten Dreyer
9e764ed4b0
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-12-05 21:35:13 +01:00
Torsten Dreyer
29161c2114
First shot at implementing fog from METAR
2010-12-05 21:34:28 +01:00
ThorstenB
138449f4bd
Avoid exceptions in route manager module.
...
Avoid segfaults in gps when route manager doesn't throw exceptions.
Minor fix when removing waypoints by negative index.
2010-12-05 21:26:51 +01:00
ThorstenB
ebbd5bfd05
fix bug #177 : crash caused by route manager/gps/navradio
...
Uninitialized variables were sources for NaN values.
Once NaNs are passed to Nasal (through (tied) properties), these cause
a crash. Nasal cannot handle NaNs - it interprets these as pointer values...
2010-12-05 20:35:21 +01:00
Dave Luff
7a0c2c2e8a
KLN89: Move some KLN89 specific configuration from dclgps to kln89
2010-12-05 17:36:32 +00:00
Torsten Dreyer
c467c91c07
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-12-05 13:06:56 +01:00
Dave Luff
d1601ff8b2
KLN89: Fix ARINC 424 loader for airports with parallel runways.
...
To load approach data into the KLN89, drop an ARINC 424 format file
named "rnav.dat" into the data/Navaids directory. The loader has
been tested on the 424-18 data revision, so may need tweaking for
the latest data. Currently about 97% of the listed US non-precision
approaches are loaded, the majority of the failures appear to be due
to 1-digit runway code offsets between the flightgear airport data
and the ARINC data due to magnetic variation changes.
2010-12-05 10:57:36 +00:00
Dave Luff
ca7f9dec76
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-12-05 10:48:02 +00:00
Dave Luff
316f68cbf1
KLN89: Remove hardwired instrument approach, and add initial support for loading non-precision approaches from ARINC 424 format data. Currently fails on airports with multiple parallel runways.
2010-12-04 16:55:26 +00:00
Tim Moore
c9d29905dd
Merge remote branch 'gitorious/next' into next
2010-12-04 16:27:25 +01:00
Tim Moore
79a2173ef9
Fix bug 182 - make sun direction agree with position of sun from the ephemeris
...
http://code.google.com/p/flightgear-bugs/issues/detail?id=182
There were two issues. The biggest is that the sunsolver was accessing
parameters from the ephemeris and doing a different calculation with
them to derive the right ascension and declination of the sun. I'm not
sure who is right, but I changed sunsolver to agree with the
ephemeris. Also, there was an inappropriate use of geodetic
coordinates in calculating the sun latitude and longitude.
Also, I did some cleanup in updateSunPos().
2010-12-04 16:26:46 +01:00
Torsten Dreyer
c1336db664
METAR: symbolic cloudnames
...
- use symbolic names for scattered, broken, overcast, etc. cloud
coverages.
2010-12-04 12:05:35 +01:00
Frederic Bouvier
1830f2be4d
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-12-03 08:59:36 +01:00
Frederic Bouvier
58ca6c916f
Fix for bug #177 - check for empty strings
2010-12-03 08:59:14 +01:00
James Turner
b9976f7d34
Fix for bug #72 - don't init traffic manager if disabled.
...
Disabling the traffic-manager at runtime will prevent new flights being scheduled.
2010-12-02 20:29:28 +00:00
James Turner
a9a1734f1e
Fix bug 191, uninitialised HUD color.
2010-12-02 00:41:29 +00:00
James Turner
55c0d3f4d6
Build without OSG implicit ref-ptr conversion
2010-12-01 23:57:18 +00:00
James Turner
f7548fec1f
Fix bug #185 - altitude ignored when adding waypoints to the route.
2010-12-01 23:57:01 +00:00
ThorstenB
7a2e1be5bf
GPWS: change default source to match all FDMs
...
Provide another built-in altitude source to hook a radio-altimeter instrument
2010-12-01 22:57:35 +01:00
Erik Hofman
d66903e9ad
latest updates from JSBSim
2010-11-30 13:44:10 +01:00
Erik Hofman
2a674c76fa
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-30 13:35:18 +01:00
Tim Moore
4b2436a4e5
remove call to function removed in OSG
2010-11-30 12:01:52 +01:00
Csaba Halasz
c5c895dae2
Merge commit 'refs/merge-requests/14' of git://gitorious.org/fg/flightgear into next
2010-11-30 00:42:34 +01:00
Csaba Halasz
674a295896
Merge commit 'refs/merge-requests/13' of git://gitorious.org/fg/flightgear into next
2010-11-30 00:26:22 +01:00
ThorstenB
79094e8c36
Fix bug #187 : check if path cache matches fg-aircraft dirs
...
Check if any fg-aircraft dir changed - sequence also matters.
2010-11-29 22:48:37 +01:00
Tim Moore
27a7b98284
compilation fixes for older versions of OSG
2010-11-29 22:43:52 +01:00
Erik Hofman
c44948041b
PAtch by Andreas Gaeb to eliminate NaN's in the location code
2010-11-29 09:57:45 +01:00
Tim Moore
d38fcc9979
panoramic spherical distortion
...
This supports the panoramic distortion option, as found in osgViewer, in
the camera file syntax of flightgear.
2010-11-28 23:29:20 +01:00
Erik Hofman
1cf207e054
Quick update with Bertrand Coconnier's fixes
2010-11-28 15:14:12 +01:00
Erik Hofman
ad51a9bde2
Sync JSBSim again
2010-11-28 10:58:47 +01:00
Erik Hofman
4dc76922c8
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-28 10:58:18 +01:00
ThorstenB
d438a180ab
Fix route manager exception and following crash (may fix #177 )
...
See bug issue #177 for more.
Also fix minor compiler warning.
2010-11-27 20:05:28 +01:00
ThorstenB
b037a80e5f
bug #183 : Increase area where models are force-loaded before FDM release
2010-11-26 23:33:22 +01:00
Torsten Dreyer
6403a119a2
Expose the cloud layer type to the property tree
...
Missing file
2010-11-26 19:29:59 +01:00
Torsten Dreyer
f92eac7696
Expose the cloud layer type to the property tree
2010-11-26 19:27:05 +01:00
Torsten Dreyer
1223b4af9e
Expose visibility within cloudlayers to the property-tree
2010-11-26 19:26:12 +01:00
Torsten Dreyer
f33d26d51c
Warning fix: unused variables
2010-11-26 16:14:43 +01:00
James Turner
ce8ca7853c
Fix bug #125
2010-11-24 20:57:56 +00:00
Erik Hofman
eea6bd1e37
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-24 14:40:26 +01:00
Dave Luff
df35559246
Merge branch 'kln89' into next
2010-11-23 18:04:10 +00:00
Dave Luff
7ac304398b
KLN89: Small improvement to flightplan page: dash out invalid distances when entering a new waypoint
2010-11-23 18:03:13 +00:00
Dave Luff
438cb4a462
KLN89: Jump to the next position in the flightplan after waypoint entry, as per the real-life unit
2010-11-23 16:29:53 +00:00
Dave Luff
3ac2f000d2
KLN89: Fix small bug in FPL pages due to comparison against a negative quantity with unsigned variables
2010-11-23 16:29:21 +00:00
Dave Luff
c171c44653
KLN89: Allow CLR to abort flightplan waypoint entry at the waypoint review page, as per the real-life unit
2010-11-23 12:21:25 +00:00
Dave Luff
c6276f5845
KLN89: Fix both incorrect behaviour and a segfault when deleting a partially-entered waypoint in the flightplan pages
2010-11-23 10:51:37 +00:00
Dave Luff
c30c183999
KLN89: Fix some bugs in the flightplan page text entry. Basically, draw the text entry string instead of the dummy waypoint ID.
2010-11-23 10:15:10 +00:00
James Turner
4a25fe3adc
Ignore -psn_ argument if launched as a GUI app on Mac.
2010-11-22 23:28:12 +00:00
Dave Luff
a39fa6ca1e
Merge branch 'kln89' into next
2010-11-22 22:44:21 +00:00
Dave Luff
dbd3e7077d
KLN89: Change to more meaningful function names, and always clear the buffer after drawing.
2010-11-22 22:21:09 +00:00
Dave Luff
cd420dadf7
KLN89: Fix clipping bug affecting the KLN89 map page. Pixels and lines must be clipped when being put into the buffer, since the clip region may change before the buffer is rendered. Also, the wrong DrawPixel function was called from the oldDrawLine function.
2010-11-22 21:34:24 +00:00
James Turner
e0aef846e3
Fixing bug #172 - warp handling during pause.
2010-11-21 23:43:41 +00:00
Dave Luff
0b941b759a
KLN89: Round properly when converting map points to pixel locations
2010-11-21 20:46:14 +00:00
Dave Luff
95f244b741
KLN89: Update obsolete email address
2010-11-21 17:14:15 +00:00
Dave Luff
34cbe3623b
KLN89: Update obsolete email address
2010-11-21 17:13:41 +00:00
Dave Luff
650483f1d3
KLN89: Cleanup - fix broken indentation and email address, and replace tabs with spaces
2010-11-21 17:05:33 +00:00
Dave Luff
35e63ca406
Fix copy-and-paste error which resulted in right inner knob having left inner knob function whilst setting ID in flightplan pages
2010-11-21 15:56:15 +00:00
Erik Hofman
929ef66fc8
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-21 15:44:45 +01:00
Dave Luff
19d94f21e2
Clean up indentation and then replace tabs with spaces
2010-11-21 14:16:43 +00:00
ThorstenB
dec020cd64
Suppress framerate while splash screen active
...
Don't irritate the fps-geeks while the sim isn't ready yet.
And a minor pointer safety issue.
2010-11-21 13:58:10 +01:00
Dave Luff
80badf9fc5
Clarify comments
2010-11-21 09:59:49 +00:00
Torsten Dreyer
495a23a80a
Avoid division by zero in exponential filters
2010-11-20 11:07:24 +01:00
Erik Hofman
2ea50c63bb
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-19 15:35:38 +01:00
ThorstenB
fabf45bfd5
Use simgear abstraction for sleeping.
...
Fix required for Bill's OS...
2010-11-19 15:05:12 +01:00
ThorstenB
44901ae86f
Tile manager improvements
...
Priority scheme for tile loading/removing
Cleaner tile manager interface for AI/groundcache/...
Reduce start-up delay. Drop splash screen when inner scenery is available.
Be nice to osg loader: slow-down main loop while initial scenery is still loading.
2010-11-19 13:59:43 +01:00
ThorstenB
20b58fd9ab
Set initial environment visibility (thanks to kantoon)
2010-11-19 13:47:13 +01:00
ThorstenB
ca3cabc60a
Kill some unnecessary include dependencies.
...
Speed-up compilation when working on tilemanager.
2010-11-19 13:44:52 +01:00
Vivian Meazza
6ac7271d80
Add oitput to property tree.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-11-19 09:55:36 +00:00
Vivian Meazza
12d10066a6
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-18 23:51:12 +00:00
Vivian Meazza
a68b07e67a
Add Alignment settable at runtime, and add movement-induced errors.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-11-18 23:48:58 +00:00
ThorstenB
da32e9332c
Freeze MP position during replay.
...
Now you can replay and watch your favourite landing
101 times without pi**ing off everyone else playing MP. :)
2010-11-15 23:28:51 +01:00
Tim Moore
38e1600bed
add a command to print information about visible objects in the scene
2010-11-15 00:09:52 +01:00
James Turner
86b906e84e
Expose SimGear and OSG versions via properties too.
2010-11-14 22:55:55 +00:00
Vivian Meazza
f51f15eb50
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-14 22:24:00 +00:00
ThorstenB
1d8913b53e
Fixed path resolution (search --fg-aircraft dirs)
...
Do not abort early when resource doesn't match /sim/aircraft-dir.
2010-11-14 21:06:19 +01:00
Frederic Bouvier
3209a4db09
MSVC: ensure that HAVE_VERSION_H always has a value
2010-11-14 15:33:08 +01:00
Torsten Dreyer
8e55b03f01
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-11-14 13:54:59 +01:00
Torsten Dreyer
f97295f004
fix inconsitent property name fuel[-_]pump
2010-11-14 13:53:45 +01:00
Frederic Bouvier
79ece1c22c
MSVC: compile with version.h if environment variable HAVE_VERSION_H is set to 1
2010-11-14 13:28:17 +01:00
Mathias Froehlich
3d54541cad
Make out of source builds again work.
2010-11-14 11:07:46 +01:00
James Turner
1dbe833579
Use updated version.h if available.
...
Add single fallback header if version.h is missing.
2010-11-13 18:58:55 +00:00
James Turner
a6458c2ed6
Autoconf changes for more flexible versioning.
2010-11-13 10:40:29 -08:00
ThorstenB
e5348b67a5
New property identifying missing MP planes
...
Provide "model-installed" property at MP planes for pilot list.
Avoid direct directory access in Nasal (aircraft installed check).
2010-11-13 16:29:34 +01:00
Christian Schmitt
0a5e86f4e6
remove old .cvsignore files
2010-11-11 01:16:29 +01:00
Torsten Dreyer
0917a5e062
Bugfix: no automatic runway selection with --parkpos=
2010-11-10 23:28:07 +01:00
Torsten Dreyer
9242f3a083
Make startup.nas obsolete
...
This is an ugly hack for automatic runway selection on startup based on
metar data. It's main intention is to make startup.nas obsolete and
to guarantee the same runway selection logic as used for AI traffic.
Calling presets-commit from startup.nas during the initialization
sequence caused occasional trouble and sometimes, the AI traffic
operated on the opposite runway.
2010-11-10 22:19:25 +01:00
Vivian Meazza
66f1ac9222
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-08 22:06:04 +00:00
ThorstenB
85185b56c5
Fixed hot-spot display for 3d modes
...
Also set left/right culling masks (standard mask no effect when 3d rendering is enabled).
2010-11-08 00:24:41 +01:00
Vivian Meazza
438e365aad
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-06 10:21:15 +00:00
Erik Hofman
9ad18de448
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-06 10:05:46 +01:00
James Turner
0cb0c59bc9
FGIO uses new SGSubsystem shutdown() logic
2010-11-06 07:22:37 +00:00
Vivian Meazza
8150bca689
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-04 20:09:52 +00:00
James Turner
c053de6b4c
If preset-commit occurs during init, skip most re-init logic.
2010-11-02 23:19:09 +00:00
Vivian Meazza
cbb502957c
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-02 22:59:34 +00:00
James Turner
eeaf4b13e6
Unify reset/reposition code-paths, and ensure initial state is preserved by a reset.
2010-11-02 22:45:43 +00:00
James Turner
0d6de72b57
Add headerpax-max-install-names, for Mac deployment.
2010-11-02 14:24:09 +00:00
Torsten Dreyer
c56aaa8771
add <initialize-to> to components
...
The tag <initialize-to> can be used to control the value
of the output when the component is first enabled. This
controls initialization of the output property and the current
value for internal computation
Valid values are
<initialize-to>input</initialize-to>
set the output-property to the input value
<initialize-to>output</initialize-to>
set the output-property to the output value
<initialize-to>none</initialize-to>
ignore input and output value
2010-11-02 11:07:33 +01:00
Vivian Meazza
830c2ae7db
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-01 18:23:23 +00:00
Erik Hofman
ff985e43df
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-01 15:04:59 +01:00
James Turner
545969054c
Use new Simgear platform defines in Input code.
2010-10-31 12:23:16 +00:00
Csaba Halasz
27782d7c8b
Added null pointer check to AI subsystem tear down in FGGlobals destructor to avoid crash when using --help option
2010-10-31 00:36:54 +02:00
Vivian Meazza
8ec60b663d
Merge branch 'next' of D:\Git_New\flightgear into next
2010-10-29 20:59:01 +01:00
ThorstenB
7dd2cf19e8
Fixed some compiler warnings.
...
Please the compiler (gods).
2010-10-29 21:14:09 +02:00
James Turner
f02267e3e3
Remove a stray include that got missed.
2010-10-29 14:11:54 +01:00
Vivian Meazza
9ac9940e38
Merge branch 'next' of D:\Git_New\flightgear into next
2010-10-29 10:14:12 +01:00
James Turner
d1a4590721
Goodbye old HUD - and the archeology it depended upon in cockpit.cxx
2010-10-29 08:47:58 +01:00
Erik Hofman
e7ed88af92
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-10-29 09:10:59 +02:00
Erik Hofman
61788d6558
temporary fix for a crash of the c172 (and possibly other aircraft)
2010-10-29 09:10:07 +02:00
Frederic Bouvier
6081f24b00
Don't blindly delete the global property tree on reinit
2010-10-29 09:00:31 +02:00
Vivian Meazza
02fb83c774
Merge branch 'next' of D:\Git_New\flightgear into next
2010-10-28 17:35:03 +01:00
Vivian Meazza
0840b188d2
Re-interpret gyro wander under g-forces
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-10-28 17:32:22 +01:00
Vivian Meazza
b88d0988cd
More rationalization of methods, and other clean-ups
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-10-28 17:29:41 +01:00
James Turner
0147f78d20
Remove persistent references to AI mananger and its objects from the submodel-manager.
2010-10-28 15:10:37 +01:00
James Turner
e9f4106bc1
Remove confusing default (missing) path from 2D panel code.
2010-10-28 13:54:45 +01:00
James Turner
0320010d95
Make use of view[0] in HUD-runway lazy.
2010-10-28 13:54:01 +01:00
James Turner
c96206aafd
Tweak shutdown code, chasing intermittent segfaults on shutdown.
2010-10-26 23:42:34 +01:00
Torsten Dreyer
ae5c29e685
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-10-26 21:20:54 +02:00
Torsten Dreyer
4371a18771
resurrection of /sim/rendering/draw-otw
2010-10-26 21:20:01 +02:00
Erik Hofman
68f5429048
Sync with JSBSim cvs + Anders' patch to get it working with FlightGear.
2010-10-26 09:48:56 +02:00
Torsten Dreyer
657cd883d7
Compile again, replace clib strXXX with std::string
2010-10-25 14:48:56 +02:00
James Turner
e5abcb1d4e
Merge commit 'refs/merge-requests/9' of git://gitorious.org/fg/flightgear into integration/merge9
...
Conflicts:
src/GUI/new_gui.cxx
2010-10-25 09:12:21 +01:00
ThorstenB
d61e992d76
Fix occasional start-up crash when reading GUI XMLs.
...
_dialog_props holds SGSharedPtrs (pointers managed by reference counters).
Explicitly casting the object to an unmanaged SGPropertyNode* and deleting it
may cause heap corruption, since the following assignment "_dialog_props[..] = ..."
also tries to delete the (already deleted) object.
2010-10-24 21:36:15 +02:00
Anders Gidenstam
d7440d8fc5
src/Network/jpg-httpd.cxx: Include C++ C headers instead of plain C headers.
2010-10-24 15:22:06 +02:00
James Turner
987c1bdfda
Automake build fixes for PLIB net/ul removal.
2010-10-24 11:04:14 +01:00
James Turner
db4b84bc5c
Convert nasal directory() helper to use simgear::Dir
2010-10-24 07:10:51 +01:00
James Turner
7ccba95b9c
Remove direct uses of PLIB ulXXX functions
2010-10-24 07:10:51 +01:00
James Turner
0e53e2cbb1
PLIB net removed from FlightGear
2010-10-24 07:10:51 +01:00
James Turner
984900d84d
Make v2 HUD a top-level subsystem, so it can be reinit()ed correctly.
2010-10-24 07:10:02 +01:00
James Turner
957a59e57a
Investigating an intermittent shutdown crash; fix deletion of AIManager.
2010-10-23 19:09:08 +01:00
James Turner
3464eef711
Make the v2 HUD support reinit(), so HUDs can be reloaded at runtime.
2010-10-22 19:11:24 +01:00
James Turner
d573cb43a0
Move three more subsystems into the init + update scheme - fixes some crashes found by papillion.
2010-10-22 16:44:37 +01:00
James Turner
f5c2c630eb
Remove references to old (unused) airways code
2010-10-20 17:54:16 +01:00
James Turner
fe16732783
Fix Win32 compilation - avoid SID name clash with windows.h
2010-10-20 13:13:05 +01:00
James Turner
308fd1b112
Automake build fixes for airways commit.
2010-10-20 11:48:06 +01:00
James Turner
dd2eec7bd8
Airways/procedures code - add new data structures to store waypoints and
...
procedures, and routing algorithms, and modify the GPS, route manager and
WaypointList to use the new objects.
2010-10-20 09:02:02 +01:00
James Turner
0d7769ae72
Search aircraft dirs when loading AI models. Thanks to Thorsten Brehm for the catch.
2010-10-20 00:07:54 +01:00
James Turner
94a3471956
Merge commit 'refs/merge-requests/7' of git://gitorious.org/fg/flightgear into topics/merge7
2010-10-19 09:05:51 +01:00
James Turner
6251814604
Use a property listener on the root, to observe property creation, and thus lazily update the MP property map. Fixes bug 164, and probably many latent MP missing-property issues.
2010-10-18 00:58:35 +01:00
Torsten Dreyer
9f9e86a61e
remove leftover debugging stuff
2010-10-12 15:26:00 +02:00
Torsten Dreyer
06fb956f2c
Fix timing issue on startup for auto runway selection
...
The automatic runway selection code in startup.nas depends
on a valid metar before /sim/signals/nasal-dir-initialized
is fired. If the METAR arrives after that signal, no automatic
runway selection is performed. This patch waits for a METAR
on the first update() loop of the subsystem.
2010-10-11 21:21:53 +02:00
Torsten Dreyer
b9f2f432b3
Merge commit 'refs/merge-requests/8' of git://gitorious.org/fg/flightgear into merge-predictor-fix
2010-10-09 16:06:18 +02:00
Tim Moore
f901dac2ac
replace GLU functions with OSG functionality
2010-10-08 23:48:01 +02:00
Thorsten Brehm
a4f1139fcd
Fixed autopilot/Predictor.
...
Signature of Predictor::configure must match AnalogComponent::configure,
otherwise the inherited method isn't overridden.
=> predictor couldn't be configured.
=> speed predictor rules in "generic-autopilot-helper.xml" weren't working.
2010-10-08 21:41:09 +02:00
James Turner
9b2cea33e8
Remove uneccessary explicit update of FGLight
2010-10-05 23:17:32 +01:00
James Turner
0c342308eb
Make MultiPlayer a well-behaved subsystem.
2010-10-05 23:17:32 +01:00
James Turner
d39841d2df
Make FGAircraftModel behave like a standarrd subsystem.
2010-10-05 23:17:32 +01:00
Thorsten Brehm
a1137ed940
Another GPWS fix: terrain clearance filter must be reset on reset/reposition.
...
Queue of recent altitude samples must be cleared on reset/reposition to avoid nuisance alerts...
2010-10-05 22:34:23 +02:00
Thorsten Brehm
9be636555c
Fixed navradio when shutting down/restarting nav receiver.
...
"nav-loc" and "has_gs" properties were not updated when nav receiver was rebooted.
Shutting down the nav receiver clears all nav outputs (including "nav-loc" and "has_gs").
=> When nav receiver is powered again, all outputs must be updated.
=> "nav-loc" and "has_gs" are only updated when active nav station changes.
=> old nav station must be cleared on shutdown to enforce update on nav reboot...
2010-10-05 22:34:08 +02:00
Torsten Dreyer
9ffaf11aa5
Autopilot: fix initialization of digital filters
2010-10-05 14:29:36 +02:00
Tim Moore
dba471519f
Thorsten Brem's patches for bug 122
...
Fixes teleporting problems and disappearing tiles.
2010-10-03 08:35:12 +02:00
James Turner
3b410152f0
Merge commit 'refs/merge-requests/6' of git://gitorious.org/fg/flightgear into torsten/mkviii
2010-10-02 19:16:48 +01:00
Thorsten Brehm
e7b58d48e3
Fix wxradar to use path resolution
...
make it work with the new "multiple aircraft dir" feature
2010-10-02 00:40:24 +02:00
James Turner
0beab94cb5
Make the tile-manager a well-behaved SGSubsystem
2010-10-01 19:09:19 +01:00
James Turner
6963a6c2e4
Kill off the general.hxx header
2010-10-01 09:35:37 +01:00
James Turner
1afd4e602e
Get rid of FGGeneral; expose equivlanet values via properties.
2010-10-01 09:33:31 +01:00
James Turner
af4e47179e
Kill off fgRequestRedraw
2010-09-30 23:13:11 +01:00
James Turner
84b45683fc
Refactor exit code, so the osgViewer gets 'done'.
2010-09-30 23:13:11 +01:00
James Turner
582c1e8df8
Tidy new_gui header
2010-09-30 23:10:00 +01:00
James Turner
f969504e6b
Tidy fg_commands header.
2010-09-30 23:10:00 +01:00
Csaba Halasz
29afc299fd
Merge commit 'refs/merge-requests/5' of git://gitorious.org/fg/flightgear into next
2010-09-30 23:54:35 +02:00
Thorsten Brehm
c7423cbcea
- Fixed mk-viii sound sample loader: missing "/".
...
- Fixed triggering of debug assertion "altitude_callout_voice != NULL" when
altitude callouts were delayed by higher priority warnings.
- Fixed performance bug: MK_VIII::IOHandler::TerrainClearanceFilter::update
sucked CPU time (top #12 in profiler), due to complex "moving average"
calculation on a queue of hundreds/thousands of altitude samples.
Also, pausing the sim caused this queue to grow excessively (by one sample
per update loop) => resuming the sim after pausing it for a long time
resulted in the TerrainClearanceFilter sucking even more CPU time...
=> Number of altitude samples is now limited to 5 samples/sim-time-second
(still more than enough to calculate a stable average).
2010-09-30 23:18:13 +02:00
Csaba Halasz
5a2d948c6f
Add missing initializer in AIBallistic.cxx
2010-09-30 13:07:42 +02:00
Vivian Meazza
abd1d983c6
Rationalize methods.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-30 01:08:50 +02:00
Vivian Meazza
2b95158704
Add coefficients configurable at runtime, and bugfix.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-30 01:06:19 +02:00
Vivian Meazza
a5eba61c2a
Remove unneeded variable.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-30 01:05:59 +02:00
Csaba Halasz
5000d212ec
Merged commit from Vivian Meazza: Rationalize methods (ea85e50c2093942164bbc02f371a0c05b259f9f4)
2010-09-30 01:05:04 +02:00
Csaba Halasz
141186a358
Merge branch 'next' into vivian
...
Conflicts:
src/AIModel/AIBallistic.cxx
src/AIModel/AIBase.cxx
2010-09-30 00:45:13 +02:00
Vivian Meazza
10866851de
Add join manoeuvre/command to AIWingman. Rationalize more methods. Fix some more bugs
2010-09-30 00:34:15 +02:00
Thorsten Brehm
c71fcbf10d
Simplified pointer-aliasing patch.
...
Removed introduction of a new union and reused existing one.
2010-09-28 08:50:54 +02:00
Thorsten Brehm
5a7f838ff2
Fixed all type-casts violating the strict-aliasing rule.
...
=> Removes compiler warnings and optimization problems.
2010-09-27 23:48:20 +02:00
Torsten Dreyer
5ed04a6227
Ignore outdated METAR for realwx
2010-09-27 18:59:26 +02:00
Durk Talsma
df00df3feb
- Fix compiler warnings.
2010-09-27 17:48:38 +02:00
James Turner
d5e0bc3b89
Thorsten Brehm:
...
* Fixed segfault when GPWS finds a matching airport but no suitable runway.
* Fixed several sim deadlocks when GPWS alerts trigger at "strange"
heights (e.g. initial alert height is -5ft or 1e-29...).
* Avoid repitition of GPWS alerts below 30ft, i.e. avoid excessive
repitition when plane becomes airborne at bumpy landings.
2010-09-20 09:06:30 +01:00
Erik Hofman
08a42cb164
Sync. with JSBSim CVS
2010-09-19 11:18:13 +02:00
Erik Hofman
4b8fde057b
Sync. with JSBSim CVS
2010-09-19 11:16:29 +02:00
Anders Gidenstam
cf4d0fb0e3
Restored src/AIModel/AIShip.hxx to unix line endings. The last step of
...
rebasing merge-request #6 for inclusion.
2010-09-17 22:03:00 +02:00
Vivian Meazza
474789269b
Bugfix - untie property.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:44:58 +02:00
Vivian Meazza
00f26994b2
Add <name> tag so that AIWingman or other suitable AI Object can be attached.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:44:58 +02:00
Vivian Meazza
1dc3ecf016
Make AI Objects of type Wingman, Escort, and GroundVehicle able to be stationed or formated to any AI Object type which can be named - Carrier, Ship, Tanker, Wingman etc.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:44:58 +02:00
Vivian Meazza
f08012d14f
Remove debugging statement.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:44:58 +02:00
Vivian Meazza
b22960ffff
Associate submodels with parent AI Objects.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:17:56 +02:00
Vivian Meazza
2758f07df0
Use AIBase method setParentNode() vice the local method.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:17:56 +02:00
Vivian Meazza
afbc360eed
Add callsign for consitency.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:06:35 +02:00
Vivian Meazza
c7e864cee9
Move methods "setParentNode()" etc. to make them available to all AI Objects.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:06:35 +02:00
Vivian Meazza
b4fbde72b2
Enable Ballistic objects to be slaved to any AI Object.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-17 21:06:35 +02:00
Torsten Dreyer
a5017f218f
Fix mean nasal bug when calling setprop("foo")
...
Reported on the forum from Thorsten Renk and analyzed by
Hooray, fixes this issue:
var x="/test/X";
var y="/test/Y";
setprop(x,100); # sets x=100
setprop(y); # sets x=0
setprop(x,100);
setprop(200); # sets x=200
by checking for at least 2 parameters for setprop
2010-09-13 22:15:50 +02:00
Torsten Dreyer
31a807563b
Fix static initialization order trouble on OSX
2010-09-13 21:21:10 +02:00
Erik Hofman
f75656ea59
Allow for scenery de-saturation
2010-09-12 11:06:14 +02:00
Torsten Dreyer
f3af5ae5dc
Be a bit more descriptive on "PT_vs_hpt: ran out of layers"
...
Please enter the commit message for your changes. Lines starting
2010-09-11 21:33:17 +02:00
Torsten Dreyer
814daa3365
Environment bugfix: don't write unchanged cloud coverages
...
Only write out changes of the cloud layer to avoid regeneration
of the cloud layers if nothing has changed
2010-09-11 21:23:11 +02:00
Torsten Dreyer
1a3eddbbcd
Keep MSVC happy with the Environment updates
2010-09-11 20:32:37 +02:00
Torsten Dreyer
5c6fe95259
Environment controller overhaul
...
This is the initial commit for a reworked environment controller.
The main intention is to decouple the individual modules like
metar fetch, metar properties, environment interpolation etc.
to make it easier for other weather module developers to modify
environment settings.
As a side effect, the dialogs for weather-scenario, weather-conditions,
clouds and precipitations have been merged into a single dialog
2010-09-11 16:11:35 +02:00
Csaba Halasz
fdbfd6fd0b
Merge commit 'refs/merge-requests/1552' of git@gitorious.org:fg/flightgear into next
...
Conflicts:
src/MultiPlayer/multiplaymgr.cxx
2010-09-09 00:48:17 +02:00
James Turner
7227973e2f
Don't expect an 'Aircraft' sub-directory within each aircraft-dir.
2010-09-08 11:01:26 +01:00
James Turner
e8b0bb872a
Register the aircraft resource provider.
2010-09-06 22:57:48 +01:00
James Turner
18a5a2a144
Fix one more place to use path resolution
...
(and hence work with multiple aircraft dirs)
Thanks to Jentron for the catch.
2010-09-06 16:10:58 +01:00
James Turner
8330449c5f
Pass current-dir into XMLSound
...
(and update to revised SGSoundSample ctor)
2010-09-06 09:28:28 +01:00
James Turner
a7a2cb393a
Use the new Simgear ResourceManager to resolve paths.
2010-09-06 09:13:10 +01:00
James Turner
8a97ed354d
Fix submodel code to work with multiple aircraft dirs.
2010-09-06 09:12:25 +01:00
Torsten Dreyer
1e43675f61
Expose some OSG DisplaySettings to the property tree
2010-09-05 11:56:38 +02:00
Durk Talsma
aba57077fd
Issue a warning when finding duplicate tail numbers. Note that this is far from a fatal error, but does interfere with the startup heuristics data collection mechanism.
2010-09-03 12:32:55 +02:00
Durk Talsma
8112ff5842
Merge branch 'next' of git@gitorious.org:fg/flightgear into next
2010-09-03 10:57:27 +02:00
Durk Talsma
558582b58d
* A few new features to allow database management and traffic pattern developement:
...
--prop:/sim/traffic-manager/dumpdata=true: dumps the currently loaded datafile to the console for inspection.
--prop:/sim/traffic-manager/datafile=/path/to/somefile.xml: Skips autoscanning and reads traffic only from the specified xml file.
--prop:/sim/traffic-manager/datafile=/path/to/somefile.conf: Slips autoscanning and reads traffic from a plain text file, as described on the forum/wiki
* Removed the use of pointers for heuristics calculations, as urged by Frederic Bouvier
* Fixed domain error in proportion calculation during loading, resulting in random skipping of aircraft, as reported by Jorg van der Venne.
2010-09-03 10:47:05 +02:00
Anders Gidenstam
a9062080b0
Restored line endings in src/MultiPlayer/multiplaymgr.cxx.
...
Please check that the line endings are not messed up before mergeing.
2010-09-02 20:07:34 +02:00
Anders Gidenstam
95a7e177d7
Restored line endings in src/AIModel/AIMultiplayer.cxx.
...
Please check that the line endings are not messed up before mergeing.
2010-09-02 19:46:44 +02:00
Vivian Meazza
2cdc9f6461
Merge branch 'next' of D:\Git_New\flightgear into next
2010-09-02 09:27:18 +01:00
Vivian Meazza
9018d65c52
Add contrail as a standard property
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-02 09:25:53 +01:00
Vivian Meazza
bc12f0be21
Walk the AImodels property tree only once at init, rather than at update. Should have a beneficial effect on frame rate, but in practice makes no discernible improvement. It is cleaner code though.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-09-02 09:24:45 +01:00
Csaba Halasz
d8165470c3
Merge commit 'refs/merge-requests/6' of git@gitorious.org:fg/flightgear into next
2010-08-31 22:39:34 +02:00
Durk Talsma
800352e26f
- Whoops, missed committing this tiny but fatal-if-not-included change.
2010-08-31 16:57:07 +02:00
Durk Talsma
eb45d524a8
Provide an initial heuristic for airports for which we haven't collected any usage data yet.
2010-08-31 13:21:30 +02:00
Durk Talsma
f2bca353ad
Merge branch 'next' of git@gitorious.org:fg/flightgear into next
2010-08-30 21:15:17 +02:00
Durk Talsma
b090d3dabc
Enable the collection of AI aircraft position statistics. This will allow for a dramatic speedup of the establishment of AI traffic after program initialization.
2010-08-30 21:13:16 +02:00
Vivian Meazza
792cb2701f
Add tanker property to list of standard properties
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-30 17:16:30 +01:00
Vivian Meazza
118036cdda
Make the parameter isTanker controllable
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-30 17:15:34 +01:00
Vivian Meazza
8ca420ec53
Merge branch 'next' of D:\Git_New\flightgear into next
2010-08-30 09:49:42 +01:00
Durk Talsma
9197057784
Merge branch 'next' of git@gitorious.org:fg/flightgear into next
2010-08-29 19:28:57 +02:00
Durk Talsma
467513cbaf
Major update to the AI code:
...
* New features
- More realistic descent paths
- Separation during descent and approach
- ATC approach controller (still silent)
- inbound traffic flow will start immediately
* Bug fixes
- Properly handle vertical speed when on ground
- Departing aircraft now wait for taxiclerance before moving
- Traffic manager waits for proper weather initialization
- Fixed instabilities in the preferential runway usage code
- Fine tuning of waypoint following code.
2010-08-29 19:25:34 +02:00
Vivian Meazza
9e44be1df7
Merge branch 'next' of D:\Git_New\flightgear into next
...
Conflicts:
src/AIModel/AIBallistic.cxx
2010-08-29 00:08:50 +01:00
Vivian Meazza
dff8099994
Major update of Ballistic objects and submodels. Introduce submodels slaved to AI Objects. Remove deprecated code. Try to increase framerate. Use quaternion calculations for Initial Conditions.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-29 00:00:09 +01:00
Torsten Dreyer
c41364983e
fix double binding bug in autopilotgroup and naming error
2010-08-26 18:51:46 +02:00
Torsten Dreyer
fed62b13dd
Downgrade two autopilot SG_LOG alerts to warnings
2010-08-25 20:43:43 +02:00
Torsten Dreyer
0d6329e3e7
Don't segfault on missing boundary table
2010-08-24 20:32:41 +02:00
Torsten Dreyer
8a00bce145
property-rules might be read from fg-root
2010-08-23 22:27:39 +02:00
Torsten Dreyer
11016dbe84
Oups - terrainsamplers header was modified, too
2010-08-23 17:52:19 +02:00
Torsten Dreyer
b2f8238696
Some terrainsampler improvements
...
- use max. computation time instead of max computations per frame
- restart computation of an area only after significant movememt
- let the area move with a heading and a speed
2010-08-23 17:47:57 +02:00
Frederic Bouvier
52ac173257
Merge commit 'refs/merge-requests/1551' of git://gitorious.org/fg/flightgear into stuartb/modelcallsign
2010-08-21 14:54:08 +02:00
Frederic Bouvier
f10f126352
Line endings ?
2010-08-21 14:53:03 +02:00
Torsten Dreyer
54e6757211
Autopilot is more than just an autopilot: Introducing: "property rule"
...
The autopilot has grown beyond being just an autopilot. It's
components, filters and controllers could be used to set property
values based on complex rules and driven from other property values.
That's why I chose to give it the name "property-rule".
This patch allows to define an arbitrary number of property rules under
a/sim/property-rule[n]/path
using the same syntax as autopilot configurations.
2010-08-18 18:50:07 +02:00
James Turner
ae50c054a9
Fix crashes (activating the route-manager) with a default GPS.
2010-08-16 17:10:12 +01:00
James Turner
dbd9935c52
Expose aircraft-dirs under /sim (read-only, for security)
2010-08-16 11:00:54 +01:00
Torsten Dreyer
e43456ba43
Merge branch 'next' of gitorious.org:fg/flightgear into next
2010-08-15 20:35:14 +02:00
Torsten Dreyer
60f7d0f16c
Downgrade the ridgelift to a subsystem of environment
2010-08-15 20:33:29 +02:00
James Turner
2e69930c7d
Expose path resolver to Nasal.
2010-08-15 11:02:27 +01:00
James Turner
bca3494462
Support relative paths in 'loadxml' command
...
(relative to FG_ROOT or an aircraft dir)
2010-08-15 11:02:15 +01:00
Torsten Dreyer
10eadf0c6e
First step into implementing the local-weather system
...
This is the first part of the local-weather implementation
of Thorsten Renk, currently written entirly in Nasal. Here
comes the terrain-sampling subsystem as a first step. It is
not (yet) included in the build process which will be
performed when the system has a little matured.
2010-08-14 22:42:31 +02:00
James Turner
8d5021f670
Make ident/name searches on FGPositioned case-insensitive (for the GPS, especially)
2010-08-14 20:24:30 +01:00
James Turner
ae7342ebe7
Fix issue identified by AndersG - don't load 2.5D panels for MP aircraft, only the main aircraft.
2010-08-14 19:50:22 +01:00
James Turner
a363da9274
Really fix bug 146 - angle units confusiuon.
2010-08-14 19:29:02 +01:00
James Turner
6266491aea
Candidate fix for bug 146, view_direction computed incorrectly.
2010-08-14 19:24:48 +01:00
James Turner
dae7e961c9
Merge branch 'topics/bug150' into next
2010-08-14 19:17:23 +01:00
James Turner
57cb0a809b
Fix bug 150 (airports not found in GPS search)
...
Overhaul and simplify the GPS search logic based
on experience and testing with the API. Also fix
search-by-name, which was broken.
2010-08-14 19:16:28 +01:00
Vivian Meazza
ad3fae9039
Merge branch 'next' of D:\Git_New\flightgear into next
2010-08-14 13:47:03 +01:00
Vivian Meazza
72c5a314e6
Add aubmodels to AI objects
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-14 13:39:30 +01:00
Erik Hofman
63b3f802ec
sync again
2010-08-14 14:09:58 +02:00
James Turner
71fbacc6dc
Thorsten Brehm: GPWS: Fixed permanent blocking of lower prio warnings
...
Only block callouts which were actually issued to the pilot. When
multiple callouts trigger at the same time, allow lower prio warnings
to be issued once the higher prio ones are resolved.
=> Gear/flap warnings are now working reliably (no longer blocked
permanently when altitude callouts are enabled).
2010-08-14 10:23:13 +01:00
Torsten Dreyer
bc31bdbbbb
use simgear::strutils::rpad() instead of strncpy()
2010-08-12 13:03:26 +02:00
James Turner
025b94f099
Even more std::string fixes.
2010-08-09 09:40:20 +01:00
James Turner
f467ba3609
One more std::string fixup.
2010-08-09 09:16:28 +01:00
James Turner
19360a8425
Fix 'using std::' abuses
2010-08-09 08:36:20 +01:00
James Turner
239fea1b54
Even more imlicit includes becoming explicit.
2010-08-07 14:07:17 +01:00
James Turner
cc7a9d4727
Make even more implict includes explicit.
2010-08-07 13:00:33 +01:00
Torsten Dreyer
bb2d1f55e9
Interpret environment variables and hostname on Windows
...
- Point the homedir variable to %APPDATA%/flightgear.org. This
enables .fgfsrc in this path for windows users.
- Evaluate the returncode of gethostname() to not strdup() bogus
characters on failure. Also mainly on windows.
2010-08-06 09:06:32 +02:00
Torsten Dreyer
1aa484aee5
Fix segfault on invalid command line arguments
...
If FlightGear terminated before the FDM was instantiated it crashed.
2010-08-06 08:44:34 +02:00
Erik Hofman
1d91468ddc
Fix a startup offset problem
2010-08-04 10:22:26 +02:00
James Turner
7f36caede6
Create TimeManager subsystem, and collect the time related code out of main.cxx and fg_init.cxx into it.
...
Remove the unfortunately named 'tmp.[cxx|hxx]', pushing the remaining code in FGLight.
(second try, with init bug fixed)
2010-08-04 09:16:37 +01:00
Anders Gidenstam
756e719b20
src/Model/panelnode.cxx: Do not leave dangling pointers behind.
2010-08-03 20:58:48 +02:00
Erik Hofman
0d0751e37c
Sync. with JSBSim CVS.
2010-08-03 09:51:13 +02:00
Frederic Bouvier
61a81e855d
Merge commit 'refs/merge-requests/1552' of git://gitorious.org/fg/flightgear into vivian/contrails
2010-08-03 08:27:57 +02:00
David Luff
53358a55bf
Remove old AI system
2010-08-03 00:21:56 +01:00
Vivian Meazza
63ec4f3f6c
Merge branch 'next' of D:\Git_New\flightgear into next
2010-08-02 09:04:40 +01:00
James Turner
47fd8a8a2a
Revert "Create TimeManager subsystem" - not quite ready for prime-time yet!
...
This reverts commit 50eb95dcad
.
2010-08-02 00:23:36 +01:00
James Turner
c61a14afdd
Once again, I forgot that we bind() subsystems *before* init().
2010-08-01 23:50:52 +01:00
Vivian Meazza
724cdac335
Merge branch 'next' of D:\Git_New\flightgear into next
2010-08-01 23:25:55 +01:00
James Turner
50eb95dcad
Create TimeManager subsystem, and collect the time related code out of main.cxx and fg_init.cxx into it.
...
Remove the unfortunately named 'tmp.[cxx|hxx]', pushing the remaining code in FGLight.
2010-08-01 20:33:11 +01:00
James Turner
7aba4333a2
Reset - instruments can be re-inited now (reloads XML files)
2010-08-01 19:04:31 +01:00
James Turner
388a0a5b6a
Make saveInitialProperties smarter, and hence simplify the reset code path.
2010-08-01 19:04:20 +01:00
Frederic Bouvier
b60cf04c1e
Fix MSVC compilation
2010-08-01 18:43:28 +02:00
Frederic Bouvier
461b5fe00b
Compile with MSVC10
2010-08-01 18:07:18 +02:00