Torsten Dreyer
6f09b9e31e
httpd: expose /fg-home and /fg-root
2016-01-13 13:25:16 +01:00
James Turner
e3fe8ae199
Log options to INFO level when processing
...
- ensures they occur in the fgfs.log which should aid problem
tracing.
2016-01-12 17:33:57 -06:00
James Turner
eb0f724c13
Fix a typo breaking some takeoff-state logic.
2016-01-12 17:26:06 -06:00
James Turner
e32b02b28f
Launcher: fix slot name for old-style syntax
2016-01-12 17:25:54 -06:00
James Turner
ef1fd62b4b
Fix an unused variable in non-developer-warning mode.
2016-01-12 12:50:58 -06:00
James Turner
a549c8fe45
Fix unused constants in YASim
2016-01-12 12:50:44 -06:00
James Turner
c62b004438
Fix many clang errors in UIUC code
...
- because uiuc_warning_error always called exit(-1), it can be marked
no return, so Clang realises that when it’s used in the ‘else’
side of a parsing test, uninitialised variables in the enclosing
call site are safe.
(Requires Simgear update to define SG_NO_RETURN helper)
2016-01-12 12:50:31 -06:00
James Turner
dc17b5dda2
Fix unused variable in LaRCsim
2016-01-12 12:49:14 -06:00
James Turner
a972df05dc
Fix a potential use-after-free in ATC code
...
- when dynamics shuts down the ATC controllers, they clear their
traffic vectors (destroying the records), but we didn’t notify
the AI aircraft of this. Ensure the controller is cleared so
the AI aircraft shutdown doesn’t crash.
2016-01-12 12:22:23 -06:00
Erik Hofman
508c367c5b
Sync. again
2016-01-12 19:05:51 +01:00
Erik Hofman
6e1b5e9f2e
Fix a singed/unsigned warning
2016-01-12 19:05:51 +01:00
Torsten Dreyer
296849cf3d
Fix a bug for allowed paths
...
Under some conditions on my system
aircraft_paths.begin() was equal to scenery_paths.end()
This resulted in neither of them being added to read_allowed_paths
followed by failure to load Nasal scripts from the aircraft directory.
This might happen, if scenery_paths gets allocated just before aircraft_paths
in memory.
Better loop across the desired lists instead of using fancy tricks with
the iterator.
2016-01-12 11:19:26 +01:00
James Turner
0250d2ee5b
Bugfix: pause works for JSBsim/Yasim again
2016-01-11 11:47:40 -06:00
Erik Hofman
f19c8ac05d
Apperently maybeRestoreAircraftSelection() needs to be a slot
2016-01-11 09:46:16 +01:00
James Turner
409ffc971d
Fixes to launcher aircraft delegate.
...
- fix some text size computation issues
2016-01-10 23:46:44 -06:00
James Turner
4396c035df
Linux build fix.
2016-01-10 22:11:32 -06:00
James Turner
f2bf30bcc7
Current time of day (warp) fixes:
...
- sim-speed-up (a/A keys) offsets warp correctly. This means at 4x speed
up the warp will increase by 3 seconds for one elapsed real second.
In practice this means simulation elements timed using sim ‘current time’
will be correctly synchronised with those using simulated elapsed time.
(AI traffic being a prime example of this)
- warp-delta (t/T keys) is independent of frame rate, and works when
paused. The warp-delta values in the keybindings / GUI dialog
will need to be updated since warp-delta in now seconds-per-second,
as opposed to seconds-per-frame.
2016-01-10 22:10:10 -06:00
James Turner
d10d279064
Launcher finds parking positions from scenery
...
- change launcher to examine the scenery paths and hence load
ground-net files for airports to populate parking data.
- refactor ground-net XML parsing to use FGGroundNetwork only, not
AirportDynamics.
- change parenting of GroundNetwork to Airport, since it contains
immutable data now.
2016-01-10 16:38:01 -06:00
James Turner
4befe0e6ea
Launcher: Maintain aircraft selection better
...
- when launching or toggling settings, try to keep the current
aircraft selected and in-view.
2016-01-10 13:47:57 -06:00
James Turner
b0ee3f98f3
‘only show installed checkbox’ for Qt launcher
...
- will be replaced when I think of a prettier UI, but this
feature is important to have for now.
2016-01-10 12:56:46 -06:00
James Turner
078366cbf7
Fix some FDM warnings with Clang
2016-01-10 12:55:18 -06:00
James Turner
e5c6d14cef
Allow re-ordering of paths in the launcher.
...
- suggested by Gilberto, allow the user to set the order of the
scenery and aircraft paths by dragging.
2016-01-09 17:17:58 -06:00
James Turner
a1b88d77ab
Fallback for runway assignment logic
...
- when no runway use preferences XML exists, be smarter about using
available runways. Makes the common case of using two parallel
runways for arrivals and departures work, greatly improving AI
traffic behaviour.
2016-01-09 13:48:00 -06:00
James Turner
704aba9041
Fix a dumb AI traffic bug I introduced.
2016-01-06 22:27:33 -06:00
James Turner
b2bec04733
Fix acceleration path of default takeoff taxi.
2016-01-06 17:58:24 -06:00
James Turner
ed8970a29d
Fix some more uses of libC time()
2016-01-05 23:19:28 -06:00
James Turner
52f39abc6b
Apply /sim/speed-up to general subsystem dt
...
- consistent with pause (freeze), /sim/speed-up is now applied to the
dt value for all subsystems, not just the FDM and some instruments.
For example AI traffic can now be sped-up or slowed down.
- requires both an FGData and Simgear update.
2016-01-05 23:19:28 -06:00
James Turner
540d4c2111
Use SGTime instead of time() in traffic/AI code
...
- avoids manual handling of /sim/time/warp in many places
2016-01-05 23:19:28 -06:00
James Turner
ac146f5658
Remove dt member of AIAircraft
2016-01-05 23:19:28 -06:00
James Turner
fadad5d70b
Make TrafficRecord own its AIAircraft.
...
- use the ref-counting system, hopefully avoid a dangling pointer
crash I encountered. (Of course it may turn into a leak)
2016-01-04 13:34:39 -06:00
James Turner
359f924ec9
Package variants working.
2016-01-03 20:58:03 -06:00
James Turner
c400405b0a
Chatter-queue moved out of globals
...
- now lives as part of the sound-manager, yay.
2016-01-03 12:00:15 -06:00
James Turner
fc9c43b48d
Remove FontCache from globals.
...
- access via a singleton instead.
2016-01-03 12:00:15 -06:00
Erik Hofman
0cd38c8be4
Remove scenefx code, it keeps crashing in untracable places and I lost interrest. It was a hughe waste of time
2016-01-03 14:38:18 +01:00
James Turner
52fd6986f8
Pull Sound-manager out of FGGlobals
2015-12-31 15:19:57 -06:00
James Turner
ba56c42eb4
Pull Ephemeris out of FGGlobals
2015-12-31 15:19:51 -06:00
James Turner
9e4e6a6fbf
Avoid view-manager returning default SGGeod
...
- when switching views, force an update() to ensure view position
is valid. Otherwise various subsystems such as AI traffic and the
tile manager see a request for a 0,0 location.
- when switching to model view, we still generate a 0,0
location initially - to be fixed.
2015-12-30 14:48:01 -06:00
Erik Hofman
335fda719d
Prevent two possible nan's
2015-12-29 14:55:22 +01:00
Erik Hofman
d6c5dc647d
Do not call setIsPushback, it causes a segmentation fault after about 10 minutes. I did commit this change in 6b9a28a568
to fix a warning, but it night not have been the wisest thing to do.
2015-12-24 13:44:34 +01:00
Erik Hofman
de023dd7bd
Fix the tile-manager subsystem name
2015-12-24 11:52:09 +01:00
James Turner
7644c74df9
Better Traffic performance data warnings.
2015-12-22 15:15:27 -06:00
Torsten Dreyer
7a69b9beff
don't always open "file opened in new browser window" popup
...
Setting /sim/gui/show-browser-open-hint to false disables the popup.
Default is true (show the popup)
2015-12-22 11:42:27 +01:00
Torsten Dreyer
2b66cf3484
Remove unused code
2015-12-22 11:41:56 +01:00
James Turner
6da9461f92
Fix a typo
2015-12-19 00:32:25 -08:00
James Turner
c69e6fde12
AI subsystem now does an orderly shutdown
...
- remove special case logic which is no longer required
2015-12-19 00:30:31 -08:00
James Turner
83ea6d32d0
Make PerformanceDB a real subsystem
2015-12-19 00:29:00 -08:00
James Turner
e80fc563e5
Fix off-by-one errors in GroundController
...
findSegment() and segments[] array use different indexing, account
for this in the conversion to always use findSegment
2015-12-19 00:08:07 -08:00
James Turner
b7c88e7acc
Stop OSG threading earlier on shutdown.
...
Avoid intermittent race conditions on shutdown when the OSG
pager/Db thread is running. Ensure the OSG threads are stopped before
we start tearing down any scene graph nodes.
2015-12-18 22:00:37 -08:00
James Turner
0e71a9593b
Quiet down Traffic error logging.
2015-12-18 21:59:28 -08:00
James Turner
865bb365ed
Trying to bullet-proof the traffic code.
2015-12-18 21:42:22 -08:00
James Turner
0f590280c7
Aircraft-model subsystem behaves better
...
- make shutdown logic more robust
- shutdown is no longer special cased in globals.
2015-12-18 20:13:23 -08:00
James Turner
89065ea5c2
Proper shutdown() for the model manager
...
- also move property setup to bind/unbind
2015-12-18 19:56:56 -08:00
James Turner
c76d106e64
Runtime checks for GroundContoller crashes.
...
Trying to identify what’s actually going wrong here.
2015-12-17 20:23:45 -08:00
James Turner
b431696e9b
Fixes for first/last legs on a route
...
- fixes total route distance calculation
2015-12-17 19:22:14 -08:00
James Turner
c585f7f7d1
Asserts to pin down a reported crash.
2015-12-16 13:02:06 -08:00
Erik Hofman
64b80b4dab
Sync with JSBSim again: remove a lot of unused trimming code
2015-12-15 09:47:08 +01:00
James Turner
ff33aa038e
Fix a startup issue Vic Mar reported
...
- accept invalid/missing airport IDs when starting ATC
2015-12-14 14:59:33 -06:00
James Turner
9c467af6bf
Interim windows build fix
...
(real fix to follow shortly)
2015-12-14 10:56:42 -06:00
James Turner
e5fa1a5ab1
Merge /u/userid-1550991/flightgear/ branch next into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/31/
2015-12-14 14:57:18 +00:00
Erik Hofman
a5e516fe8c
Replace a program segmentation fault by an annoying message
2015-12-14 11:14:40 +01:00
www2
2da5541901
Add feedback if prompt mode is use
2015-12-13 15:57:53 +01:00
www2
95e3d00a17
Add new commands to telnet protocall
...
New comands:
setb set a Boolean value
setd set a Floaring point value
seti set a integer value
del delete a node
2015-12-12 15:43:00 +01:00
James Turner
7afedb1702
Work on visualisation of Vias
2015-12-11 13:43:25 -06:00
James Turner
846fd21698
GUI support for VIA/Discontinuity
2015-12-11 13:43:25 -06:00
James Turner
caead66ba6
Nasal support for VIA / Discontinuity
2015-12-11 13:43:25 -06:00
James Turner
eaa147e3c2
Work on FlightPlan VIA / discontinuity support.
...
Needed for realistic FMS route support.
2015-12-11 13:43:25 -06:00
James Turner
a55c939c5e
Fix a JSBSim crash on OSG-quit
...
(i.e Cmd-Q / window closing, not the normal FlightGear quit sequence)
2015-12-11 12:49:32 -06:00
James Turner
8877b442f8
ATC/Traffic doesn’t crash reset.
...
- remove some global headers from AI headers, to avoid pollution
- change how ATC owns the ‘player’ FGAIAircraft so reset works
- ensure AIAircraft controllers are cleared on unbind for reset
2015-12-11 12:11:59 -06:00
James Turner
1544641405
Remove view/tile/scenery members from globals
...
- also fix sound manager creation
2015-12-11 12:11:59 -06:00
Erik Hofman
6b9a28a568
Fix warning: variable ‘isPushBackRoute’ set but not used
2015-12-11 11:39:29 +01:00
James Turner
43fcbd2246
Progress towards testing
...
- remove route-manager from global variables
2015-12-10 16:40:22 -06:00
James Turner
76c6665af4
Merge /u/edauvergne/flightgear/ branch lat_lon_precision_fix_v3 into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/23/
2015-12-10 22:39:31 +00:00
James Turner
d891c5928c
Remove /sim/temp/winding-ccw property
...
- part of work on unit-testing, remove OpenGL usage in fg_props
2015-12-10 15:53:05 -06:00
James Turner
545b347a16
Relocate implementation of geocRadialIntersection
2015-12-10 15:53:05 -06:00
James Turner
d7a680e848
Templated subsystem handling
...
- remove explicit FGControls var from globals, as part of work
towards unit-testing infrastructure.
2015-12-10 15:53:05 -06:00
James Turner
6446d67431
Split GroundNetwork class down the middle
...
- ATC functions move to GroundController, which layers above
remaining GroundNetwork functionality
- dynamics owns both the groundNetwork and the ground controller.
2015-12-10 15:53:05 -06:00
James Turner
8b49ed08cc
Merge /u/edauvergne/flightgear/ branch warning_cleanup_UIUC_LaRCsim into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/26/
2015-12-10 20:22:56 +00:00
Erik Hofman
c1729253ee
Read the scenery global scene effects configration file and update them every frame. The SceneFX class is not yet registered though.
2015-12-10 13:24:52 +01:00
Edward d'Auvergne
9b7db929f2
LaRCsim FDM - detabbing of all files.
...
All '\t' have been replaced with 8 spaces, as most of the code is indented with spaces.
2015-12-10 10:07:21 +01:00
Edward d'Auvergne
dc04fc2294
UIUC FDM - detabbing of all files.
...
All '\t' have been replaced with 8 spaces, as most of the code is indented with spaces.
2015-12-10 10:04:45 +01:00
Edward d'Auvergne
7ed80221c3
LaRCsim cleanup of -Wimplicit-function-declaration compilation warnings.
...
The stub FDM/LaRCsim/default_model_routines.h header has been expanded and completed.
2015-12-10 10:01:37 +01:00
Edward d'Auvergne
97d0ab7eb9
LaRCsim cleanup of -Wunused-variable compilation warnings.
...
A number of static array definitions were shifted into the scope of the function.
2015-12-10 09:23:29 +01:00
Edward d'Auvergne
cf9e3e7bf0
LaRCsim cleanup of -Wformat-contains-nul compilation warnings.
...
The sprintf() function automatically adds the terminating null character, so no
need to have it in the formatting string.
2015-12-10 09:13:34 +01:00
Edward d'Auvergne
13b05db6f9
UIUC cleanup of -Wunused-but-set-variable compilation warnings.
...
The two unused variables were commented out.
2015-12-10 09:11:09 +01:00
Edward d'Auvergne
4eeeaf140c
UIUC cleanup for -Wsign-compare compilation warnings.
...
The string find_first_not_of() and find_first_of() functions return string::npos
if not found, rather than -1.
2015-12-10 09:04:23 +01:00
Edward d'Auvergne
e7d405d0ee
UIUC and LaRCsim cleanup of -Wunused-variable compilation warnings.
...
This is for defined but unused variables, many of which are in commented out
code.
2015-12-10 09:04:18 +01:00
Edward d'Auvergne
ce7c6de726
UIUC cleanup of -Wparentheses compilation warnings.
2015-12-10 09:04:09 +01:00
Erik Hofman
5c7d261df5
Sync JSBSim again
2015-12-07 11:10:03 +01:00
Edward d'Auvergne
912215e949
The OSG version is now printed with --version.
...
This adds the OSG version number between the simgear and PLIB versions.
2015-12-05 15:24:47 +01:00
James Turner
2af076e6cb
Add airport dynamics manager
...
- decouple dynamic airport data from the static (nav-db) data.
2015-12-05 00:25:29 +00:00
Edward d'Auvergne
524136d709
Minor rounding error fix for the latitude and longitude strings.
...
This is for the FGProperties::getLongitudeString() and
FGProperties::getLatitudeString() functions. The previous algorithm was to
round the degrees up by the smallest fraction required to prevent a round up to
60 minutes or seconds, and then round down the final minutes or seconds by the
same fraction. The new algorithm is to detect if the final minute or seconds
will be rounded to 60 by the string formatting and, if so, the higher unit
(degrees or minutes) is incremented by one, and the lower unit decremented by
60.
2015-12-02 17:48:02 +01:00
James Turner
fc887b106b
Checkpoint - ground-net skips the cache
2015-12-01 14:01:32 +00:00
Rebecca N. Palmer
d56fbfd415
Revert "Initialise Qt earlier, and whenever available"
...
Temporary workaround for
http://sourceforge.net/p/flightgear/codetickets/1819/
This reverts commit 3e67417bf0
.
2015-11-30 23:10:32 +00:00
James Turner
6954360dfa
Merge /u/r-harrison/flightgear/ branch next into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/21/
2015-11-29 21:51:08 +00:00
Richard Harrison
0368e9a003
Fix indentation and use naIsNil to determine if _globals is nil
2015-11-29 19:15:24 +01:00
James Turner
cec1de6219
Use a transaction when indexing polylines.
2015-11-29 14:18:30 +00:00
James Turner
8bfb1c3aa5
Move functionality into clear_fg_scenerey helper.
2015-11-27 23:25:53 +00:00
James Turner
5e4f212b84
Remove some debugs
2015-11-27 23:25:24 +00:00
James Turner
6ee7e51af3
Clamp diagram zoom.
...
- avoid poor performance and unusable UI when zooming out
2015-11-27 23:25:11 +00:00
James Turner
242e79f5e9
Fix some coastline issues.
2015-11-27 23:02:42 +00:00
James Turner
bfb539f090
Launcher shows polygon/polyline data
2015-11-27 23:02:42 +00:00
James Turner
e52e20b54f
SHPParser
2015-11-27 23:02:42 +00:00
James Turner
6a41353bdc
Remove accidentally duplicated functions.
2015-11-26 23:48:16 +00:00
James Turner
f39fc0f086
Remove a stray debug.
2015-11-26 23:48:16 +00:00
James Turner
a63fff14cc
Graphical picking of parking/helipads too.
2015-11-24 22:14:22 +00:00
James Turner
cfcdd9da45
Add helipad support to the diagram.
...
- stops crashes selecting a heliport.
2015-11-24 21:46:14 +00:00
James Turner
b15e5f559f
Remove long-obsolete fields
2015-11-24 21:46:14 +00:00
James Turner
3cee5eea73
Initial work on rendering parking locations.
2015-11-24 21:46:14 +00:00
Rebecca N. Palmer
cc725c61de
Use SLOT for both uses of QTimer::singleShot
...
(fix Qt < 5.4 build)
2015-11-24 18:40:54 +00:00
James Turner
2d1c5d47ee
Fix MSVC2012 build
...
- multi-line QStringLiteral doesn’t work on MSVC prior to 2013. Boo.
2015-11-24 15:36:53 +00:00
James Turner
9e60dcba61
Use old-style SLOT macro for Qtimer::singleShot
...
- member-function-pointer variant was only added in 5.4
2015-11-24 08:05:17 +00:00
Rebecca N. Palmer
997a431d53
{fatal,modal}MessageBox: Use Qt on Linux when available
...
(console error messages are invisible when started from an icon)
2015-11-24 07:24:32 +00:00
Rebecca N. Palmer
3e67417bf0
Initialise Qt earlier, and whenever available
...
(to allow it to be used for error boxes)
2015-11-24 07:21:52 +00:00
James Turner
be1291f689
Change handling of default hangar / catalog.
...
- no longer re-add it on startup, add an explicit button in the UI
(will add a more obvious item to the aircraft list in a follow-up
commit)
2015-11-23 22:58:00 +00:00
James Turner
4ea093ecc4
Ensure aircraft list stays in sync
...
- when removing a catalog, use the new notification to refresh
the list, so we don’t show stale package data.
2015-11-23 17:59:16 +00:00
James Turner
3ccea681ea
Fix merge noise
2015-11-23 01:19:03 +00:00
James Turner
579881322e
Lat-lon startup location fixes.
2015-11-23 00:48:21 +00:00
James Turner
5184f3404c
Labels on large airports in the diagram
2015-11-23 00:48:21 +00:00
James Turner
e356e691b2
Cap number of airports displayed in diagrams
...
- restrict heliports / seaports by aircraft type
- prioritise by runway length
- clean up airport label names
2015-11-23 00:48:21 +00:00
James Turner
1010caeaf6
Remove some debugs.
2015-11-23 00:48:20 +00:00
James Turner
97a5e15aaf
Show paused message when starting frozen.
2015-11-23 00:48:20 +00:00
James Turner
e63a95feb9
Draw aircraft on airport diagram
2015-11-23 00:48:20 +00:00
James Turner
5fd350cb3d
Fix unproject / navaid drawing.
2015-11-23 00:48:20 +00:00
James Turner
eb06aeba97
Closed airport support.
2015-11-23 00:48:20 +00:00
James Turner
f4500e03f4
Label de-overlapping for diagrams
2015-11-23 00:48:20 +00:00
James Turner
317498fe4a
Move airplane drawing into the base class.
...
- ground work for showing airplane on airport diagram
2015-11-23 00:48:20 +00:00
James Turner
6ec9c36afb
Fix Linux compilation issues.
2015-11-23 00:48:20 +00:00
James Turner
9ab672abd8
Location history re-instaed
2015-11-23 00:48:20 +00:00
James Turner
19a8fc8822
Fixing launcher save/restore of settings.
2015-11-23 00:48:20 +00:00
James Turner
aa58d5c761
Fix for determining towered vs untowered airports.
2015-11-23 00:47:01 +00:00
James Turner
b9acb26c07
Work on launcher diagrams.
2015-11-23 00:47:01 +00:00
James Turner
e5df6e6d4a
Allow distinguishing un-towered airports.
2015-11-23 00:47:01 +00:00
James Turner
5043bf0966
Fixes to launcher aircraft thumbnail sizing
...
- handle large images and longer descriptions correctly
2015-11-23 00:47:01 +00:00
James Turner
ceebd59001
Fallback when aircraft description is missing.
...
- avoids corrupted delegate display caused by asking for
bounds of empty string.
2015-11-23 00:47:01 +00:00
James Turner
a39df48772
Navaid diagram for launcher
...
- work in progress, needs labels
2015-11-23 00:47:01 +00:00
James Turner
2b18479859
Lat-lon position support
2015-11-23 00:47:01 +00:00
James Turner
adedf7af65
Navaid diagram work
2015-11-23 00:47:01 +00:00
James Turner
c277395010
Start-paused for in-air starts
2015-11-23 00:47:01 +00:00
James Turner
addcc432fd
ILS drawing in the airport diagram
2015-11-23 00:47:01 +00:00
James Turner
09cac14089
Work on LocationWidget for Qt launcher
2015-11-23 00:47:01 +00:00
James Turner
56d7d049bc
Launcher GUI for in-air / navaid starts
2015-11-23 00:46:25 +00:00
James Turner
1e213201cf
Work on the launcher
2015-11-23 00:45:21 +00:00
Rebecca N. Palmer
9d0fe40a45
QtLauncher::initApp: store argc to avoid crash
...
As QApplication only stores a reference to argc, it may crash if
the argc passed to it goes out of scope. (One way to trigger this
is to pass an invalid --fg-root, triggering an initApp call from
Options::setupRoot.) Copy argc to prevent this.
2015-11-22 21:05:09 +00:00
Stuart Buchanan
660c38ce72
Fix for SEGFAULT when using multiple loggers.
...
Patch from Julian BREITENEICHER.
2015-11-22 17:11:36 +00:00
Rebecca N. Palmer
3e462f3056
fgValidatePath: allow Nasal to read user-set scenery directories
...
(but not the Terrasync directory, as Nasal can change that)
2015-11-22 11:27:39 +00:00
Rebecca N. Palmer
97f235173e
fgValidatePath: documentation improvements
2015-11-22 11:03:00 +00:00
Rebecca N. Palmer
91dc448875
Simplify fgValidatePath + minor fix (requires simgear update)
...
Drop fgNormalizePath, use realpath() only
As this makes it accept relative paths, always use the returned
(absolute) version for the actual file operation to avoid check-to-use
races, or where this is not possible (NasalSGPath) explicitly reject
relative paths
Fix: do_save is a write, not a read
2015-11-21 21:37:19 +00:00
James Turner
29ef561ed9
Fix some inverted logic
...
- spotted by Thomas Geymayer!
2015-11-20 21:28:19 +00:00
Thomas Geymayer
fdf4a61ed5
fgcommand remove-subsystem: fix double delete/segfault.
2015-11-19 23:17:58 +01:00
James Turner
f110fc57d6
Fix enable/disable-freeze option.
...
- set /sim/freeze/clock as well as /sim/freeze/master
Fix by Hamza Alloush
2015-11-13 22:13:44 +00:00
James Turner
bf6ef6664c
Fix for OSG 3.5
2015-11-13 22:13:44 +00:00
James Turner
ca1f8cddc9
Fix a package crash on startup.
2015-11-13 22:13:44 +00:00
James Turner
2314ccfe13
Developer-warnings
...
- make some existing warnings developer-mode only
- add a warning about legacy aircraft path usage
2015-11-13 22:13:44 +00:00
Erik Hofman
27ca027a7e
Fix permissions
2015-11-10 16:15:42 +01:00
Erik Hofman
26f1d12ad7
Rename EnvironmentFX to SceneFX and rethink the aircraft model specific properties: use a samping factor which applies to both volume and reference_distance and max_distance
2015-11-05 15:31:52 +01:00
Erik Hofman
8363ee8784
Add Nasal bindings
2015-11-04 14:37:41 +01:00
Erik Hofman
0f113060e9
First implementation of an environment audio fx module
2015-11-03 14:51:01 +01:00
Torsten Dreyer
62d0d2ab06
event input system: be a little more helpful on errors
2015-11-02 11:42:30 +01:00
Erik Hofman
a0e31b5565
Sync. with JSBSim again
2015-10-30 10:10:01 +01:00
Torsten Dreyer
e324c89171
newnavradio: expose localizer crosstrack error
2015-10-08 10:18:14 +02:00
Florent Rougon
7198dec355
Use SGPath::realpath() on the value supplied for --aircraft-dir
...
* Before setting /sim/aircraft-dir from the --aircraft-dir option,
canonicalize its value with SGPath::realpath() as is already done in
FGGlobals::append_aircraft_path() for the paths given with --fg-aircraft
or via the FG_AIRCRAFT environment variable.
* This fixes a bug when --aircraft-dir is used, due to the fact that
fgValidatePath() canonicalizes its 'path' argument before matching it
against the allowed patterns, and therefore will not validate paths
under the directory specified with --aircraft-dir if this directory has
been given in a non-canonical form by the user (e.g., containing at
least one symlink component).
* This fix does not lower security: the path which is canonicalized has
been explicitely given by the user. This operation is already done for
all paths specified with --fg-aircraft or via the FG_AIRCRAFT
environment variable, via Options::initPaths() which calls
FGGlobals::append_aircraft_paths().
* To reproduce the bug, create a symlink (e.g., /tmp/aircrafts) to a
directory suitable for --fg-aircraft, then run:
fgfs ... --fg-aircraft=/tmp/aircrafts \
--aircraft-dir=/tmp/aircrafts/SenecaII --aircraft=SenecaII
This will trigger many failures such as:
loadxml: reading '/tmp/aircrafts/SenecaII/Dialogs/registration.xml'
denied (unauthorized directory - authorization no longer follows
symlinks; to authorize reading additional directories, add them to
--fg-aircraft)
(from do_load_xml_to_proptree() in flightgear/src/Main/fg_commands.cxx)
I have also tested this with the ec130b4 and the 777-200ER. Same
problem, same fix.
2015-10-06 21:54:50 +02:00
James Turner
b49dd70de9
Remove some debug noise
2015-09-27 23:13:18 -05:00
James Turner
5f0e347c60
Keep in sync with SimGear Package API
2015-09-27 19:44:39 -05:00
James Turner
43bcc85919
Correct handling of updating packages
2015-09-27 19:44:29 -05:00
James Turner
1e2460d9bf
Disable mouse hover code for now.
2015-09-27 19:43:50 -05:00
Florent Rougon
1d34b96d49
Don't load resources for the current aircraft from several aircraft dirs
...
* If one has the same aircraft in several aircraft directories,
FlightGear should not mix resources from the various aircraft
directories. For instance, if one starts FG with:
--fg-aircraft=/my/personal/dir:/path/to/fgaddon/Aircraft
and one has in /my/personal/dir/ec130 a clone of the upstream
developer repo, FlightGear should use either the upstream version from
/my/personal/dir/ec130 or the FGAddon version from
/path/to/fgaddon/Aircraft/ec130, but not some strange, untested hybrid
of both.
* This commit makes sure that when the looked-up resource starts with
Aircraft/<ac>, where <ac> is the current aircraft name [last component
of aircraftDir = fgGetString("/sim/aircraft-dir")], then
AircraftResourceProvider::resolve() doesn't search other aircraft
directories if the resource isn't found under 'aircraftDir'.
* To reproduce the bug before this commit, you may add the following
code (there is nothing specific about the SenecaII here, it's just the
aircraft I used for testing):
var file_path = resolvepath("Aircraft/SenecaII/flo-test");
if (file_path != "")
gui.popupTip("flo-test found", 2);
else
gui.popupTip("flo-test not found", 2);
in a keyboard binding for the SenecaII (for instance; you may use the
F11 binding that otherwise only prints a short message). You should
add this to the SenecaII/SenecaII-base.xml file *that will be loaded
by FlightGear*, let's say the one under /my/personal/dir in the
example above (beware of the <path-cache> in autosave_X_Y.xml). Then,
by creating or removing a file named "flo-test" in the SenecaII
subdirectory of other aircraft dirs (for instance,
/path/to/fgaddon/Aircraft in the example above), you can see that the
behavior of the loaded aircraft is influenced by the contents of
unrelated versions of the same aircraft that might be present in other
aircraft dirs (e.g., loaded /my/personal/dir/SenecaII influenced by
/path/to/fgaddon/Aircraft/SenecaII).
* Aircrafts loading resources using paths relative to the current
aircraft directory (e.g., with 'resolvepath("flo-test")') are not
affected by this kind of problem, because this scheme is handled by
CurrentAircraftDirProvider, which does not exhibit this bug.
2015-09-26 09:45:33 +02:00
Rebecca N. Palmer
a64cf82296
Use +=, not (5.5+ only) append, for concatenating QVectors
2015-09-21 22:12:24 +01:00
James Turner
18a898f5f9
Lots of work on aircraft package support
2015-09-20 19:46:35 -05:00
James Turner
c2cbb36d16
Work around a strange link failure on Mac
...
- Xcode 7 seems to dislike this code as was, adjusted version
links fine. Very odd.
2015-09-20 19:45:03 -05:00
Rebecca N. Palmer
79f1da6bef
Nasal: use SG_LOG for security error messages to avoid truncation
...
These are often too long for naRuntimeError's 128-char limit:
http://sourceforge.net/p/flightgear/mailman/flightgear-devel/thread/55B55856.2030709%40worldwideweb2.nl/#msg34319969
2015-08-14 21:37:28 +01:00
bcoconni
7bcbe8e802
Fixed the pilot acceleration for consistency with the accelerometer computation
2015-08-09 20:00:08 +02:00
bcoconni
adb926eefc
Fixed the accelerometer that now reports correctly 0g in orbit and 1g when steady on ground. Bug report by Thorsten Renk.
2015-08-09 19:59:29 +02:00
James Turner
67352a1a52
Fix SIGSEGV with Qt launcher on Linux.
...
- patch from Dirk Dittmann
2015-08-02 18:33:05 -05:00
Rebecca N. Palmer
e296ea5fe0
Nasal security: document that symlinks are no longer followed
2015-07-25 10:15:31 +01:00
Rebecca N. Palmer
e2cbacff90
fgValidatePath: remove overly fragile test case
...
Fix failure to start with non-standard TerraSync directory
2015-07-14 19:43:51 +01:00
bcoconni
eb95edf2fc
Prevent JSBSim from crashing when the user forgot to specify the axis.
2015-07-14 16:01:33 +02:00
bcoconni
e9239c7178
Clarified the error message: recall the name of the file that has not been found.
2015-07-14 15:59:45 +02:00
Rebecca N. Palmer
6957a17434
fgValidatePath: fix \ vs / Windows bug
2015-07-14 08:00:22 +01:00
Rebecca N. Palmer
5b2ae615e5
avoid ERROR: The path '' does not exist... on startup
...
While harmless, it's an annoying distraction
2015-07-13 23:15:36 +01:00
Rebecca N. Palmer
e090a9da3f
fgInitAllowedPaths: remove possibly invalid test paths
2015-07-13 22:53:23 +01:00
Torsten Dreyer
092707e78b
Fix #1778 : incorrect HUD values
...
negative latitude/longitude coordinates resulted in negative WEST/
SOUTH coordinates for the default format 0 (zero).
This should be now fixed so that
+12.3 gets formatted as 12.3N/E
-12.3 gets formatted as 12.3S/W
2015-07-13 16:23:56 +02:00
Rebecca N. Palmer
823d57bd53
Security: don't follow symlinks to forbidden directories
...
https://bugs.debian.org/780867
This messy approach is to minimise changes during freeze; for 3.7,
I plan to make realpath() handle non-existent files as "realpath
they would have if created now" and get rid of fgNormalizePath
2015-07-12 17:57:49 +01:00
Rebecca N. Palmer
1199d6d626
Security: don't pass a string to fgValidatePath then use the original
...
This is insecure because it always (not just on Windows) converts
\ to / before .. checking. Either use the path it returns (as in
f_open()) or use an SGPath (where this conversion is already done)
Only a minor problem because the affected functions are limited to
the .sav file type
2015-07-12 17:49:21 +01:00
Torsten Dreyer
14b97abd8f
Fix #1771 , wrong groundspeed indication for UFO
2015-07-10 11:07:34 +02:00
Torsten Dreyer
36113bf69d
Cleanup: remove unused code and includes
...
no functional change
jpg-httpd functionality was moved into httpd with 3.4
cmd-line option still spits out a warning
2015-07-08 17:24:13 +02:00
Torsten Dreyer
9c637e6b2a
UFO and MagicCarpet FDM: avoid negative headings
...
Both FDM set the heading to negative values when turning left
through north. This should be fixed by this commit.
2015-07-08 11:14:46 +02:00
Erik Hofman
2496bdecfa
Tie the sun vector to the property tree
2015-06-26 09:53:03 +02:00
janodesbois
0d9091bab6
stop sending velocity and acceleration in the motion information when crashed
...
and using speed up time to allow a fine displayed predicted position
when time accelerated (no more jumping planes accelerated using the mp patch)
tell me if it's not the good pace to do such things ;)
2015-06-13 11:02:30 +02:00
Torsten Dreyer
cd0f0b9856
Fix some warnings
2015-06-12 11:51:11 +02:00
Torsten Dreyer
f780480088
Fix random crash on exit in atc_mgr
...
make the ParkingAssignment a local object instead of
creating it on the heap as a member of the ATCManager
2015-06-10 12:04:47 +02:00
Torsten Dreyer
4b564b2555
Fix MSVC compile error
2015-06-08 13:19:51 +02:00
James Turner
0f90a2e9f3
FLIGHTGEAR_VERSION is always set.
2015-06-08 10:37:26 +01:00
James Turner
4289ac77dd
Remove some debug output.
2015-06-08 10:37:26 +01:00
James Turner
bbff8dcbb6
Remove / reduce level on some debug output
2015-06-08 10:37:26 +01:00
James Turner
6e3a935abb
Fix a Cocoa warning.
2015-06-08 10:37:26 +01:00
janodesbois
759aa51213
Basic MP patch, to allow lag compensation and get rid of rubber band effect.
...
the fgdata part is needed to make it working. configuration for each plane
beeing done with nasal
2015-06-06 06:41:03 +02:00
James Turner
f88b4aefe9
Disable testing hacks for package installs.
2015-06-05 14:27:23 +02:00
James Turner
9f5a4609d6
Launcher: airport diagram runways can be clicked
...
- indicate selected runway visually
2015-06-05 14:27:23 +02:00
Erik Hofman
752b8d0acc
Add the option to (properly) revert the propellers moment of inertia calculation
2015-06-03 13:55:00 +02:00
Torsten Dreyer
99ea9c9583
AIBallistic.cxx: warning fix (initialization order)
2015-06-01 20:53:19 +02:00
onox
e3c8ecc25a
Choose a random splash texture
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-06-01 00:51:24 +02:00
onox
7aaa0772df
submodel: Fix -Wreorder warnings
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-29 14:28:04 +02:00
onox
56a014cdc7
submodel: Only warn if an <*-offset> is actually present
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-29 14:28:04 +02:00
onox
8024a0a4ca
submodel: Rename yaw and pitch to heading-deg and pitch-deg
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-29 14:28:04 +02:00
Torsten Dreyer
1ad81ee94e
Silence some warnings
...
AIBallistic: wrong order of member initialization
Other: unused variables
2015-05-29 10:27:25 +02:00
Torsten Dreyer
98c0a61db3
Add 8.33 kHz support to the commradio
...
Usage:
Add
<comm-radio>
<name>comm</name>
<number>0</number>
<eight-point-three type="bool">true</eight-point-three>
</comm-radio>
to the instrumentation.xml
If eight-point-three is disabled nor not present, previous functionality is unchanged
If eight-point-three is enabled,
set
/instrumentation/comm[x]/frequencies/[selected|standby]-mhz
to the desired 8.33 channel (118.000..136.990) or
/instrumentation/comm[x]/frequencies/[selected|standby]-channel
to the desired channel-number (0..3039).
Valid channels are:
xxx.000
xxx.005
xxx.010
xxx.015
xxx.025
xxx.030
xxx.035
xxx.040
xxx.050
xxx.055
xxx.060
xxx.065
xxx.075
xxx.080
xxx.085
xxx.090
where 118.0 <= xxx <= 136.990
2015-05-28 12:04:23 +02:00
onox
69b055db0a
Revert to old behavior of life randomness
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
46f60b73b3
submodel: Move <yaw-offset> and <pitch-offset> to <offsets>
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
79ea238e1d
submodel: Support <offsets> with <x-m>, <y-m>, and <z-m>
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
d4b4e07c4d
submodel: Use quaternions instead of trigonometry
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
68a53a7546
submodel: Fix incorrect yaw and pitch offsets
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
0ece93074f
submodel: Add random error for azimuth and elevation
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
1b6326e057
submodel: Fix randomness of Cd and life
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
e049a9ab03
submodel: Remove FGSubmodelMgr::setSubData()
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
Torsten Dreyer
9c63b77133
Remove debug console output in FGApproachController
...
Console was filled with
FGApproachController::render function not yet implemented
2015-05-27 10:19:18 +02:00
Torsten Dreyer
ff66139cf7
fix previous incomplete patch
...
add missing continue statement
2015-05-22 18:39:37 +02:00
Torsten Dreyer
26b74c91da
Only warn about unknown tags in instrumentation.xml
...
Richard J. Senior:
Without this commit, unknown top-level tags in instrumentation.xml are treated
as errors and the rest of the file is not processed.
Users running Flightgear versions prior to 3.2 have experienced problems with
the comm-radio tags after downloading updated versions of aircraft from FGADDON.
Instrumentation listed after the unrecognized comm-radio tags is not processed
for these users and is inactive in the cockpit.
This commit changes the instrumentation build method so that unrecognized tags
are treated as warnings. This won't help users running older versions but
protects against the same problems occurring if new tags are added to
instrumentation in the future.
2015-05-22 17:40:17 +02:00
Torsten Dreyer
076f61f2b7
Merge commit 'c8115f516c47fd389b34f59055d3c2e9a6b697e2' into next
2015-05-19 11:56:01 +02:00
Torsten Dreyer
46c4b134c6
Merge commit '6c1934fcdf7dc91897e9d4dc8b8b6810b1de6a51' into next
2015-05-19 11:52:49 +02:00
onox
9f452408c7
Small refactoring of Torsten's refactoring
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:35:00 +02:00
Torsten Dreyer
90622b6873
Small refactoring of the submodel patch from onox
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:34:56 +02:00
onox
0e28621051
Use InputValue for yaw-offset and pitch-offset
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:34:52 +02:00
onox
3037cd8149
Use actual position of view for sound manager
...
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 11:52:19 +02:00
Durk Talsma
e76a6df909
Temporary fix: ground networks are not loaded when a navcache is present. But, the AI/ATC code relies on radio frequencies listed in the groundnet files. Since these are not imported into the nav cache, they remain 0.
...
By forcing the loading of the ground networks, I have the frequencies back. We should find a proper solution later.
2015-05-15 21:42:10 +02:00
Durk Talsma
cbdb8a884f
A second init() is necessary to start the ATCController. There's probably a better way to do is, but for now let's just stick to how I had it set up in early 2012.
2015-05-15 18:25:16 +02:00
Durk Talsma
8e2d0d2a76
Reinstate the backbone of the "I" part of the Interactive traffic system.
2015-05-15 13:30:16 +02:00
Durk Talsma
dbde1f2232
Some preparatory work for reinstating a missing piece of code in the routing algorithm for the AI system.
2015-05-14 18:22:42 +02:00
Durk Talsma
1dc7d4cf11
Reformatting.
2015-05-14 18:20:25 +02:00
Durk Talsma
98682c0c68
Fix bug when starting using the --parkpos option. Create a pointer to a ParkingAssignment object, so that the reference counter doesn't get reset to 0 when the local class is destroyed.
2015-05-14 18:15:30 +02:00
Durk Talsma
8ffbca1b58
Workaround for problem with SGPath: create_dir() does not create the last subdirectory when passed a dir-path only.
2015-05-14 17:41:58 +02:00
Edward d'Auvergne
6c1934fcdf
Singularity avoidance fix for the flightgear Viewer.
...
This was reported at https://sourceforge.net/p/flightgear/codetickets/1740/ and
discussed at http://thread.gmane.org/gmane.games.flightgear.devel/77562 .
The flightgear Viewer no longer causes aircraft to disappear due to the
singularity at the poles resulting in an undefined azimuthal angle.
2015-05-03 20:04:33 +02:00
Thomas Albrecht
c8115f516c
renamed to DampedOscillation
2015-05-02 14:26:05 +10:00
Torsten Dreyer
92e6e25d33
Fix "Error in ground network. Failed to find first waypoint"
...
Fix provided by Jens Thoms Toerring, OK'ed from Durk
http://thread.gmane.org/gmane.games.flightgear.devel/77674
2015-04-21 13:05:41 +02:00
James Turner
1933b71729
Explicit NSPathUtilities include.
2015-04-20 10:42:22 +01:00
James Turner
f4b07f899a
Explicit NSBundle include
...
- should fix Jenkins build, hopefully.
2015-04-20 10:35:24 +01:00
Torsten Dreyer
0758cfbd65
Conditionally enable hot for multiplayer models
...
originally from denk padje alias onox
2015-04-16 20:58:56 +02:00
Torsten Dreyer
93f03f5f2e
property browser: group radio-button elements
...
This allows to better render bool properties
2015-04-15 10:41:31 +02:00
Bertrand Coconnier
45de8ddf80
Modified the loop so that the simulation is suspended whenever the user
...
set the property fdm/jsbsim/simulation/terminate to true.
2015-04-12 18:20:00 +02:00
James Turner
70c4972f48
Fix a clang warning.
2015-04-11 21:59:37 +01:00
James Turner
c07ce6d9bc
Explicit AppKit includes for Mac.
2015-04-11 21:59:29 +01:00
James Turner
c8c2da9448
Fix a clang warning.
2015-04-11 21:59:01 +01:00
Richard Harrison
796acb9092
Always log message if going to segfault during notify logging.
2015-04-10 23:51:32 +02:00
Richard Harrison
9ba892962c
Closedown crash prevention
2015-04-10 23:51:32 +02:00
Bertrand Coconnier
475166643c
Removed executable flags for JSBSim source files and synced JSBSim (removed warnings about comparison between signed and unsigned / modified FGInput to issue a more explicit message about unknown input types)
2015-04-10 19:21:59 +02:00
James Turner
4f15e1a840
New PathsDialog, for managing locations.
2015-04-10 15:11:14 +01:00
James Turner
aa20e0acd8
Work on new download-dir option
...
- simplify management of a single, user-facing
location for large downloaded data.
2015-04-10 15:01:54 +01:00
James Turner
41ca6bd1de
GUI exclude support.
...
- visual refinements in the delegate.
2015-04-10 14:44:44 +01:00
James Turner
d170de1909
Hacking on the delegate height.
2015-04-10 14:44:44 +01:00
James Turner
9ebdce3995
AircraftModel hacking for package support.
2015-04-10 14:44:44 +01:00
James Turner
217db33b99
Working on adding catalogs from the GUI
2015-04-10 14:44:44 +01:00
James Turner
d9a53e1140
Basics on catalog list model in the GUI.
2015-04-10 14:44:44 +01:00
Rebecca N. Palmer
9745a6fce3
remove obsolete comments
...
see 1cd070de8c
2015-04-09 19:05:22 +01:00
James Turner
73de4aeb86
Fix —show-aircraft with multiple aircraft dirs
...
Patch from Jens Thoms Toerring
2015-04-09 15:31:09 +01:00
Torsten Dreyer
7b62f6ce2f
Catch exception by reference, not by value
2015-04-07 12:11:15 +02:00
Torsten Dreyer
f8591433b1
DigitalFilter: remove debug output
2015-04-07 12:08:01 +02:00
Torsten Dreyer
1cd070de8c
Better fix for NoaaMetarGetRequest::onDone
...
Keep a reference to the LiveMetarProperties while the HTTP request is active
Also, drop the MetarDataHandler which was unneeded overhead
2015-04-07 11:59:07 +02:00
Thomas Albrecht
e113586090
add DampedOsciFilter
2015-04-07 10:23:41 +02:00
Rebecca N. Palmer
659c5b9676
Fix spelling
2015-04-06 10:28:10 +01:00
Rebecca N. Palmer
235693c1c4
Don't free METAR objects, it makes NoaaMetarGetRequest::onDone crash
2015-04-04 14:32:58 +01:00
Rebecca N. Palmer
14405fe2e3
Fix compile with CMake 3.2.1, by Kevin Seroux
...
Explicitly link X11, as this no longer comes with OpenGL
2015-04-03 19:15:52 +01:00
Rebecca N. Palmer
27a4be5d87
UIUC: fix check_float (EOF is not an error in this context)
...
http://sourceforge.net/p/flightgear/mailman/message/33683003/
2015-04-03 14:18:04 +01:00
Rebecca N. Palmer
ca362e9251
QtLauncher: fix adding aircraft paths
...
Avoids Nasal security errors when using "Additional aircraft locations"
2015-04-03 14:13:13 +01:00
Erik Hofman
e10b493421
Do not run the HoldDown code until after the aircraft is trimmed to prevent a devide by zero and ultimately a segmentation fault
2015-04-02 20:31:17 +02:00
Erik Hofman
aa63e65122
Sync. with JSBSim just in time for the official JSBSim release.
2015-04-02 15:17:12 +02:00
Torsten Dreyer
a56694f962
Make command "request-metar" also work
...
same problem as previous commit :-/
2015-03-30 17:11:47 +02:00
Torsten Dreyer
8baf72aabd
Make command "clear-metar" work
...
Didn't work if the client used a non-expanded property path
(like the airport dialog)
2015-03-30 16:13:01 +02:00
Torsten Dreyer
8f9df6940f
httpd: extend the NavDbUriHandler
...
- add more details for airports
- add "q=airports" query to get the airport list
- add "q=airport&id=abcd" query to get airport details
2015-03-28 00:34:28 +01:00
Torsten Dreyer
32f4fdfaf7
Add simple getter for all runways to FGAirport
2015-03-28 00:33:26 +01:00
James Turner
f2d6b76b13
Portability: Fix compile errors on MSVC (cmath)
...
From Scott (xDraconian)
2015-03-24 11:11:42 -05:00
James Turner
0cff350dab
Fix UIUC libc++ compilation.
2015-03-24 09:37:40 -05:00
Edward d'Auvergne
3f3bd6994a
Fix to restore the UIUC FDM aircraft after the FGAddon split.
...
The fix follows from the thread at
http://thread.gmane.org/gmane.games.flightgear.devel/77094 , and specifically
implements step 3 in the message
http://thread.gmane.org/gmane.games.flightgear.devel/77094/focus=77214 .
The change requires the corresponding <airplane-dir> XML tag deletion
and file system rearrangements in FGAddon as mentioned in the thread to
work.
2015-03-23 18:51:45 +01:00
Torsten Dreyer
55ed10953f
Fix StateMachine autopilot component
2015-03-22 16:09:42 +01:00
Rebecca N. Palmer
6cc98cb995
Improve error messages for system.fgfsrc removal
...
The original message (b5835c38b4
)
was meaningless on Windows
2015-03-20 18:56:13 +00:00
Rebecca N. Palmer
51bfdc21e0
Nasal: remove /tmp/*.xml from allowed paths list
...
Appears unused, and shouldn't be used on Windows
2015-03-20 18:20:11 +00:00
James Turner
e0274af493
Percentage feedback during nav-cache build.
...
- also used by the GUI launcher for the same.
2015-03-19 12:01:38 -05:00
James Turner
2ebf21221d
Fix a clang unused constant warning
2015-03-18 20:34:15 +01:00
James Turner
61eae124d4
Enable anti-aliasing in the airport diagram
2015-03-18 20:34:10 +01:00
James Turner
cee943076c
Fix clang warning: unused constant.
2015-03-18 20:34:05 +01:00
Torsten Dreyer
3ee36a7143
PropertyChangeWebsocket: sanitize property names
2015-03-17 09:27:03 +01:00
Torsten Dreyer
c26fb00049
etxtend "pause" command to force pause/continue
2015-03-14 22:33:06 +01:00
Rebecca N. Palmer
196c667266
Normalize the allowed paths as well (fix Windows breakage)
2015-03-13 22:40:35 +00:00
Torsten Dreyer
817297699f
warning fix: use correct type for std::string::find reply
2015-03-13 22:57:03 +01:00
bcoconni
32a8c712b0
The QUrl header is needed for compilation on Linux
2015-03-13 22:03:22 +01:00
Rebecca N. Palmer
b5835c38b4
Disable system.fgfsrc
...
Together with the preceding few commits, this is intended
to make security independent of the data package
2015-03-13 18:14:51 +00:00
Rebecca N. Palmer
16784d590a
Document that property write-protection is not a security measure
...
(Nasal can remove it)
2015-03-13 18:11:29 +00:00
Rebecca N. Palmer
a4aff2cb82
remove checkIORules(), replaced by check in fgInitAllowedPaths()
2015-03-13 18:10:31 +00:00
Rebecca N. Palmer
9002696195
Make fgValidatePath always return std::string, not char *
2015-03-13 18:07:24 +00:00
Rebecca N. Palmer
d718d5f3cb
Move Nasal io.open to flightgear, and make it use fgValidatePath
2015-03-13 18:02:46 +00:00
Rebecca N. Palmer
6a30e7086e
Stop using property listener for fgValidatePath
...
This was insecure: while removelistener() won't remove it, there are
other ways to remove a listener from Nasal
2015-03-13 17:54:44 +00:00
James Turner
a6937e25ad
Make a new launcher tab for add-ons
...
- avoids the settings page being overloaded with list boxes.
2015-03-12 10:36:41 +00:00
Torsten Dreyer
b21bb90ae5
Split multiplayer command
...
better split into
multiplayer-connect
multiplayer-disconnect
miltiplayer-refreshserverlist
2015-03-12 09:18:41 +01:00
James Turner
1e1326d8f3
Aircraft path support in the Qt launcher
...
- aircraft dirs are re-scanned when the paths change.
2015-03-11 23:20:29 +00:00
Torsten Dreyer
f5f82c461f
RunUriHandler: add some INFO logging for the requests
2015-03-11 22:28:23 +01:00
Torsten Dreyer
956054afe7
Add command multiplayer to control the multiplay_mgr
...
push the logic to connect/disconnect/refresh out of the UI
into the backend.
2015-03-11 22:25:50 +01:00
Torsten Dreyer
4289c0aacd
MetarProperties: don't double-trigger listeners on invalidate
2015-03-11 22:24:07 +01:00
Torsten Dreyer
f7d476c856
extract RemoteXMLRequest to make it reusable
2015-03-11 18:50:11 +01:00
James Turner
11c2623dec
Start wiring package manager into the launcher.
2015-03-11 17:09:59 +00:00
James Turner
68efa84b3a
Remove obsolete #ifdef check
2015-03-11 17:09:59 +00:00
James Turner
92864265af
Refactor aircraft helper classes
...
- move the aircraft list and delegate to their own files
2015-03-11 17:09:59 +00:00
Torsten Dreyer
f32f1fba59
Fix recently introduced bug in json-to-prop conversion
2015-03-11 16:59:58 +01:00
Torsten Dreyer
fced50f480
JSON Properties: encode NaN as null
...
JSON doesn't know about NaN, probably null matches best
2015-03-09 16:17:20 +01:00
Torsten Dreyer
8b141025cd
httpd: expose if airport has metar in navdb uri handler
2015-03-09 14:53:40 +01:00
Torsten Dreyer
4564dbd95e
Live weather: ensure valid flag is set correctly
2015-03-09 12:24:36 +01:00
James Turner
585235ce01
One more log item for the tile-cache.
2015-03-08 09:41:27 +00:00
James Turner
2e452e78f3
Fix non-Qt build.
2015-03-08 09:40:44 +00:00
James Turner
c3543f8fdd
GUI ‘restore defaults’ support.
...
- Hold ‘alt’ on launch to restore defaults, including launcher prefs.
2015-03-08 00:42:39 +00:00
James Turner
f9c23eb096
Add missing GPL boilerplate.
2015-03-08 00:42:39 +00:00
James Turner
bfeb41858d
Cmake always generates version.h
...
- simplify some code as a result
2015-03-08 00:42:39 +00:00
James Turner
a466dbce73
Very crude work on GUI base package selection.
...
- feedback on wording greatly appreciated.
- needed to make nightly builds usable without bundled data.
2015-03-08 00:42:05 +00:00
James Turner
8d9db2824e
Launch aircraft data cache
...
- makes successive aircraft scans much faster since -set.xml parsing
can be skipped when the file is unmodified.
2015-03-08 00:42:05 +00:00
James Turner
4038ba3d51
Arrow icons for variant selection.
2015-03-05 15:53:40 +00:00
James Turner
7ca9fba4a8
Fix some off-by-one errors in variants GUI
2015-03-05 14:51:33 +00:00
James Turner
13d50853df
Launcher support for aircraft variants.
...
- Allows for a less confusing UX when aircraft has several variants.
- Requires changes to aircraft -set.xml files.
2015-03-05 14:01:53 +00:00
Torsten Dreyer
0f72564140
Use the pagedPathForHistory in the FlightHistoryUriHandler
2015-03-03 17:10:16 +01:00
Torsten Dreyer
265c99a149
FlightHistory: add pagedPathForHistory
...
pathForHistory() halts the sim for a few seconds when called on long flights.
pagePathForHistory allows to retrieve the complete history in chunks
2015-03-03 17:08:20 +01:00
Torsten Dreyer
2e5db3ce85
httpd: fix misplaced warning message
2015-03-02 20:39:23 +01:00
Torsten Dreyer
0fcfbe9221
wrap the json flight history as a feature
...
this allows to attach properties later
2015-02-27 15:54:28 +01:00
James Turner
548b899fb6
Fix a couple more Qt version issues.
...
- only set the clearButton on QLineEdit if we have 5.2
- use itemData/currentIndex to avoid currentData()
2015-02-27 11:58:22 +00:00
Torsten Dreyer
146efcafa4
JsonUriHandler: allow POST updates without child
...
updates to properties used to be
POST /json/some/property/path
{
name: 'somechild',
value: 'somevalue'
}
which required some ugly path hacking when directly updating a node.
now, this works too (and in a probably more intuitive way)
POST /json/some/property/path/somechild
{
value: 'somevalue'
}
2015-02-27 11:07:25 +01:00
Torsten Dreyer
4b5dec2cae
HTML Property Browser: use radiobuttons for bools
2015-02-26 18:14:09 +01:00
James Turner
2d8cf78328
Fix Linux compilation.
...
- <memory> needed for auto_ptr
2015-02-25 23:53:49 +00:00
James Turner
a3d3e81a86
Set placeholderText from code
...
Avoids a hard requirement of Qt 5.3; only 5.1 is
needed.
2015-02-25 23:14:02 +00:00
James Turner
e1def22193
Fix cleanup of RouteDataPrivate
2015-02-25 22:58:56 +00:00
Torsten Dreyer
0034d6b59a
flighthistory service: use GeoJSON instead of own invention
...
Track now comes as a LineString object
{
"type":"LineString",
"coordinates": [ [lon,lat,alt], [lon,lat,alt], ... ]
}
ref: http://geojson.org/geojson-spec.html#linestring
2015-02-25 10:38:22 +01:00
James Turner
1898a5fef8
Guard against a crash Torsten encountered once.
2015-02-23 18:22:52 +00:00
Torsten Dreyer
cc6178a9f3
Expose FlightHistory as a http service
...
usage:
GET http://localhost:8080/flighthistory/track.json
retrieves track as JSON data
{
flightHistory: [
{
latitude: (number),
longitude: (number),
altitude: (number)
}
]
}
GET http://localhost:8080/flighthistory/track.kml
retrieves track as KML path
optional request parameter:
LineColor=(hex encoded rgba color)
LineWidth=(line width in pixel)
PolyColor=(hex encoded rgba color)
interval=(number of seconds to auto-refresh)
2015-02-23 16:33:58 +01:00
Torsten Dreyer
68c9adb489
FlightHistory: make clear() public
2015-02-23 16:31:49 +01:00
James Turner
c9c0833741
Qt launcher: additional arguments UI
...
Add a plain text edit widget to the launcher to support
custom command line arguments.
2015-02-23 13:41:50 +00:00
James Turner
564177933b
FlightPlan activation, delegate hook.
2015-02-23 13:41:50 +00:00
Torsten Dreyer
8451b6c7c7
Merge commit 'refs/merge-requests/1591' of https://gitorious.org/fg/flightgear into merge-requests/1591
2015-02-22 21:25:08 +01:00
Torsten Dreyer
6ecbca9e01
package system: de-hardcode default catalog id and url
...
make default catalog id and url configurable through properties
on startup. Provide defaults to preserve current functionality.
/sim/package-system/default-catalog/id
/sim/package-system/default-catalog/url
2015-02-17 12:41:18 +01:00
Torsten Dreyer
828f14c4f7
Ooops...
2015-02-17 12:09:22 +01:00
Torsten Dreyer
ae91b9cede
Initial work for a PKG http service
2015-02-17 12:06:50 +01:00
bcoconni
5349d3367f
JSBSim syncing. The changelog is:
...
* The Pitot angle can now be tweaked with the <pitot_angle> tag in the <metrics> block.
* The refuel rate is now configurable with the <refuel-rate> tag in the <propulsion> block.
* Fixed C++11 compliance. JSBSim can now be compiled with a C++11 compiler.
* Avoid a spurious mass report to be issued when resetting.
* Fixed the moments computation. Previously they were computed with the previous time step CG position.
* Fixed a bug where the CG update was delayed to the next time step when point masses location were modified via the FCS.
2015-02-15 11:37:13 +01:00
Torsten Dreyer
6e3486349b
PropertyBrowser: Add a JSON link and the path
2015-02-13 11:42:45 +01:00
portree_kid
ee63507f22
Code to stop loading of invalid flightplans
2015-02-12 22:09:45 +01:00
Rebecca N. Palmer
033957003f
Clear GroundLightManager on exit to avoid segfault
...
While mostly harmless since you're exiting anyway, it's an annoying
distraction when the real problem is "unexpected exit" (e.g.
https://bugs.debian.org/763285 ), and blocks testing with LeakSanitizer
2015-02-12 16:39:28 +00:00
James Turner
1cffd2b8c0
Fix encoding / C++11 compliance
...
- convert text encoding to UTF-8
- C++11 requires a space between literal and identifier
2015-02-11 16:44:05 +00:00
Torsten Dreyer
6970ea69a8
httpd/json: send as correct typ for bools and numbers
2015-02-11 11:34:16 +01:00
Torsten Dreyer
b42841ccd2
Add formatted KDI572/574 properties
...
Syd Adams:
I've added an update to dme.cxx /dme.hxx.
It adds a formatted KDI572-574/nm , min and kt string properties meant
for text animations for these instruments.Existing instruments will funtion
as usual, no breaks. The purpose here is to eliminate yet another nasal
workaround which usually needs to repeat some of what the code already does.
The 3 properties are empty when the dme is off (no need to check for power),
dashes when powered up but no source , out of range ,etc.
The are formatted to the KDI-572/573/574 limits ...
0-99.9/100-389 for distance to station,
0-99 minutes for time to station,
groundspeed 0-999 kt.
2015-02-11 08:35:31 +01:00
Torsten Dreyer
ef2c9b995f
JSBSim: populate fuel tank cg
2015-02-04 12:44:20 +01:00
Rebecca N. Palmer
fe0015bda0
Fix typo, thanks to Markus Wanner
2015-01-18 22:23:49 +00:00
Rebecca N. Palmer
193f2a3fbc
Fix hang in Nasal->C++->Nasal calls
...
https://bugs.debian.org/750939
http://sourceforge.net/p/flightgear/mailman/message/32969200/
2015-01-18 22:23:21 +00:00
Stuart Buchanan
6725b460bf
Clean up some trivial warnings
2015-01-18 19:49:14 +00:00
bcoconni
5d2197ae3c
Fixed a bug that made FG crash when repositionning the aircraft or resetting the simulation. Thanks to Rebecca Palmer for the bug report and the bug patch.
2015-01-17 14:58:48 +01:00
James Turner
dcf8ac1778
route-path: separate turn entry and exit parts.
...
Fixes appearance of runway legs with off-centerline previous
and next points, since we can generate different curves for each
end of the runway.
2015-01-14 23:28:52 +00:00
Torsten Dreyer
01dfd52d69
Fix wrong ATIS for negative temperatures
2015-01-12 16:46:24 +01:00
James Turner
e4f5f71aae
Route path turn helpers.
...
Make the code more readable with some named helper functions.
2015-01-11 13:15:24 +00:00
James Turner
e9849ecae9
Remove a warning, let Nasal itself warn if needed.
2015-01-10 19:35:50 +00:00
James Turner
e7d4e28f44
Fix broken angular conversion in RNAV runway controller.
2015-01-10 19:35:34 +00:00
James Turner
cc2a78b70b
RNAV: use runway departure end for previous wpt.
...
Should fix leg computation following a runway waypt.
2015-01-10 19:35:11 +00:00
James Turner
6b9aa0fb97
Fix GPS intercept controller:
...
- handle bad intersection geometry gracefully (end controller)
- fix termination condition
- always use target track to compute position.
2015-01-10 17:57:02 +00:00
James Turner
fa3301f68d
Fix spelling mistake.
2015-01-10 17:57:02 +00:00
James Turner
8bfb63e4ed
Launcher: select season.
2015-01-10 14:57:59 +00:00
James Turner
ce10b4c8f1
Ask before creating the custom aircraft dir.
2015-01-10 14:18:44 +00:00
James Turner
ee61a07636
Restore aircraft-manager location back to FG_HOME
2015-01-10 14:18:32 +00:00
James Turner
7d9609116b
- Make Qt check guarded by a CMake option
...
- Only init QApplication if showing the launcher.
2015-01-10 14:05:23 +00:00
James Turner
e94371ebfc
Route-path bug fixes.
...
- explicit aircraft performance categories for turn radius
- allow overflight leg course behaviour to be selected
2015-01-08 19:46:04 +00:00
James Turner
55b092771f
Launcher: hook up MSAA checkbox.
2015-01-07 11:30:44 +00:00
James Turner
72e0ea9e40
Only set AUTOMOC for fglauncher target.
...
(Avoids pointless noise for all other targets)
2015-01-07 09:38:02 +00:00
James Turner
1ba62acfcc
Fix native menubar in Mac builds with Qt
...
- where we don’t use the launcher, we must pass tell OSG we
want to pose as standalone when setting the window traits.
2015-01-07 09:19:04 +00:00
James Turner
02bcb3718a
Hook up parking position in launcher.
2015-01-06 21:12:19 +00:00
James Turner
53b478654c
Linux fixes for launcher code.
2015-01-06 20:36:05 +00:00
James Turner
78e8f53312
In-app launcher for Mac, based on Qt5.
...
The old Mac launcher doesn’t work on Yosemite, add a tiny
Qt-based launcher inside the main process (no need to fork /
exec) which runs before the OSG window is created.
Will be merged for 3.4, hopefully with no impact on other
platforms.
2015-01-06 19:13:30 +00:00
James Turner
0a28e95107
Guard against saved bad terrasync path.
...
- warn when the terrasync path is not writeable, with a message box.
2015-01-04 18:02:26 +00:00
James Turner
5ccc835667
Fix turn entry path position computation.
2015-01-03 00:29:07 +00:00
James Turner
23b0db0f0d
Waypoint controller fixes
...
- use a low pass filter on FPM value for ConstHdgToAlt
- better position calculation for DME/radial/VOR intercepts
2015-01-02 23:58:29 +00:00
James Turner
6db45dac9d
Fix two route path issues found by Hyde
...
- course computation from a runway was wrong (used threshold pos)
- negative distance along path was using wrong distance to offset
2015-01-02 09:47:54 +00:00
Clément de l'Hamaide
49ce7cd318
Revert "Altimeter: fix output format for hPa/InHg settings"
...
Replaced by some line of Nasal, that way we don't touch the internal precision of the altimeter
This reverts commit 84a26de9ae
.
2014-12-30 17:32:48 +01:00
Clément de l'Hamaide
84a26de9ae
Altimeter: fix output format for hPa/InHg settings
...
Usually, in a real cockpit, altimeter shows hPa setting as an integer number and InHg setting is limited to 2 decimals
In aviation we don't need higher numeric precision
2014-12-30 16:20:08 +01:00
James Turner
dbc47efa18
Partial fix for runway leg courses.
...
Don’t assume runway leg course matches the runway heading.
Full fix means generating separate entry/exit turns for runways.
2014-12-25 21:52:54 +03:00
James Turner
5c659b3970
Fix distance-along-path computation
...
(Thanks to Hyde Yamakawa for pointing this one)
2014-12-25 21:52:13 +03:00
James Turner
dd1b829618
When the turn angle is large, don’t fly-by.
...
This avoids the tan() term in the fly-by computation
causing huge turn cuts which will fail to sequence.
Convert such turns to fly-over.
2014-12-22 21:47:21 +03:00
James Turner
f80528f8d6
RoutePath mag-var and point-on-path fixes
2014-12-22 17:00:43 +03:00
James Turner
a1169e4f75
Expose waypoint heading/course to Nasal.
2014-12-21 09:53:32 +03:00
James Turner
aa3333cd31
Fix runway path appearance.
2014-12-21 09:21:31 +03:00
James Turner
91992f6cf1
Route path
...
- better point along path computation
- fix path distance for turns
- detect and skip duplicated waypoints
(and provision to skip based upon impossible turn
geometry soon)
2014-12-20 15:19:00 +01:00
James Turner
088572e87d
Route-path:
...
* better overflight pathing based on next wpt type
* tolerate procedures with bad intersections (eg KSFO OFFSH8)
2014-12-19 17:01:27 +00:00
James Turner
7317aff22d
Fix route-path bugs:
...
- accurate fly-over / fly-by computations
- parse additional LevelD XML elements
- path vector contains curves for turns
Remove dead code.
2014-12-18 23:05:28 +00:00
Anders Gidenstam
df61dfe1b3
JSBSim: Renamed the location properties for external forces to include the unit.
2014-12-18 11:02:41 +01:00
Torsten Dreyer
6f54ffc947
Allow easing of setting the time-offset
...
Configurable with properties:
/sim/time/warp-easing == false ? jump to new time offset (orig. behaviour)
/sim/time/warp-easing == true ? use easing parameter to adjust warp
/sim/time/warp-easing-duration-secs: time in seconds to reach the new value
/sim/time/warp-easing-method: easing method to apply. default: swing
2014-12-17 09:52:09 +01:00
bcoconni
a1df1fb70a
Synced JSBSim. Adds the following new features:
...
- Ability to modify the location of external forces via the property tree
- Ability to specify manually the inertia matrix of "point masses"
- Improvements of the water injection feature in the turbine code
2014-12-15 20:12:18 +01:00
Torsten Dreyer
a4ab1dae38
downgrade log-level for newnavradio messages
2014-12-11 21:37:37 +01:00
Torsten Dreyer
b750e9d8b5
Shut off spoken atis if radio's power button is off
2014-12-11 11:20:34 +01:00
James Turner
01622dd1f4
Fix flight-plan course and distance computations.
...
Always use the RoutePath system for course and distance computations
in the flight plan, so that dynamic segments are handled correctly.
2014-12-08 17:56:15 +00:00
James Turner
938a180c3d
Level-D procedures: parse Flytype element
...
With this, the fly-by / fly-over info from the procedures is exposed
correctly.
2014-12-07 12:34:50 +00:00
James Turner
d806b68706
find waypoints in the flight plan.
2014-12-04 15:43:32 +00:00
Torsten Dreyer
71eba5e579
Fix #1606 , bad ATIS for Japanese locale
...
Selecting a language for a nonexisting translation did not load the sys and
atc messages. Better fall back to default (en) locale.
2014-12-04 09:18:41 +01:00
Torsten Dreyer
89a7516c62
Fix hangs while scenery-loading
...
don't start the traffic manager before the FDM is initialized
The FDM needs the scenery loaded and will wait for all PagedLOD Nodes
to appear if they are close (less than 1000m) to our initial position.
That's required for scenery models but not for AI traffic.
2014-12-03 10:29:30 +01:00
James Turner
cb9919ef74
Drop ground-nets cache on scenery path change.
...
Unfortunately we can’t drop loaded ones, since the in-memory structures don’t have ref-counting, and we don’t
know what AI plans may be referencing them.
2014-12-02 16:31:34 +00:00
bcoconni
2122e9eee3
Save a memory allocation each time a property node is wrapped in Nasal. Instead use a direct access to the reference counter and explicitely delete the node if the ref counter is decremented to zero during the ghost destruction.
2014-11-23 14:53:54 +01:00
James Turner
89115ccb1d
Adding some debugs for Thorsten Renk’s issue.
...
Will revert this patch in the future.
2014-11-19 22:35:44 +00:00
James Turner
c6c63e65f7
Adding log message for an edge case.
2014-11-19 22:35:44 +00:00
Torsten Dreyer
e46ab5faa3
Optionally use SCREEN_SIZE_PIXEL for LOD
...
This patch enables AIModels to use the size on the screen for LOD instead
of distance from eye point.
With /sim/rendering/static-lod/ai-range-mode-pixel set to true
/sim/rendering/static-lod/ai-detailed now contains the minimum size of the
model on the screen to be displayed. Values of 10-50 seem to make some sense.
2014-11-19 17:26:58 +01:00
bcoconni
5f0bffde58
Re-sync JSBSim with FlightGear including James Turner's fix for the call to the function to_string that failed to compile on Mac and MSVC.
2014-11-18 19:54:52 +01:00
Clément de l'Hamaide
c3eda927a9
Update /sim/startup/fullscreen prop at runtime, that way we know the current state of the window
2014-11-18 17:14:22 +01:00
James Turner
71da5b7a76
Tweak scenery-loaded logic
...
Make first-start (not a reset / re-init) behaviour more explicit.
2014-11-15 16:29:39 +00:00
bcoconni
51e5add743
JSBSim sync
2014-11-15 11:39:49 +01:00
James Turner
779a97b925
Move all tile-manager init to reinit path.
...
- improves changing scenery paths at runtime.
2014-11-11 22:25:55 +00:00
James Turner
729392b1f3
Remove obsolete #define
2014-11-11 22:25:55 +00:00
Torsten Dreyer
4b4f5c9e9a
httpd: some code cleanup for JsonUriHandler.
...
no functional change
2014-11-11 08:59:41 +01:00
Torsten Dreyer
aeb1eedba8
Allow property set on the /json/ uri handler
2014-11-10 14:23:12 +01:00
Torsten Dreyer
bca8b75a81
Allow input systems to be disabled
...
To avoid trouble when running multiple instances on one machine, disable
e.g. joystick input for second instance by
--prop:bool:/sim/input/no-joystick-input=true
Also allowed:
--prop:bool:/sim/input/no-event-input=true
--prop:bool:/sim/input/no-mouse-input=true
--prop:bool:/sim/input/no-keyboard-input=true
2014-11-06 22:27:59 +01:00
Torsten Dreyer
d46aa5114f
httpd: upgrade to latest mongoose 5.5
2014-11-06 22:21:22 +01:00
Torsten Dreyer
0376ab3f28
Fix #1579 : Handle special characters in html property browser
2014-11-04 22:21:44 +01:00
Torsten Dreyer
06e8fe747f
Precipitation updates from ThorstenR
...
required SimGear commit 75271c44a82ae0fb1ff9c91e93a12fa8b10099fd
Since the consensus seems to be that the precipitation clipping issue is with the panel code, attached is my proposed update for the precipitation system in SG and FG
* without corresponding control structures in FGData it falls back to default, except I have fixed an inconsistency in freezing behavior - previously rain changed suddenly to snow when the temperature dropped below zero, but the reverse transition was dragged out and gave odd visible motion with the wind as snow gradually changed back to rain with the particle speed not well defined. Now both transitions are sudden. And I see no more particles flow against the wind
* with
<!-- definitions for the detailed precipitation manager -->
<precipitation-control>
<rain-droplet-size type="float" userarchive="n">0.015</rain-droplet-size>
<snow-flake-size type="float" userarchive="n">0.03</snow-flake-size>
<detailed-precipitation type="bool" userarchive="n">false</detailed-precipitation>
<illumination type="float" userarchive="n">1.0</illumination>
<clip-distance type="float" userarchive="n">5.0</clip-distance>
</precipitation-control>
added to Environment/environment.xml, the new system allows to switch more detailed management on. This provides
* explicit setting of rain droplet size and snow flake size by the weather system
* automatic sqrt(r) scaling of the vertical speed of raindrops
* automatic transition to snow when freezing for small droplets but hail for large droplet sizes (looks like snow, but has different particle dynamics)
* an illumination scaling factor to dim the precipitating based on the light we have in the scene (I still need to devise a property rule to set this automatically)
The clip distance is also exposed now and considered at startup of the system - might be useful for e.g. airships when the gas bag provides rain cover (?) or to be simply off for open airplanes
2014-10-21 10:47:32 +02:00
bcoconni
a30dadcf18
Fixed the initial conditions settings where the altitude passed by FG to JSBSim is geodetic instead of geocentric.
2014-10-19 19:05:30 +02:00
Torsten Dreyer
e786b1a54e
httpd: expose airport id to geojson properties
2014-10-16 13:09:43 +02:00
Thomas Geymayer
db22e215a2
Fix updating ADF ident if getting in range after being out of range.
2014-10-03 12:40:07 +02:00
Torsten Dreyer
e4fd9a6b8f
Remove --jpg-httpd option
...
the original implementation of a screenshot server is now
replaced by the mongoose httpd /screenshot URI which provides
more features.
2014-10-02 11:33:45 +02:00
Torsten Dreyer
cc526174c1
httpd: fix mjpeg encoding
2014-10-02 11:13:12 +02:00
Torsten Dreyer
c0c82f4f7b
Fix (1st try) absolute paths for httpd url_rewrites
...
Thanks to Alan Teeder for guiding me into the right direction
2014-09-24 20:50:10 +02:00
Torsten Dreyer
2859400336
Some debug stuff for the mongoose httpd
...
- add a config-dump on log-level=info
- add an access-log option
use --prop:string:/sim/http/options/access-log-file="/path/to/access.log"
2014-09-24 17:40:04 +02:00
Torsten Dreyer
996a46536d
httpd: fix log message typos
...
no functional change
2014-09-21 22:29:10 +02:00
Clément de l'Hamaide
41865b15c9
Improve <usage> tag feature
...
- Introduce a new LOD: ai-interior
- Load a <model> with <usage>interior</usage> on-demand
- Avoid to load the cockpit of players in MP
- Default LOD is 0.0 - 50.0 meters
2014-09-21 22:11:35 +02:00
Torsten Dreyer
e8d851d236
Allow user defined mime types for the internal httpd
2014-09-20 01:48:32 +02:00
Thomas Geymayer
0b9e72eb87
Nasal: move IOrules check to better place and exit on failure.
2014-09-19 18:22:47 +02:00
Thomas Geymayer
bb38e59ba2
Skydome ends lower with default rendering scheme.
2014-09-18 10:39:01 +02:00
Thomas Geymayer
104dc1170b
Use black clear color only at high altitudes.
...
Black clear color can cause visual glitches on low
altitudes, but a black space is much nicer, so just
switch at 300.000 ft.
2014-09-18 00:16:09 +02:00
Torsten Dreyer
015ecb54f3
Load a flight recorder tape from the command line
...
Adds new option --load-tape=foobar to load a flight recorder
tape from the command line. Loads foobar.fgtape from the
directory specified in /sim/replay/tape-directory and starts
replay.
2014-09-17 22:38:40 +02:00
Thomas Geymayer
dd8b412060
Black sky for orbital flights outside skybox.
...
as suggested by Thorsten and Lauri.
2014-09-17 12:14:42 +02:00
Torsten Dreyer
c9d159e71f
httpd: downgrade log message
2014-09-15 10:54:00 +02:00
Torsten Dreyer
512ec61e8e
Expose the running-state of the internal webserver
2014-09-12 22:58:30 +02:00
Torsten Dreyer
b50b1a778b
httpd: expose the aircraft dir to the web server
...
add a (currently) hard coded url rewrite to access the
currently used aircraft by
http://localhost:8080/aircraft-dir/
2014-09-10 22:43:06 +02:00
Torsten Dreyer
48180eb9ab
Optionally disable the lowpass for the static system
...
the static system has an optional "tau" parameter to
define the rate at which the output value changes.
Setting this value to zero now disables the filter.
This prevents wrong airspeed indications on rapid
altitude changes. No functional changes if tau has
other-than-zero values (e.g. the default systems).
2014-09-10 21:07:57 +02:00
Torsten Dreyer
85e4a3254f
Fix comm radio frequency range
...
Thanks to Richard Senior
2014-09-02 17:10:09 +02:00
Thomas Geymayer
96a2673dd8
Canvas: expose set/clearFocusElement to Nasal.
2014-08-25 21:54:20 +02:00
Torsten Dreyer
159ec7e08b
Expose total-fuel-m3 to the tank properties
2014-08-25 21:40:12 +02:00
Thomas Geymayer
4b59c152ea
canvas::Text: expose more text/cursor methods to Nasal.
2014-08-23 16:06:33 +02:00
Torsten Dreyer
a4b0be3d8a
Expose the vertical flight path as a property
...
write the vertical flight path to /orientation/path-deg
zero means level flight, positive angles climb
Also use SGD_DEGREES_TO_RADIANS (and vice versa) for double computations
instead of the float constants
2014-08-19 00:01:08 +02:00
Thomas Geymayer
aa1b3c1e31
Expose canvas::Element::setFocus to Nasal.
2014-08-12 17:57:01 +02:00
Thomas Geymayer
6713830254
Nasal Timer: prevent warning on restarting oneshot timer in callback.
2014-08-11 00:31:18 +02:00
Thomas Geymayer
45ab3a20a2
Canvas: generate keypress event for text input.
2014-08-11 00:30:55 +02:00
Thomas Geymayer
271cf1420d
Canvas: support for pointer grab.
2014-08-11 00:25:26 +02:00
Stuart Buchanan
b654477794
New materials.xml format
2014-08-09 20:43:34 +01:00
bcoconni
beedd9e683
Fixed a bug where the rate_limit was ignored if it was set by a property.
2014-08-09 20:02:44 +02:00
Thomas Geymayer
2520124e97
Update for OpenSceneGraph 3.3.2 API changes.
2014-08-09 19:13:39 +02:00
Thomas Geymayer
08263dc1ec
Canvas: expose layout contents margins and alignment to Nasal.
2014-08-05 00:19:40 +02:00
bcoconni
1c867eb99d
Bug fix for the issue #1497 . JSBSim calculations of geodetic coordinates were producing a NaN at the North and South poles (i.e latitude +/-90deg).
2014-08-03 13:59:30 +02:00
Thomas Geymayer
90f197fbc4
Do not assume there is a mouse mode with index 3.
2014-07-30 23:54:04 +02:00
Thomas Geymayer
d836126c75
Better fallback for missing menu and splash translations.
2014-07-30 23:53:16 +02:00
Thomas Geymayer
4f2032a9c2
Canvas: export preventDefault to Nasal and use to stop events on DesktopGroup.
2014-07-30 17:17:24 +02:00
Thomas Geymayer
49df413444
Canvas: Keyboard events and input focus.
...
Also allow events on desktop group if no window is receiving
events. Currently it is not possible to prevent events handled
by the desktop group to further propagate (eg. to normal
control input).
2014-07-30 00:00:03 +02:00
Thomas Geymayer
0646d5f443
Nasal: expose LayoutItem visibility methods.
2014-07-21 00:27:20 +02:00
Thomas Geymayer
a673f4a5f9
Nasal: update for simgear changes.
2014-07-21 00:26:54 +02:00
bcoconni
a428d611c3
Fixed the erratic behavior of <actuator> when rate_limit is read from a property. See more details about the bug in the issue #1503 in FlightGear bug tracker.
2014-07-19 00:23:41 +02:00
bcoconni
5deeeaf781
Fix for the bug reported in the FlightGear 1503
2014-07-17 01:11:09 +02:00
Thomas Geymayer
5f4ad79954
canvas.Layout: expose missing methods to Nasal.
2014-07-16 11:24:53 +02:00
Thomas Geymayer
c5c0a7dcf3
AIShip: remove duplicate property tie.
2014-07-12 11:54:47 +02:00
Thomas Geymayer
0f14a2d73b
subsystemFactor: name fixing (use same as in fg_init.cxx) and cleanup.
2014-07-12 01:17:35 +02:00
Thomas Geymayer
a52c0882a1
Fix subsystemFactory name fdm -> flight (Thanks to Hooray).
2014-07-11 19:25:26 +02:00
Thomas Geymayer
486ef5b06c
pkg: retrieve existing install (or register callback).
2014-06-30 18:15:31 +02:00
James Turner
3f433e2c35
Fix polar rendering of map. (Bug #55 )
...
Use an azimuth-equidistant projection, which handles high latitudes and
polar regions correctly. Written by Gijs de Rooy.
2014-06-29 21:45:18 +01:00
Thomas Geymayer
a94ad46dc0
Nasal: expose missing Canvas::setLayout
2014-06-26 18:26:43 +02:00
Thomas Geymayer
a66e30aa04
Nasal: Limit SGPath::create_dir access rights to 0755
2014-06-26 16:03:10 +02:00
Thomas Geymayer
c65b2eb6b0
Draw Canvas GUI on top of PUI (to conform with event order).
2014-06-24 11:57:33 +02:00
Thomas Geymayer
694df4b337
Fix compiler warning (naRuntimeError does not return...)
2014-06-23 00:42:17 +02:00
Thomas Geymayer
1b55ab5f40
Nasal: expose SGCondition using nasal::Ghost and improved error checking.
2014-06-22 15:37:48 +02:00
Thomas Geymayer
f7f7be77e5
Remove unused value, formatting.
2014-06-22 15:36:25 +02:00
Thomas Geymayer
821af95e0d
Keep (PUI) menubar visibility on gui-redraw. ( Fix #1251 )
...
For aircraft using fgcommand("gui-redraw"), which is for example
also used by gui.menuBind, the menubar was always hidden and
not shown again.
2014-06-21 14:51:34 +02:00
Thomas Geymayer
1d5f229653
Nasal: set CustomEvent::bubbles.
2014-06-21 00:24:57 +02:00
Gijs de Rooy
8c99d5d9d6
Remove unused --control option
2014-06-19 14:28:14 +02:00
Thomas Geymayer
f4b7ae5da3
Nasal: md5 is now in simgear.
2014-06-18 15:59:41 +02:00
Thomas Geymayer
cfbf9e7e4e
Nasal: expose md5 function.
2014-06-17 22:33:53 +02:00
Thomas Geymayer
da2bb6353e
Nasal: expose canvas::Text::maxWidth.
2014-06-17 17:02:10 +02:00
Thomas Geymayer
c13612b1fa
GUIMgr: prevent double init/shutdown
2014-06-16 23:47:05 +02:00
James Turner
7e8d713b28
Pkg: initial support for Variants
...
- aircraft init code can deal with a variant ID
- Nasal API can return a hash with variant IDs and names
2014-06-15 20:10:24 +02:00
Thomas Geymayer
26a4948642
NasalSys: process nasal::Ghost deletion queue.
2014-06-15 16:36:35 +02:00
Thomas Geymayer
33d23026c4
pkg: allow 'installed' as filter criterion.
2014-06-15 16:36:02 +02:00
Thomas Geymayer
52a4ded502
Nasal: expose canvas::Layout::clear()
2014-06-14 13:22:22 +02:00
bcoconni
d830430e61
Kévin Seroux: C++11 fixes for MSVC++
2014-06-14 00:29:39 +02:00
Thomas Geymayer
4409c8cca6
Expose parse_markdown to Nasal.
2014-06-13 19:16:26 +02:00
Thomas Geymayer
e1eb9e4418
Enable package system API
2014-06-13 16:08:26 +02:00
Thomas Geymayer
b53b1a3a25
Nasal: expose canvas height-for-width layouting methods.
2014-06-13 00:09:33 +02:00
James Turner
8f754a1673
Type-correct decoding of JSON to props.
2014-06-12 19:58:13 +01:00
James Turner
d1a477324e
Websocket get/set props and exec commands.
2014-06-12 17:57:25 +01:00
James Turner
ee627b8652
Expose package file size to Nasal.
2014-06-12 17:51:19 +01:00
Thomas Geymayer
9604142d09
Fix crash (use iterator of same container for loop)
2014-06-12 16:38:21 +02:00
James Turner
63427fc589
Pkg: Fix loading of non-installed aircraft.
...
Fallback to the normal code path when a packaged aircraft is
found, but not installed.
2014-06-12 13:06:01 +01:00
James Turner
7a5b729052
Pkg: nicer Nasal syntax for tags in queries.
2014-06-12 08:17:05 +01:00
James Turner
32f57d0dc1
Aircraft switching command and formal support.
...
- /sim/aircraft can be set to package ID, including qualified
package ID. If not matching package is found, falls back to
traditional search of fg-aircraft for -set.xml files
2014-06-12 08:17:05 +01:00
Thomas Geymayer
0fb94ba596
Nasal: expose canvas::Layout item remove and get methods.
2014-06-12 00:44:26 +02:00
Thomas Geymayer
53c0454931
Package: warn for unknown filter term and use Hash::iterator.
2014-06-11 18:19:13 +02:00
Thomas Geymayer
0e286717a6
pkg: Expose install callbacks to Nasal.
2014-06-10 23:53:57 +02:00
James Turner
afa45240b0
Packages: search from Nasal
...
- also allow direct uninstallation.
2014-06-10 22:12:27 +01:00
Thomas Geymayer
c0eda4a47c
Nasal: expose more methods to Nasal.
2014-06-10 18:44:38 +02:00
Thomas Geymayer
9c0b5a5c54
Nasal: Expose BoxLayout methods for spacer and stretch.
2014-06-08 23:34:37 +02:00
Thomas Geymayer
371b71dd6c
Nasal: expose vbox layout and allow setting item stretch.
2014-06-04 17:50:52 +02:00
Thomas Geymayer
1af3ad2525
Nasal: extend pkg API.
2014-06-04 17:50:25 +02:00
Thomas Geymayer
75f5eba002
Update includes (required by simgear changes)
2014-06-04 02:58:14 +02:00
Thomas Geymayer
3c0b7f88b8
Updates for simgear nasal::Ghost changes.
2014-06-03 19:00:25 +02:00
Thomas Geymayer
06a9958689
Canvas: expose more methods to Nasal
2014-06-01 12:15:02 +02:00
James Turner
d1fd5756f6
Initial package-system integration.
...
- disabled by default
- incomplete, adding so Thomas can see the API
2014-05-31 18:04:56 +01:00
Thomas Geymayer
3b4bb10e4f
Canvas: expose layouting to Nasal.
2014-05-31 02:43:03 +02:00
Thomas Geymayer
7c31654b3a
Canvas: store data inside canvas and elements.
...
- jQuery/HTML5 like .data() method on Canvas and Elements to store
custom data in the property tree.
- CustomEvent takes additional parameter hash with 'detail' data
stored in event.
2014-05-29 16:47:32 +02:00
James Turner
fea8e96fe9
Fix for airport search on some platforms.
...
Ensure the std::string passed to sqlite lives for the duration
of the query.
2014-05-29 09:42:21 +01:00
James Turner
fd248e9391
Respect tile expiry time when cache is disabled.
...
Tiles added via the visible mechanism always have an
expiry time of 0.0, so this only affects tiles added by elevation queries, from the AI or FDM.
2014-05-24 14:23:59 +01:00
Torsten Dreyer
2e76a2c72a
Update of the httpd implementation
...
- Add a screenshot uri handler
- Enable persistent http connections
- Simple CORS implementatation for the
JSON property uri handler
many changes for the httpd
2014-05-22 10:28:54 +02:00
Torsten Dreyer
a5c39e3009
Final log-class cleanup (httpd comes in another commit)
...
yes, I will use grep next time :-/
2014-05-20 23:12:34 +02:00
Torsten Dreyer
c187dab625
More log class fixes
2014-05-20 23:06:02 +02:00
Torsten Dreyer
29990c40bf
No JSBSim debug msg without having SG_FLIGHT class
2014-05-20 22:58:38 +02:00
Torsten Dreyer
3e47fc0c11
set corret logging class for A/P messages
2014-05-20 22:36:43 +02:00
Thomas Geymayer
5b74a72506
Canvas: support for custom events and event dispatching.
2014-05-19 00:28:40 +02:00
Thomas Geymayer
b3946f08f9
NasalCanvas: Update for simgear changes.
2014-05-18 20:21:56 +02:00
Thomas Geymayer
741c3c892c
NasalPositioned: Update for nasal::Ghost changes in SimGear
2014-05-18 17:48:46 +02:00
bcoconni
105cba0bda
JSBSim sync
2014-05-18 13:39:31 +02:00
James Turner
431a3eaa1b
Tune osgDB::MaxPagedLODs parameter
2014-05-17 09:05:34 +01:00
James Turner
f19da413bb
Initial mode to disable caching of tiles.
2014-05-16 14:52:24 +01:00
Torsten Dreyer
ffe6c39a1d
More AtisSpeaker variations
...
Also hide the voice installation path from the user of
the VoiceSynthesizer
2014-05-13 11:20:11 +02:00
Colin Douglas Howell
54f954fd02
Fix for issue 1463 (YASim underestimates off-axis aerodynamic forces on fuselages)
...
Change the drag coefficient for fuselages along the Y and Z axes
(i.e. perpendicular to the fuselage's main axis) to use a fixed
value of 0.5. (The value can still be adjusted using the fuselage's
"cy" and "cz" XML attributes.)
For the Y-axis and Z-axis drag on fuselages, YASim originally used
a drag coefficient equal to:
(solver drag factor) * (fuselage length/width ratio)
This value turns out to be way too small for well-streamlined
aircraft, even those with long, narrow fuselages, and especially
so for those with short, stubby fuselages. Such fuselages are
streamlined in the X direction, but not along Y or Z.
0.5 is only a ballpark estimate, but it's reasonably close for the
common case of a fairly long fuselage with a round cross section. For
flat-sided fuselages, a larger value should be used, up to a maximum
of 2 for a slab-sided block. For short fuselages, the value should be
reduced to account for end effects. The fuselage's "cy" and "cz" XML
attributes can be modified to make such adjustments.
This fix won't affect straight flight much, but it should have a strong
impact on some maneuvers. For example, it will make slips more
effective and may make knife-edge flight easier on aerobatic aircraft
which should be capable of it.
Only aircraft which specify version="YASIM_VERSION_32" or newer are
affected.
2014-05-12 19:07:10 -07:00
Colin Douglas Howell
907209746f
Separate fuselage drag adjustment from that for landing gear and external weights.
...
This commit is in prepartion for the following commit, which is a bug fix for
Issue 1463 (YASim underestimates off-axis forces on fuselages).
Previously the solver would adjust the drag factor for all of an Airplane's
non-Wing Surfaces in one pass, with no attempt to distinguish Fuselage Surfaces
from the Surfaces for Gear and Weights. This makes it difficult to modify how
fuselage drag is calculated while leaving unaffected the drag for landing gear
and external weights.
Now the solver adjusts the drag for an Airplane's fuselages, landing gear, and
external weights in three separate passes. To do this, each Fuselage now has a
list of its Surfaces. The fuselage pass simply iterates through the list of
Fuselages, running through each Fuselage's list of Surfaces.
The Airplane's list of non-Wing Surfaces, "_surfs", is no longer used here, but
there may still be uses of it elsewhere.
2014-05-12 14:29:48 -07:00
Torsten Dreyer
98c053792e
Try to fix build error for msvc
2014-05-10 15:49:50 +02:00
Thomas Geymayer
0fc2d57211
Scripting: expose flight history as aircraft.history()
...
var hist = aircraft.history();
debug.dump(hist.pathForHistory(50));
2014-05-10 10:56:09 +02:00
Thomas Geymayer
bd29974683
Canvas: move Window class to simgear.
2014-05-09 16:42:54 +02:00
Torsten Dreyer
b80b010ef1
Use FLITE voices in FGVoiceMgr
...
This patch enables spoken words without the need for external
festival using the existing FGVoiceMgr subsystem and the
properties under /sim/sound/voices
To hear the generated voices, set /sim/sound/voices/enabled=true
at startup
- use FLITEVoiceSynthesizer if a voice has <festival>false</festival>
- use FLITEVoiceSynthesizer if the festival server is unreachable
- decouple FGFLITEVoice from FGVoiceThread
2014-05-07 22:12:23 +02:00
Torsten Dreyer
d8c5e394cf
Render voice to memory, no more temp files.
...
Thanks you James
2014-05-07 20:09:15 +02:00
Torsten Dreyer
1c8c74fc76
Compile without ENABLE_FLITE
2014-05-07 19:07:29 +02:00
Torsten Dreyer
4cdb5ed1f3
AtisSpeaker: prepare for individual voices
2014-05-07 17:08:02 +02:00
Torsten Dreyer
36fc9790ed
atis voice: add some variation in pitch and speed
2014-05-07 10:34:04 +02:00
Thomas Geymayer
c6371c4152
Canvas: update for SimGear changes.
2014-05-06 18:15:29 +02:00
Colin Douglas Howell
4d1aebad79
Fix for issue 1394 (YASim's geometry for non-cylindrical fuselages is wrong)
...
Correct handling of fuselage's "midpoint" XML attribute so that the midpoint's
location matches the point assumed by all aircraft developers and YASim docs.
This means the fuselage won't be generated "back-to-front".
Also correct the variation of diameter for tapered fuselages so that both ends
of the fuselage narrow from the midpoint to the endpoints.
Before this, one end was narrowing from the endpoint to the midpoint, the
opposite of what was expected.
These changes affect both weight distribution and the distribution of lateral
aerodynamic forces.
2014-05-06 10:38:48 +02:00
Torsten Dreyer
19aedd4523
Add GPL header
2014-05-06 10:33:50 +02:00
Torsten Dreyer
dd127de32b
Changes to voice + atis
...
- Add a very simple line-of-sight propagation model for the radio
range computation.
- Remove some no longer used debug log messages
- Some code cleanup
- add-noise is now on by default
2014-05-06 10:23:04 +02:00
Torsten Dreyer
59db0534ff
Fix a warning, no functional change
2014-05-05 22:24:47 +02:00
Torsten Dreyer
99dd8c08b5
commradio: typo: cuttoff --> cutoff
2014-05-05 13:22:39 +02:00
Torsten Dreyer
7dc2ee46a2
commradio: add squelch
...
adding property cuttoff-signal-quality to the comm radio
If signal-quality goes below this value, atis sound is muted.
Also: initialize property power-btn if not defined by the
aircraft or instrument designer
2014-05-05 13:20:03 +02:00
Torsten Dreyer
86b3469fbf
JSBSim: fix zero agl above scenery discontinuity
...
see http://osdir.com/ml/flightgear-sim/2014-04/msg00145.html
2014-04-30 16:41:27 +02:00
Torsten Dreyer
46584bfc92
commradio: no spoken atis if sound disabled
2014-04-30 10:50:57 +02:00
Torsten Dreyer
88e5dc873f
Cleanup part2. Forgotton file.
2014-04-30 10:45:52 +02:00
Torsten Dreyer
d2c000699f
Cleanup of ATCDCL
...
- move FGATCAlignedProjection class as AlignedProjection
to dclgps, the only place where it's currently used
- remove now obsolete files in ATCDCL
2014-04-30 10:22:51 +02:00
Torsten Dreyer
14c918a7ef
commradio: improvements for atis speech
...
- use individual SampleGroup refnames for each radio
- enable volume control for atis speech
- (optionally) add noise based on signal quality
2014-04-28 23:50:45 +02:00
Torsten Dreyer
d5d88f2850
commradio: refactor MetarSpeaker to AtisSpeaker
2014-04-28 22:02:48 +02:00
Torsten Dreyer
6ee2fcdd9e
Allow using the system version of flite and the HTS engine
...
By default, if the system version exists and can be used,
then it will be used. Otherwise, the local version will be used
Original patch by Saikrishna Arcot via
https://gitorious.org/fg/flightgear/merge_requests/1582
slightly modified
2014-04-28 21:33:48 +02:00
Torsten Dreyer
4d4e1a2371
VoiceSynthesizer: add some test/debug properties
...
/sim/sound/voice-synthesizer/volume to set the volume of the generated wav (in dB)
/sim/sound/voice-synthesizer/keep-scratch-file do not remove the scratch file if true
2014-04-27 22:53:59 +02:00
Torsten Dreyer
38e2b8b11c
Temporary fix for crash in FGVoiceMgr on reset
2014-04-27 21:38:24 +02:00
Torsten Dreyer
cadb77b18d
use flite+hts for metar
2014-04-24 20:59:08 +02:00
Torsten Dreyer
f6b6cfc645
voice system: all doors in FLITE
...
Prepare for festival lite generated voices
2014-04-23 17:09:00 +02:00
Torsten Dreyer
19dd46c5b0
ATISEncoder: minor tweak
...
no trailing blank at runway designator
2014-04-23 17:07:00 +02:00
Torsten Dreyer
15525aab58
add atmosphere layer 8 for space exploration
...
as provided by Ron Jensen
2014-04-22 09:20:25 +02:00
Torsten Dreyer
4e89d05fb4
YASim: implement a versioning system
...
user attribute "version" of the airplane element of the YASim config file
to define the version this config uses.
Example:
<airplane mass="1344" version="YASIM_VERSION_CURRENT">
Initially, the following can be used:
YASIM_VERSION_ORIGINAL - The original version of YASim as implemented up to
FlightGear 3.0.0
YASIM_VERSION_32 - The version of YASim implemented in FlightGear 3.2.x
(and the development version 3.1.x)
YASIM_VERSION_CURRENT - The current and latest version of YASim.
2014-04-20 20:58:12 +02:00
James Turner
b3c7cb7c15
Fix crash with Nasal bindings.
...
naBindFunction doesn't save the function code to the global
hash, so pass an explicit context to various 'call' overloads so
the function can't be GC-ed in between parsing and calling.
(Patch by Nicholas Scheel)
https://code.google.com/p/flightgear-bugs/issues/detail?id=1397
2014-04-15 14:13:46 +01:00
Colin Douglas Howell
ef2898f25c
Corrected fix for issue 1423 (YASim miscomputes incidence rotation of force vector)
...
I got the sign wrong in my previous fix, causing the vector to be rotated the
wrong way. See my latest comments in issue 1423. Sorry about that.
2014-04-05 11:58:16 +02:00
James Turner
5002814554
FreeBSD fixes
...
From Ganael Laplanche.
2014-04-04 15:33:27 +01:00
James Turner
01dca5e541
Fix link order of HTS / flite for GCC ld
...
- Clang, gold etc don't care but GCC ld still does.
2014-04-04 11:25:12 +01:00
Torsten Dreyer
ec2baa1a41
Merge commit 'refs/merge-requests/1579' of git://gitorious.org/fg/flightgear into yasimfixes
2014-04-04 08:57:16 +02:00
Torsten Dreyer
efc5c32633
Merge commit 'refs/merge-requests/1578' of git://gitorious.org/fg/flightgear into yasimfixes
2014-04-04 08:57:12 +02:00
Torsten Dreyer
5ba36b282f
Merge commit 'refs/merge-requests/1577' of git://gitorious.org/fg/flightgear into yasimfixes
2014-04-04 08:57:05 +02:00
Thomas Geymayer
7f43a09fc5
Canvas: update for new bounding box getters.
2014-03-31 13:29:14 +02:00
Torsten Dreyer
44ba076720
allow binding of httpd to an address, not just a port
...
support --httpd=127.0.0.1:8080
2014-03-29 22:07:12 +01:00
Torsten Dreyer
390f6dd32d
fix wrong computation of delta-t in jpg-httpd
...
this lead to a screenshot taken on each frame instead of
the defined interval
2014-03-29 11:22:34 +01:00
Torsten Dreyer
4be1aba62e
Autopilot: enable debug output for logic elements
2014-03-28 17:48:35 +01:00
Colin Douglas Howell
8cca0adc58
Fix for issue 1427 (YASim fuselage's "cx" affects drag on all axes)
...
Correct Airplane::compileFuselage() so that a Fuselage's "cx"
only affects drag on the X axis.
2014-03-27 02:12:11 -07:00
James Turner
ca3cc03fac
Ignore not-found 'config file' arguments.
...
Fixes confusing startup behaviour with malformed args, when
an argument accidentally contains a space (e.g. a park-pos or
protocol desc). In this case we treat the parts after the space as an XML config file name. When we can't find this file, we
completely abandon options setup, which causes many downstream
errors.
Change the behaviour so we warn in this case, but carry on with normal startup.
2014-03-27 08:05:02 +00:00
James Turner
19528fab8c
Fix duplicated FGIO channels on reset.
...
Thanks to Nicholas Scheel for spotting this.
2014-03-26 19:24:00 +00:00
Torsten Dreyer
75f9d7e66e
add nChildren to json properties
2014-03-26 15:06:24 +01:00
Torsten Dreyer
0dcc8aa34d
Add a timestamp to JSON properties
...
add special attribute 'ts' to a JSON property reflecting
/sim/time/elapsed-sec
always add timestamp for listener properties
add timestamp for json requests if req param t=y is set
2014-03-26 08:51:15 +01:00
Torsten Dreyer
f68ae55068
Don't return invalid JSON if node not found
2014-03-25 21:43:08 +01:00
Colin Douglas Howell
aa27b38666
Fix for issue 1423 (YASim miscomputes force vector on Surfaces with nonzero incidence)
...
Surface::calcForce() now does reverse incidence rotation of force vector properly.
2014-03-25 01:50:21 -07:00
Torsten Dreyer
e7dec994b8
httpd: provide more airport information in geojson
...
- provide runways as polygon geometry
- provide longest runway lenght, heading and surface type
- some code cleanup
2014-03-23 21:19:04 +01:00
Torsten Dreyer
2c3d779459
Add virtual destructor
2014-03-23 21:17:54 +01:00
James Turner
9847bf3d13
Fix for bug 1419, nav.dat runway binding
...
Clean runway names to standard structure (0-prefix) before looking up
in the cache, when binding ILS navs to runways.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1419
2014-03-23 09:53:00 +00:00
Colin Douglas Howell
8a9ce0ccf7
Fix for issue 1400 (YASim slats always give full stall enhancement)
...
Surface::stallFunc() now scales _slatAlpha by _slatPos when adjusting stallAlpha.
2014-03-22 12:11:39 -07:00
Torsten Dreyer
527eb9d444
httpd navdb: report ils/loc as geojson multilinestring
2014-03-21 13:00:59 +01:00
Thomas Geymayer
58c01b112e
Canvas: update for 'file'->'src' rename
2014-03-20 11:43:12 +01:00
Torsten Dreyer
d59c57717e
Don't allow call with no Filter set. Leads to crash.
2014-03-19 17:24:52 +01:00
Torsten Dreyer
3d33aff7bc
Add a http handler to access the nav database
...
see the browsermap for an example
2014-03-19 17:23:53 +01:00
Thomas Geymayer
f0ef2b9576
Expose HTTP client to Canvas.
2014-03-18 18:35:35 +01:00
Torsten Dreyer
efcc89480d
httpd: don't spam the console with debug messages
2014-03-17 16:38:53 +01:00
Torsten Dreyer
1867ccb4a8
httpd: better handling of first-time notifications
...
ensure new listeners get notified on first update loop
also cleanup the PropertyChangeObserver on reset
2014-03-17 16:22:42 +01:00
James Turner
070dba29f9
Close dialogs on GUI shutdown
...
- avoids orphaned dialogs on reset
- requires some guards in NasalSys since Nasal is shutdown first, but
dialogs can have Nasal modules.
2014-03-16 22:52:55 +00:00
James Turner
849c6ccc6e
GPS fixes
...
- fix corrupted ident on Mac (libc++ issue)
- don't clear scratch when activating DTO mode
- use the real navaid/airport for the waypt where possible
- expose active waypt name
2014-03-16 16:20:03 +00:00
Thomas Geymayer
764fbd519c
CanvasWidget (PUI): make button index consistent with Canvas windows
2014-03-15 15:01:09 +01:00
Torsten Dreyer
a830708252
PropertyChangeWebsocket: fire change after subscribe
2014-03-14 21:36:29 +01:00
Torsten Dreyer
95d4c5898d
httpd: handle url-rewrites
2014-03-14 16:39:16 +01:00
Torsten Dreyer
75933d3e1e
add min/max freq to the frequencyformatter
2014-03-14 15:19:23 +01:00
James Turner
7041ed9078
Fix compilation with SYSTEM_SQLITE
2014-03-13 18:19:13 +00:00
James Turner
487546c848
Fix some leaks on reset
...
- tilecache 'clear_cache' is poorly named, ensure the destructor
really deletes all outstanding entries.
2014-03-13 18:19:13 +00:00
Torsten Dreyer
aaa7fca621
NasalSys: arg is never null
2014-03-12 22:42:51 +01:00
Torsten Dreyer
7132947d16
httpd: update mongoose and websockets
...
* mongoose updated to 5.3
* first stab at implementing websockets, here a property change listener
websocket. This websocket is at ws://yourhost:yourport/PropertyListener
see FGDATA/Docs/gui/radio.html for an example
2014-03-12 22:39:37 +01:00
Torsten Dreyer
275d2dc7fa
Partial fix #1408
2014-03-12 21:21:56 +01:00
James Turner
c7f2992904
Add 'set-scenery-paths' command.
2014-03-12 18:56:19 +00:00
James Turner
56ca1fe93b
Don't rebuild navcache for scenery changes
...
- Cache can drop all ground-nets.
2014-03-12 18:56:18 +00:00
James Turner
c00ab21fad
ICAO.ils.xml data works read-only.
2014-03-12 18:56:18 +00:00
James Turner
ffa7854ed9
ICAO.threshold.xml works read-only.
2014-03-12 18:56:18 +00:00
James Turner
5f9c17bd69
ICAO.twr.xml works in read-only mode.
2014-03-12 09:50:39 +00:00
James Turner
afe02b9b36
Reset: tweak property PRESERVE
...
- ensure options are re-processed before restoring PRESERVEd
properties, so that sessions changes survive a reset.
2014-03-11 22:43:25 +00:00
James Turner
f2a3090384
Fix some Clang warnings.
2014-03-11 16:46:00 +00:00
James Turner
1edffd1d10
Reset: fix OSG stats handling
2014-03-11 16:45:47 +00:00
James Turner
f04d5f8758
Reset: work with threaded OSG modes
2014-03-11 16:45:31 +00:00
Torsten Dreyer
64c393d022
http property browser: don't crash on invalid nodes
...
Don't expect users to always pass valid node names
or paths
2014-03-10 23:40:42 +01:00
Torsten Dreyer
7c2ce9acf7
allow binding of arguments for fg-commands thru run.cgi
...
to run a fg-command with args, POST run.cgi?value=my-command
and post the args node as JSON content like this:
{
name: '',
children: [
{
name: 'property',
index: 0,
value: 'first-value is here'
},
{
name: 'property',
index: 1,
value: 'first-value is here'
}
]
}
or whatever arguments the requested command takes
2014-03-10 22:58:52 +01:00
James Turner
f07771f3d5
Fix a crash after reset.
2014-03-10 17:43:15 +00:00
James Turner
cc607ae7e4
Save/restore initial state removed.
2014-03-10 17:29:28 +00:00
James Turner
9489009570
Fix fg-aircraft, fg-scenery props after reset.
...
- restore fg-aircraft properties, and PRESERVE fg-scenery ones,
across reset.
2014-03-10 17:24:42 +00:00
James Turner
03aa642155
Old reset code-path is removed.
2014-03-10 17:24:37 +00:00
James Turner
5e6c2b8e82
Reset the Autopilot on reposition.
...
- previously we restored AP state to initial; let's
actually re-init it after re-position.
2014-03-10 12:02:10 +00:00
James Turner
a8fe586e48
Revert wiping of /fdm on reposition.
...
This is too destructive for many established things, so revert it.
Instead, make the FDM shell save /fdm state on postinit(), and
restore it on re-init (which reposition invokes).
2014-03-10 12:00:51 +00:00
James Turner
7b2d710cd0
Add hts_engine 1.08 and flite_hts 1.05 code.
...
- Not compiled by default, nor hooked up to anything yet.
- Both libraries licensed under modified BSD license.
- Added top-level CMake file for both, to create a plain static
library for each.
2014-03-10 09:32:43 +00:00
Torsten Dreyer
dac3b45892
Some fixes for the httpd
...
- Set encoding of the property browser to utf-8
- add the properties index to the json
2014-03-08 14:47:13 +01:00
Torsten Dreyer
ed8ec8f092
JSON: make the response configurable, set encoding
...
add request parameter 'i' and 'd'
if i=y, indent the output to make it human readable
if i is missing or anything else, send the output unformatted to save bandwith
'd' defines recursion depth with a default of 1 to show the requested node
and the immediate childs (if it has any)
call /json/?i=y&d=999 for a complete property tree backup (use with caution!)
Also set the encoding to UTF-8 as required per RFC 4627
2014-03-07 21:58:33 +01:00
Thomas Geymayer
ef3f0a2738
Canvas.MouseEvent: fix specific modifier states (ctrl, alt,...)
2014-03-07 16:19:40 +01:00
James Turner
86ba2a1628
Throw the reset switch.
...
- fix up CanvasMgr so canvas works after new reset.
2014-03-07 12:40:14 +00:00
James Turner
5ce2a067ca
Fix JSBsim trimming on reposition.
...
- remove the entire /fdm tree on reposition
- force the initial NED wind values to 0.0 in JSBsim,
pending advice from people who know better.
2014-03-06 22:33:42 +00:00
Torsten Dreyer
b84026ce84
httpd: fix ignored port on --httpd=nnnn
...
also fix unconditional startup of the daemon
2014-03-06 21:19:49 +01:00
Torsten Dreyer
7602089460
Use the short xml name for properties in JSON
2014-03-06 18:00:11 +01:00
Torsten Dreyer
63e9cbed40
Initial commit for mongoose httpd
2014-03-06 13:19:15 +01:00
James Turner
2beb0f29af
Fix starting on carrier.
...
- scenery intersection needs to check the whole scene since carriers
are outside it. (could possibly be optimised further)
2014-03-06 09:21:04 +00:00
Thomas Geymayer
88b7d4f530
Update for SGPropertyNode changes.
2014-03-06 00:41:41 +01:00
Anders Gidenstam
4a5dce9f48
Added support for shared JSBSim engine and system configurations in fgdata.
...
Adds $FG_ROOT/Aircraft/Generic/JSBSim/{Engines,Systems} to the JSBSim
engines and system search paths. Internally JSBSim already searches
$aircraft_dir/Engines and $aircraft_dir/Systems.
A file in $aircraft_dir/{Engines,Systems} have higher priority than one
in the shared directories.
2014-03-05 22:41:34 +01:00
James Turner
6493975913
Remove reference to 'old ATIS' from reposition.
2014-03-05 15:16:07 +00:00
James Turner
41567d8fc8
Toggle cloud drawing on/off
2014-03-05 14:22:27 +00:00
Torsten Dreyer
ea13c0f2de
Cleanup, no functional change
2014-03-05 14:09:40 +01:00
Torsten Dreyer
c068049d84
NewAtis: handle varying winds
2014-03-05 13:52:43 +01:00
Philosopher
6870a88696
Fix for issue #999
...
Introduces delay-sec and release-delay-sec properties. The former is how
long to wait to run the binding(s) after pressing the button, the latter
is how long to wait after releasing the button. interval-sec now
specifies the delay before a repeat event occurs.
2014-03-05 00:33:45 +01:00
Thomas Geymayer
36f7ef93aa
Canvas.MouseEvent: expose button/modifier state.
2014-03-04 18:00:57 +01:00
Thomas Geymayer
c7c9fd67aa
TACAN: fix distance calculations and some other problems.
...
- Calculate line of sight distance instead of distance over
ground
- Do a nav cache update if carrier_nav.dat.gz timestamp has
changed
- Allow comments in carrier_nav.dat.gz
- "Fix" range calculations (still does not take terrain/weather
and other influences into account)
2014-03-02 16:52:00 +01:00
Thomas Geymayer
5151f7f5e0
TACAN improvements.
...
- Make search interval for new mobile tacan larger.
- Continuous update of mobile tacan position.
2014-03-02 01:34:04 +01:00
Thomas Geymayer
234e2bdf09
TACAN/mobile navaid cleanup and improvements.
2014-03-01 20:19:06 +01:00
Torsten Dreyer
090207155e
ATIS: say wind direction as three digits
2014-03-01 20:15:52 +01:00
Torsten Dreyer
0c7f21a259
New ATIS System: Fallback for no-realwx and some fixes
...
Added the fallback for realweather fetch disabled, creating
ATIS from present weather
Fixed some formatting errors, mainly missing spaces
Some code cleanup
2014-03-01 12:44:01 +01:00
Torsten Dreyer
5e080c1e37
Fix wrong metar assignment in commradio
2014-02-28 22:36:29 +01:00
Thomas Geymayer
e34d97796c
TACAN: fix receiving mobile TACAN.
2014-02-28 20:01:09 +01:00
Thomas Geymayer
de38157916
FGPUIDialog: fix reading from already free'd memory.
...
Calls to updateValues can cause nested calls invalidating
the char* passed as argument, if retrieved from a
SGPropertyNode.
Probably SGPropertyNode should also be modified to return
a std::string instead of a pointer to an internal buffer.
2014-02-28 17:34:41 +01:00
Torsten Dreyer
dd6cccdda1
A new comm radio and atis implementation
2014-02-28 11:45:49 +01:00
Torsten Dreyer
c519b9262d
Add simple breadcrumb navigation to the httpd
2014-02-27 22:21:45 +01:00
Thomas Geymayer
831f75a030
Autopilot: fix wrong warning for unknown node
2014-02-27 00:20:06 +01:00
Torsten Dreyer
c152e7f118
Bind the CAVOK flag to metarproperties
2014-02-25 09:42:00 +01:00
Thomas Geymayer
f1e0206f30
Autopilot: fix configuration to prevent false warnings.
2014-02-24 23:19:50 +01:00
James Turner
99fd9513d9
Metar: finalise-position fast if Metar fails
...
- when METAR lookup fails (as opposed to timing out), report
this immediately so finalise-position doesn't wait.
2014-02-24 19:43:21 +00:00
James Turner
bd8e43c007
Initial work on 'reposition' command
...
- use old-style reset as the basis for a lightweight 'reposition' command. This does not restore state, or reset
time management, but does reset the FDM and re-finalize position.
2014-02-24 19:43:21 +00:00
James Turner
072adde9a6
Remove all references to an alpha-buffer
...
- Current 3D clouds rendering does not use the alpha buffer,
so don't request one at launch, since it consumes valuable GPU memory.
- Remove any references to alpha testing or alpha func in the renderer setup.
2014-02-24 19:43:21 +00:00
James Turner
a6219dab76
use an osg::Switch to control scenery rendering
...
- restores functionality of 'draw-otw' property
- adds new /sim/rendering/draw-mask branch to allow control
over rendering each branch inside FGScenery
2014-02-24 19:43:21 +00:00
James Turner
874a923096
Remove legacy reference to draw-otw
2014-02-24 19:43:20 +00:00
James Turner
d035fdf3a9
Optimise NavCache airport query
...
- makes initial showing of 'Select Airport' dialog faster
2014-02-24 19:43:20 +00:00
James Turner
876e81edbd
AIModels use PagedLOD
...
- allows AIModels to be unloaded by the Pager
- move AI models into the 'models' sub-branch of FGScenery
2014-02-24 19:43:20 +00:00
James Turner
33b7e3e32e
Fix an (unlikely) startup crash
...
Encountered this by accidentally clicking during startup
2014-02-24 11:41:04 +00:00
James Turner
130f581b18
Tile-manager can request VBOs.
...
Monitor /sim/rendering/use-vbos and pass the value into
our SGReaderWriterOptions.
2014-02-21 08:52:07 -08:00
James Turner
b76d255d82
Remove pre-OSG 'enable/disable-textures' option.
...
These have been non-functional for a long time, remove
to avoid further confusion.
2014-02-21 07:57:35 -08:00
James Turner
b0dcb657e7
Fix for bug 1304 - crash loading XML route
...
If the XML is malformed (missing <route> section), don't crash.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1304
2014-02-21 07:57:35 -08:00
Torsten Dreyer
16869d0362
publish the metar date/time to metarproperties
2014-02-21 16:23:10 +01:00
James Turner
0473607731
Tweak tile-manager SGBucket API
...
* FG builds with 'NO_DEPRECATED_API' in SGBucket
2014-02-19 14:02:09 -08:00
James Turner
39d1b6db38
Re-factor the FPE handling code
...
* make --enable-fpe work on Linux and MSVC
* standardise the code paths for different platforms
* add an argument finding helper to Options
(This is a basic cleanup, contributions from people with
more experience in this area are welcome)
2014-02-19 13:53:52 -08:00
James Turner
34ed79e5f8
getprop/setprop allows integer indices.
...
As suggested by a long-standing enhancement idea,
extend getprop/setprop to accept multiple args,
including integer arguments. This removes the need
for string concatenation (and hence, allocation)
on the Nasal side.
Patch by Nicholas 'Philosopher' Scheel
2014-02-18 20:07:29 -08:00
Christian Schmitt
9d995907db
Support helipad names in the --runway startup option
...
also give better user feedback if runway/helipad ID is unknown
2014-02-14 20:05:11 +01:00
James Turner
7bc7197f6a
Use Cmake to generate app-bundle on Mac
...
- build the .plist using CMake features
- update the nightly Mac packaging script for the new layout
2014-02-14 18:58:36 +00:00
James Turner
826ea8139f
Re-apply the Clang/C+11 fix for JSBSim
...
Hopefully an equivalent change will occur upstream before the next
JSBsim sync.
2014-02-14 17:42:50 +00:00
James Turner
239a000763
Use new SGBucket API in tile-manager
...
- check for invalid tiles / buckets, which occurs at the poles
- use .sibling() method to offset
- no longer need to store view lat/lon in the manager.
2014-02-13 18:52:52 +00:00
Thomas Geymayer
e600cd3d00
Autopilot: add interface properties and property-root.
...
- Support interface properties as with JSBSim for easy reuse
and parametrization of autopilot components.
- Add property-root property to allow changing property root
for all relative paths. This allows easy use of multiple
instances of the same autopilot component at the same time
by specifiying different property root nodes.
2014-02-09 18:51:09 +01:00
Thomas Geymayer
4ae8cd99a1
XMLAutopilot: cleanup and remove code already available in SGSubsystemGroup.
2014-02-09 18:50:55 +01:00
Thomas Geymayer
3b23892ccf
Canvas: also apply matrix of element to getTransformedBounds.
...
Part of the fix for #1333 .
2014-02-08 00:28:24 +01:00
Christian Schmitt
7e8ee5a3a8
fix another crash at the poles
2014-02-07 23:29:06 +01:00
Christian Schmitt
6cadc2cf40
Simplify some SGGeod-related calculations
2014-02-05 23:07:43 +01:00
Christian Schmitt
ae8ddd04d9
[AIModel] Fix a crash when starting at the poles and reduce property reading
2014-02-05 17:51:28 +01:00
Curtis L. Olson
a92c697989
I'm doing battle with git ... this should have already been committed with an
...
explanatory commit log message. If not ... sorry ... grrr ... git.
2014-02-05 10:15:36 -06:00
Curtis L. Olson
d306e94c1c
Add an 'overrideRedirect' flag to the window configuration section. For
...
multi-headed Gnome based linux systems, this provides an extra hint that we
really wish to open up our full screen window spanning all physical displays.
This works around a kink in the gnome window manager where it tries to "lie"
to applications about the full screen size assuming most applications don't
wish their windows to span multiple physical displays.
2014-02-05 10:04:18 -06:00
James Turner
27c58ddb21
Tacan: avoid a 'long-range' wgs84_inverse
...
- Only check mobile distance at all, if the mobile is valid
2014-02-04 14:54:39 +00:00
James Turner
34433c1fa1
GPS: fix bad init when far from any airport
2014-02-04 14:53:42 +00:00
Clément de l'Hamaide
d9e8abcc99
FGCom: change default silence threshold
2014-02-04 12:18:50 +01:00
Christian Schmitt
a0184ac80c
MapWidget: silence compiler warning
2014-02-02 16:47:25 +01:00
Clément de l'Hamaide
43b8d157ce
Send transponder mode over network
2014-01-29 21:04:58 +01:00
Erik Hofman
73a519a95c
Make the JSBSim terrain handling code compile time configurable by calling cmake -DJSBSIM_TERRAIN=1
2014-01-29 13:50:06 +01:00
Erik Hofman
7bdd1d617d
Integrate the latest terrain handling code
2014-01-29 13:45:19 +01:00
James Turner
b7a9aee796
FGViewer fixes
...
- ensure active material are cached
- clear osgDB object cache on exit explicitly
2014-01-29 10:10:53 +00:00
Thomas Geymayer
61da998e02
Expose SGPath::standardLocation to Nasal.
2014-01-28 01:08:06 +01:00
James Turner
4df9c61d2a
Check for and warn about old nVidia drivers.
...
(Had a bug report with someone using 189 drivers on Windows!)
2014-01-27 17:27:12 +00:00
James Turner
1a372d9366
Update image-server logic.
...
- no dependency on libJpeg or Simgear
- no duplicate rendering of the scene (uses a draw callback)
- supports other image types, eg PNG
- threaded so doesn't block the main loop ever
2014-01-27 09:08:34 +00:00
James Turner
9f3a2ddbdc
Change default Windows terrasync path
...
Now use (new) SGPath::documents helper to download
to a user-visible location: Document\FlightGear.
(Linux & Mac behaviour is unchanged)
2014-01-26 16:07:53 +00:00
Clément de l'Hamaide
3254f54f9e
FGCom: add silence threshold setting
...
Require commit 1396848dcf31d181ab740c8eb728cff02f06fd3d from fgdata
2014-01-26 16:38:48 +01:00
Rebecca Palmer
6adb8b22df
Fix compilation with SYSTEM_SQLITE, from Markus Wanner
...
Fix error "no known conversion for argument 1 from ‘sqlite3_int64
{aka long long int}’ to ‘PositionedID& {aka long int&}’"
(Both those types are int64, but that evidently isn't enough)
2014-01-26 10:34:49 +00:00
James Turner
c8b1655edc
Report bad command-line args via message box.
...
This makes the behaviour when FGRun (or other GUI launchers)
send bad options much more explicable. Non Windows/Mac systems
get an SG_ALERT on the console as before.
2014-01-25 10:36:00 +00:00
James Turner
64cbc06003
clang / libc++ fixes for JSBSim
...
(needs to be upstreamed too)
2014-01-25 10:34:19 +00:00
James Turner
2a1e33863a
Search all resources when adding models at runtime.
...
geo.put-model / add-model mechanism now supports resolving paths
using all the defined locations, including aircraft dirs and
additional data dirs,
2014-01-23 15:02:33 +00:00
James Turner
c6541e9c8f
Remove some debug log calls.
...
All places which continuously log messages (either every frame or at
least every second) tending to swamp other log output.
2014-01-23 13:49:58 +00:00
James Turner
45d67406a4
CrashRpt tweaks, checking.
...
- show a message box if setup fails
- log setup status
2014-01-22 22:33:30 +00:00
James Turner
80cc2ff8c3
Adjust fg-aircraft handling back to original style.
...
- startup code will warn and fix the alternate style
- man page now documents the option
2014-01-22 10:56:04 +00:00
Clément de l'Hamaide
695a9be75d
Use --fg-aircraft paths for AI model
...
Firstly search model in $fg-root/AI/ path,
if not found, search model in --fg-aircraft paths,
if not found, search model in $fg-root/Aircraft path
This commit should solve the complaint "I have an aircraft in a separate Aircraft/ folder
but during MP session other user are shown with the aircraft from the $fg-root/Aircraft path
instead of this behaviour I want to see the aircraft from my separate Aircraft/ folder"
2014-01-21 00:13:17 +01:00
James Turner
a46114da9a
Fix typo, add Hudson Build-ID to reports.
2014-01-20 21:54:06 +00:00
James Turner
1b585fa415
Windows native file-dialog, menu-bar
...
By Gijs with additions by James. Menubar is disabled at present
since it's not usable and potentially inferior to other solutions,
but committing the code so it doesn't rot.
2014-01-20 18:43:02 +00:00
James Turner
ce3a7b20fe
Crash-fix: mat-lib is now reference-counted.
...
Adapt to corresponding SG change to make SGMaterialLib be ref-counted,
and have the 'reload-materials' command notify the tile-manager of this,
so it can update the options struct it passes to new tiles.
2014-01-19 16:49:44 +00:00
James Turner
2df74c9b63
Silence some clang warnings.
...
(Unused private variables)
2014-01-19 16:49:43 +00:00
Erik Hofman
fe79be0702
Do not use the new JSBSim ground reactions code by default until there is a good way to identify Nasal scripts that do this themselves
2014-01-19 15:23:15 +01:00
James Turner
49a0398fc6
Make lifetime of CameraViewportListener explicit.
...
MSVC is warning on this usage, as is the Mac release build. Working
around the issue for the moment.
2014-01-18 18:49:03 +00:00
James Turner
2a460d8e86
Make CrashRpt link optional
...
(The variable contains -NOTFOUND, not the empty string, so we can't
just link against it regardless)
2014-01-18 15:36:20 +00:00
James Turner
590be3f8ff
Initial integration of CrashRpt for Windows.
2014-01-18 14:51:19 +00:00
Erik Hofman
e3e44e49ee
Sync. with JSBSim CVS: although it looks a large part it is mostly bug fixes and fixing compiler warnings
2014-01-18 10:56:15 +01:00
James Turner
f98af7eb35
Fix un-initialized memory read.
2014-01-17 17:17:47 +00:00
Clément de l'Hamaide
c0c8158ca1
FGCom: force 8.33KHz to be handled even if the frequency doesn't exist
2014-01-16 18:15:58 +01:00
James Turner
2a354e224c
Make Traffic-via-terrasync conditional
...
GUI dialog already set the property, just need to pick it up.
2014-01-15 22:01:02 +00:00
James Turner
5e7574c9c2
Bug-fix: Cocoa menus work in aircraft with custom dialogs.
...
Restarting the GUI could cause Cocoa menus to misbehave, due to
destruction behaviour of SGBinding. Use new clear() helper in the
short term to work around this.
2014-01-15 22:00:09 +00:00
James Turner
2b55acd3eb
Tweaks to fg-aircraft handling.
...
Warn (but do not require, since people would probably complain) when
added paths do not contain an Aircraft subdir. When people specify
a path which ends in /Aircraft, use the parent directory.
2014-01-15 17:10:12 +00:00
James Turner
d8a3f160ef
Bugfix: guard against corrupted airport XML.
2014-01-14 13:42:11 +00:00
James Turner
1b9394fc37
Crashfix: move spatial, AI queries in map-widget
...
In threaded OSG drawing, MapWidget::draw runs in the render
thread context, but touches lots of main thread state. Move most of the
work to an update() helper run on the main thread instead, so draw()
mostly makes pure GL calls.
(This is a fix for 3.0, the real solution is to migrate to a
Canvas-based map and GUI)
2014-01-14 13:11:06 +00:00
James Turner
976f3115a9
GPS bug fix: restore startup mode.
...
- the 'default to current airport' behaviour got broken by the
changes to the scratch.
- expose a 'valid' flag on WP1
2014-01-14 13:04:52 +00:00
James Turner
9993e0a588
Fix bug 1286 - mouse scroll-wheel+shift ignored
...
On Mac, the OS is mapping shift+wheel to horizontal scrolling for
those of us without a mighty-mouse or trackpad. Detect this case
and map back to vertical scrolling inside FlightGear for the moment.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1286
2014-01-13 21:08:32 +00:00
James Turner
061154d7a6
Reset, fix Nasal timers added on shutdown.
2014-01-13 20:13:34 +00:00
James Turner
4d0eeb8184
Reset work, fix time-slew on OSG event handling.
2014-01-13 20:13:34 +00:00
Clément de l'Hamaide
606643a199
FGCom: update special_frq for built-in/standalone sync
2014-01-12 21:17:57 +01:00
James Turner
7316360421
Clear the custom OSG notify logger on shutdown.
...
Should avert crashes due to order of static destruction.
2014-01-12 17:18:35 +00:00
James Turner
7b8a64b614
Crash fix: thread-safe material conditions
...
When tiles are being loaded, re-evaluate the materials cache once
per update cycle. (This is probably too often, but no worse than the
previous approach).
2014-01-06 08:28:40 +00:00
James Turner
448539a6b9
Fix crash: Quit via Cmd-Q on Mac.
...
Tweak static-init order of some OSG objects, so they are valid when
fg_terminate runs, and hence orderly shutdown in possible.
2014-01-04 17:27:55 +00:00
James Turner
9e773e85f8
#1291 , hang on exit with OSG threading.
...
Explicitly stop threading during shutdown, before destroying various
rendering / viewer related structures.
2014-01-04 16:10:42 +00:00
James Turner
580a7f07dd
Fix METAR-download bug on Windows.
...
https://code.google.com/p/flightgear-bugs/issues/detail?id=1207
Use the new (in SimGear) sgGMTime helper when comparing METAR age.
This prevents users in time-zones 4 or more hours ahead of GMT from
being unable to use METAR reports.
2014-01-01 21:05:29 +00:00
James Turner
47e802e674
Fix for the fix: check for a viewer.
...
- avoid a crash if we bail out before creating the viewer (missing
data or bad aircraft)
2013-12-30 17:16:53 +00:00
James Turner
b0db2a764f
Fix crash on exit (cancel the osgDB pager)
...
- borrow some code from the new reset codepath to cleanly stop the
OSG pager thread during normal shutdown. Avoids a race-condition
destroying various structures the pager thread might be modifying.
2013-12-30 15:24:15 +00:00
Thomas Geymayer
5b537b6999
PID: ensure correct initialization with large sampling interval
2013-12-22 14:18:25 +01:00
James Turner
0940a33907
Use a real function to wrap isfinite differences.
...
Don't worry about compiler ability to inline the macro for the moment;
use a real function to ensure lookup is stable on different compilers.
2013-12-22 11:18:48 +00:00
James Turner
43358a2418
Fix a crash where we show a message-box on start.
...
Don't assume we got as far as creating a viewer when destroying
the renderer.
2013-12-21 15:31:27 +00:00
James Turner
c717b70231
Support non-C99 mode in MSVC.
2013-12-21 15:31:27 +00:00
James Turner
4c51ad0d87
Cocoa: fix warning about deprecated function.
...
SetFrontProcess is deprecated, use NSApplication instead now we
have the CocoaHelpers file.
2013-12-21 15:31:27 +00:00
James Turner
b3dbfe21fe
Fix some warnings from new Xcode.
...
finite is deprecated, use C99 isfinite as recommended.
2013-12-20 12:42:12 +00:00
Rebecca Palmer
4427ee7406
Always make sure the Terrasync directory is set and exists
...
This was previously done only if Terrasync was on, but this made
it impossible to use the GUI dialog to turn it on for the first
time in a fresh install
2013-12-20 12:39:23 +00:00
James Turner
24c1129140
Bugfix: avoid sky colour errors when vis < 1000m
...
(needs the accompanying Simgear change in SGSky)
2013-12-19 17:18:09 +00:00
James Turner
5cf8157a66
Security: more conservative dir permission masks.
...
Use 0755 instead of 077 everywhere we create a directory.
2013-12-19 14:53:39 +00:00
James Turner
52f2f5ff78
Bugfix: remove the (totally broken) skyblend option
2013-12-19 14:53:39 +00:00
Torsten Dreyer
d1cae3ab4d
autopilot: add the forgotten RateLimitFilter
2013-12-19 09:40:24 +01:00
Thomas Geymayer
67be73fdde
Expose SGPath to Nasal
2013-12-18 10:30:19 +01:00
Torsten Dreyer
1ffa09cc49
Add new filters from Alan Teeder
2013-12-17 17:28:16 +01:00
James Turner
12ea6824eb
Rembrandt: fix sky color at altitude.
...
Don't override global clear color in the Lighting stage. Should fix ugly 'circle' appearing due to sky sphere being clipped when above 32000 ft.
Fix suggested by Emilian H.
2013-12-17 13:56:26 +00:00
Rebecca Palmer
617e638242
Stop --native-ctrls option from breaking JSBSim
...
Remove unused instance of FGControls from FGNativeCtrls, as it was
binding to the property tree in place of the globals->get_controls
that JSBSim reads input from, blocking all input
2013-12-15 21:32:40 +00:00
Rebecca Palmer
bf1fe65bc5
Disable screensaver: initial Linux-only implementation
...
Add a function fgOSDisableScreensaver() that attempts to disable the
screensaver (currently only succeeding on Linux), and call it on startup.
CMake option USE_DBUS (on by default), requires libdbus-1
Motivation: most screensavers do not monitor the joystick
https://bugs.launchpad.net/ubuntu/+source/flightgear/+bug/793599
Discussion: http://sourceforge.net/p/flightgear/mailman/message/31717061/
2013-12-15 21:18:22 +00:00
James Turner
b3534ff8c2
Reset: use new copy-properties helper.
2013-12-15 20:46:34 +00:00
James Turner
f07042f7d7
Use binding-list fire helper.
2013-12-15 20:43:27 +00:00
James Turner
df3f842f8a
Reset: Clear the pager queues, preserve properties.
2013-12-09 23:27:40 +00:00
James Turner
5d8fa03090
Shutdown: clear effects cleanly.
...
Avoids effects (and referenced properties / objects within) persisting
due to references in the effects cache, after globals are gone.
2013-12-09 23:27:40 +00:00
Thomas Geymayer
93dff17649
Set "/sim/fghome-readonly" to false also for Windows.
...
"/sim/fghome-readonly" is read with a default of false always,
but I think the code should set it explicitly to false for all
platforms.
2013-12-09 23:16:25 +01:00
Thomas Geymayer
13d94f240c
Check return values if write and unlink.
2013-12-09 23:15:35 +01:00
Thomas Geymayer
5fb7b2e12c
Canvas: Now only one global SystemAdapter is used...
2013-12-09 23:13:45 +01:00
James Turner
0dcfd361a4
Kill an obsolete static in the osgViewer wrapper.
2013-12-09 21:47:18 +00:00
James Turner
7719ad920d
Bug 1289, crash on AP reload
...
- missed update for revised subsystem ownership in the AP code.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1289
2013-12-09 21:46:34 +00:00
ThorstenB
01b824929c
Route manager support to read flightplans in GPX format
2013-12-08 19:36:16 +01:00
Thomas Geymayer
3a170e1a39
Scripting: clean up a bit and user more of cppbind.
2013-12-08 19:24:45 +01:00
Thomas Geymayer
cac6407a8e
Add positioned.diff for fast difference calculations on positioned lists.
2013-12-08 19:24:45 +01:00
James Turner
0bad1258a3
Reset: clear the viewer scene.
...
On renderer shutdown, clear the viewer scene completely.
2013-12-07 15:06:39 +00:00
Thomas Geymayer
39c41eaab9
FGLinuxEventInput: check return value of write.
2013-12-07 13:48:04 +01:00
Thomas Geymayer
fcc6d3edc2
Expose SGPropertyNode::removeAllChildren() to Nasal.
2013-12-07 13:47:10 +01:00
James Turner
5a1a1781e2
Reset: ensure FGODGuage shutsdown cleanly.
...
- remove ODGuage instances during shutdown phase (don't wait until
deletion)
2013-12-06 18:45:45 +00:00
James Turner
bb0aee4c02
Renderer: get rid of static scene references.
2013-12-06 17:38:23 +00:00
James Turner
6763d232cd
Reset: clear the osg object cache
2013-12-06 17:38:23 +00:00
janodesbois
71fa329f27
velocities/uBody got a capitale B forgot this in mp tree, maybe it would be better to male it it lower case?
2013-12-04 21:13:09 +01:00
James Turner
7ff9792b96
Reset: listener cleanup
2013-12-04 09:11:26 +00:00
James Turner
8cd71ff1ef
Reset: clear effects cache
2013-12-04 09:09:47 +00:00
James Turner
9c11dfd545
Reset: free nasal-module-listeners on shutdown.
2013-12-03 21:38:45 +00:00
Gijs de Rooy
4dbcdbcceb
Output route manager ETA in seconds
2013-12-03 22:37:53 +01:00
James Turner
3e1af8248a
Fix a copy-paste bug in the route-manager.
...
autopilot/route-manager/departure/field-elevation-ft was giving
destination field elevation, not departure. Thanks to Hyde Yamakawa for
noticing this.
2013-12-01 21:48:03 +00:00
James Turner
8aba04c3a2
Reset: change FDM ownership
...
- make the FDM owned via a SGSharedPtr
- drop some property references explicitly.
2013-12-01 21:37:17 +00:00
James Turner
8bcf597086
Remap JSB-sim debug levels from SG_LOG levels.
...
(Avoids the entire aircraft config being dumped to the console at
log-level info)
2013-12-01 21:37:16 +00:00
Clément de l'Hamaide
efdb488736
Fix accent bug in MapWidget
2013-12-01 18:50:54 +01:00
Thomas Geymayer
e8f4e25c8c
CanvasWidget: get new GUI camera on reset.
2013-12-01 12:58:17 +01:00
Thomas Geymayer
bf477ba678
Canvas GUI: completely reset on reinit
2013-12-01 01:35:30 +01:00
bcoconni
b996eca299
Fix for bug #1238 : the accelerations, velocities, etc. are now updated to a consistent set of values prior to exiting the trim routines.
2013-11-29 19:37:39 +01:00
James Turner
25bf3793bd
Reset: fix a static in play-audio-sample
...
Had to add this to FGGlobals, since it needs to be cleaned up
alongside the sound manager (which ideally it would be owned by,
but that's a change for another day)
2013-11-25 23:53:58 +00:00
James Turner
4dcd96c4af
Remove dependency on command-mgr singleton
...
Use explicit instance (from globals)
2013-11-25 09:14:46 +00:00
bcoconni
69baf3a9d6
Synchronized with JSBSim/CVS
2013-11-24 20:12:17 +01:00
bcoconni
d3f6ab38c2
Fixed a race condition so that FG runs most of the time (instead of crashes most of the time)
2013-11-24 20:06:28 +01:00
James Turner
77075a2d66
Cocoa: more Function-key shortcuts in menus
2013-11-24 17:25:02 +00:00
James Turner
d99109c9e4
Reset: do re-init Ghost bindings.
2013-11-24 15:10:00 +00:00
James Turner
57c9ed1ae3
Cocoa menu fixes for reset
2013-11-24 15:10:00 +00:00
James Turner
2015016466
Break config init / aircraft loading apart.
...
Allows aircraft loading to proceed during reset without original
values over-writing the updated ones.
2013-11-24 15:10:00 +00:00
Thomas Geymayer
42ab4fd222
Canvas/GUI: add/remove placement factories on init/shutdown.
2013-11-24 15:50:44 +01:00
James Turner
af6095c5d1
Reset: do general init on reset path
2013-11-22 22:52:33 +00:00
James Turner
0fbc448af0
Nasal changes for reset
...
- reduce use of global context (will die soon)
- replace static wrappedNode ref which breaks reset
2013-11-22 22:52:33 +00:00
James Turner
c3c0f68f76
NavData: can refresh some in-place.
...
(Hacking to support faster scenery-path switching)
2013-11-22 22:52:33 +00:00
James Turner
1d8b080782
Reset: delete mat-lib, re-create on reset
2013-11-22 22:52:29 +00:00
James Turner
1f699984e9
One more Mac helper moved into CocoaHelpers.mm
2013-11-19 22:01:11 +00:00
James Turner
875227057c
Structural work (init + shutdown) for new reset system.
...
The new approach is still work in progress (compile time option) and
non-functional, existing reset still works.
2013-11-19 17:38:51 +00:00
James Turner
2331956539
One more Mac helper moved into CocoaHelpers.mm
2013-11-18 15:52:30 +00:00
James Turner
8b4b49cad2
Read-only mode fixes.
2013-11-18 15:40:14 +00:00
James Turner
2455d86d8b
Fix a propObj -> node conversion bug.
...
Thanks to Bertrand Coconnier for spotting this.
2013-11-18 08:40:34 +00:00
Clément de l'Hamaide
2d145e072e
FGCom built-in: restore speaker volume settings
2013-11-17 23:37:37 +01:00
janodesbois
6afc17a763
static.cxx msvc bug correction.
2013-11-17 17:26:56 +01:00
Eric van den Berg
8770e61d1b
static port can be side-slip/alpha dependant, to add a part of total
...
pressure on the reported static pressure.
2013-11-16 23:21:11 +01:00
James Turner
2c4ac08895
Globals: delete/shutdown tweaks.
...
Avoid aircraft-model crash in accessing fx/sound
during shutdown.
2013-11-16 14:25:12 +00:00
James Turner
fe357ba2a9
Refactor aircraft-dir visiting.
...
Cap maximum depth to avoid bug 865
2013-11-16 14:24:37 +00:00
James Turner
d2962ffb2d
Reset: refactor static CameraGroup ownership
2013-11-16 13:02:47 +00:00
James Turner
98078cdd55
Reset: make fgSetDefaults non-static.
2013-11-16 13:02:43 +00:00
James Turner
88aef8caf8
Reset: guard against picks during re-init
2013-11-16 12:28:56 +00:00
James Turner
0191b597e7
Environment manager: use aircraft_pos helper
2013-11-16 12:28:51 +00:00
James Turner
b4b0d635bd
Reset: AIbase, drop references
2013-11-16 12:10:53 +00:00
James Turner
780393e2fe
Release property refs on shutdown.
2013-11-16 11:56:42 +00:00
James Turner
fecb475145
Refactor Cocoa helpers.
...
Change away from using deprecated FSFindFolder.
2013-11-16 10:58:17 +00:00
James Turner
ea822a99e1
Fix some warnings identified by Clang
...
_ unused private members. Removed in most cases, commented
out in a couple of cases where it feels as if the code might be used in the future.
2013-11-16 09:41:33 +00:00
James Turner
2bff8d2220
Fix Linux build
...
Linux needs explicit includes for open() and flags.
2013-11-16 09:31:18 +00:00
James Turner
0cda3cbfb2
Multiple-instance support.
...
Write PID file to FG_HOME, use this to detect multiple launches.
When this situation is detected, set a marker property and place various
objects into read-only mode, such as the NavCache and TerraSync.
PID file is created using open+unlink semantics on POSIX, and
DELETE_ON_CLOSE on Windows, so it will be removed when fgfs exits,
even if killed or crashes.
2013-11-15 21:04:15 +00:00
James Turner
13d5fd4c25
More tweaks for Linux.
...
(Needs explicit include of stdio, and stdarg in the header)
2013-11-14 23:32:02 +00:00
James Turner
ef55d175dd
Linux needs stdarg.h for va_args
2013-11-14 23:14:51 +00:00
James Turner
1f7fdc3e07
Kill some archaic options.
2013-11-14 23:14:46 +00:00
bcoconni
139af0026f
Synchronized FG with the removal of 'using std::*' in simgear's easyxml
2013-11-14 22:07:50 +00:00
James Turner
1db9d25f56
Translation helpers, add global functions.
...
These are designed for compact access to translations, including a
positional printf.
2013-11-14 22:03:00 +00:00
James Turner
136cd6ac51
Message box support.
...
This allows us to display a platform-native dialog for problems
which occur early in startup (before we can show a PUI/Canvas dialog).
In particular this improves feedback where FG_HOME, FG_DATA or
aircraft selection is wrong, all of which happen very early in startup.
2013-11-14 22:02:29 +00:00
Clément de l'Hamaide
7e90c8aa2b
Force 32 bits depth on .ico - only for Windows
2013-11-14 21:24:56 +01:00
James Turner
e25aa4f004
Fix some static property references.
...
(These cause problems when replacing the property tree during reset)
2013-11-14 16:37:46 +00:00
Clément de l'Hamaide
1c49890bec
Icons update
2013-11-13 22:49:07 +01:00
James Turner
4a3b8c5765
Reset: changes for SGSubsystem ownership.
...
Keep in sync with updated ownership model in subsystem groups.
2013-11-12 23:36:18 +00:00
James Turner
44246d7708
Reset: adjust for tweaked TerraSync API
2013-11-12 23:10:19 +00:00
James Turner
af40bcb60e
Reset: explicit close-window function.
...
Allow orderly shutdown of OSG before cxa_finalize
2013-11-12 22:57:13 +00:00
James Turner
58fa30b24d
Reset: uninstall deletion-manager
2013-11-12 22:55:50 +00:00
James Turner
72b85b28da
Reset: route-manager guard against no plan.
2013-11-12 22:55:36 +00:00
James Turner
e008f610d1
Reset: ATIS shutdown fix
2013-11-12 22:51:23 +00:00
James Turner
41eaa58c13
Reset: panel-node cleans up listener.
...
Also get rid of the global FGPanelNode pointer.
2013-11-12 22:51:15 +00:00
James Turner
2322fca9c9
Reset: guard against NULL HUD / lighting
2013-11-12 22:51:10 +00:00
James Turner
6eb4e833ae
Reset: sound manager can be shutdown cleanly
2013-11-12 22:50:18 +00:00
James Turner
9a77efacd9
Reset: drop FGLight prop refs on unbind()
2013-11-12 22:49:48 +00:00
James Turner
0751556aab
Reset: remove commands
2013-11-12 22:47:46 +00:00
James Turner
069a098909
Reset: use simple properties for TimeManager
2013-11-12 22:47:45 +00:00
James Turner
881df711ba
Reset: Nasal can be shutdown.
...
Also guard against duplicate init of cppbind wrapped classes.
2013-11-12 22:47:41 +00:00
Thomas Geymayer
accdf97785
Allow disabling embedded nasal (load/unload scripts).
2013-11-10 23:32:47 +01:00
James Turner
af6131b556
Bug 1246, Nasal repeating timers fire immediately.
...
Initial delay is passed separately to interval in the
API, oops.
2013-11-09 08:01:57 -08:00
James Turner
23fa13c76b
Bug 1023, crash on replay.
...
Fix by Jeff Biggs, commit 7d80b30d28baccf80958d9db488364a9a5c3884b from osgearth branch.
2013-11-09 07:13:00 -08:00
Eric van den Berg
49131b5a7a
pitot system stalls at high angles, using /system/pitot[x]/stall-deg
2013-11-08 20:18:27 +01:00
James Turner
8622661237
Further tuning of arg->num conversion.
2013-11-07 06:29:58 -08:00
James Turner
0d740bcfae
Simpler Nasal for leg constraints.
...
Thanks to Philosopher for the suggestion.
2013-11-06 16:58:09 -08:00
James Turner
f0011bc759
Nasal: accept strings-containing-ints as
...
arguments to leg altitude/speed constraints.
2013-11-06 15:50:13 -08:00
Torsten Dreyer
6a09f01ca9
mag-compass: add deviation table and pitch property
2013-11-05 22:26:50 +01:00
Thomas Geymayer
4c9ab24b66
Keep ref_ptr in FGNasalModelData (should fix #1234 )
2013-11-01 20:52:55 +01:00
janodesbois
636b6ca767
pitot adapted to /velocities/mach being the mach norm
2013-10-31 22:29:47 +01:00
janodesbois
d83bc90ca0
Revert "pitot tube using velocities/mach as mach norm, not the u componant"
...
pushed a testing patch, need to learn a good workflow ...
This reverts commit 05fa7130fc
.
2013-10-31 22:27:29 +01:00
janodesbois
05fa7130fc
pitot tube using velocities/mach as mach norm, not the u componant
2013-10-31 20:28:12 +01:00
janodesbois
78301e95b4
make YASim report /velocities/mach as the speed's norm
2013-10-31 20:25:08 +01:00
janodesbois
00aacd6442
Revert "JSBSim fix: /velocities/mach was reported as totale mach speed"
...
This reverts commit 4dde865cbc
.
2013-10-31 20:21:13 +01:00
James Turner
02a5261797
Reset: GUI can be shutdown.
2013-10-29 23:02:46 +00:00
James Turner
e62a4f502a
Reset: AI shutdown unbinds AIbase instances.
2013-10-29 23:02:22 +00:00
James Turner
71a8eac8bd
Reset: view manager can be be shutdown.
2013-10-29 23:02:15 +00:00
James Turner
ad7a3e854d
Reset: TimeManager can be unbound.
2013-10-29 23:01:58 +00:00
James Turner
06db85f42b
Reset: given FGScenery a shutdown method.
...
Forces OSG branch references to be dropped.
2013-10-29 23:01:48 +00:00
James Turner
a488086d30
Reset: use a smart point for model-placement.
2013-10-29 23:01:38 +00:00
James Turner
75a01aa588
Reset: ensure Wx controller destroys cleanly.
2013-10-29 23:01:29 +00:00
Torsten Dreyer
35dad8c4c4
generic binary protocol: add 'word' datatype
...
this patch adds support for binary datatype word (aka int16)
now we have int (32bit), word (16bit) and byte (8bit) integer types
2013-10-28 22:57:22 +01:00
Clément de l'Hamaide
1970a8e0a8
FGCom: allow ulaw codec too
2013-10-28 21:56:27 +01:00
janodesbois
4dde865cbc
JSBSim fix: /velocities/mach was reported as totale mach speed
...
should be the U axis component (machU)
2013-10-28 05:48:53 +01:00
Thomas Geymayer
ce09c320d3
HTTP: Rename urlretrieve/urlload to save/load.
2013-10-27 23:39:52 +01:00
Thomas Geymayer
cf270bde22
Expose HTTP module to Nasal.
2013-10-27 19:39:22 +01:00
Thomas Geymayer
8a582e6376
Update/refactor for simgear HTTP changes.
2013-10-27 19:39:22 +01:00
janodesbois
f08ea4a7bb
velocities/u,v,wbody-fps are exposed in the property tree for the mp planes, extracted from motionInfo
2013-10-27 19:32:58 +01:00
janodesbois
a6030bc9ce
forgot a .hxx modif in larcSim for bug 202
2013-10-27 14:51:19 +01:00
James Turner
4e7a22f589
Default to 32-bit color buffers.
...
Requesting 16-bit is probably doing more harm than good on modern
hardware. Command line switch to change works as before.
Also update the default window size, although this is actually
set by preferences.xml
2013-10-27 13:03:01 +00:00
James Turner
c72ac27098
Experimental sorter for airports.
...
Sort by size (cumulative runway length).
2013-10-27 13:03:01 +00:00
janodesbois
ef1ec369db
gsdi correction, wind correction is not needed anymore, as wind composant was removed from u,v,wbody-fps
2013-10-27 13:24:57 +01:00
janodesbois
ecfdf354f1
considering u,v,wbody-fps are the ECEF velocity expressed in body axis, change in all functions/variables name dealing with them, wrongly named with wind, or even north, east, down.
2013-10-27 13:24:54 +01:00
James Turner
d127f7709f
Remove confusing reference to SDL/GLUT
2013-10-26 21:12:57 +01:00
James Turner
3cdf948c8b
SGI and Borland compilers are gone.
2013-10-26 21:11:02 +01:00
James Turner
6bd2acab78
Window console changes
...
- default to SUBSYSTEM:WINDOWS (we can still AllocConsole if needed)
- add --console option to get a console on Windows
- ensure --show-aircraft and --help modes show the console automatically.
2013-10-26 21:07:23 +01:00
James Turner
cc23e29ef0
Fix warning 'AI Aircraft without FlightPlan'
...
Remove the false warning when using AI Aircraft without a flightplan.
This is (it turns out) a supported use case.
2013-10-26 18:45:27 +01:00
James Turner
e93dc27153
Tweaks to startup configuration handling
...
- restore-defaults kills the nav cache, terra-sync cache
- new ignore-autosave option bypasses autosave.xml and leaves it
untouched (does not over-write on exit)
2013-10-26 18:29:31 +01:00
Clément de l'Hamaide
d5b70e98e0
FGCom[-sa]: add IAX denoiser and auto gain + set silence threshold
2013-10-26 13:18:08 +02:00
Clément de l'Hamaide
3952ab6fe5
FGCom: remove unecessary assignation value
2013-10-26 01:48:31 +02:00
Clément de l'Hamaide
428f9031aa
FGCom: make COM1 and COM2 switchable with Shift+Space
2013-10-26 01:28:05 +02:00
James Turner
5c97b7e713
Change tooltips to enable explicit.
...
Instead of using a negative delay to disable, make the setting
operate directly. This simplifies UI on top.
2013-10-25 09:18:59 +01:00
James Turner
81e86f5b20
Pause popup respects the preference.
2013-10-24 23:23:01 +01:00
Clément de l'Hamaide
6332693ae5
FGCom: use Speex codec instead of GSM codec
2013-10-24 12:14:31 +02:00
Thomas Geymayer
c4f02cc41e
Fix for #1244 (Canvas placements with pick animation).
2013-10-24 01:30:54 +02:00
Thomas Geymayer
961905a6cf
NasalCanvas: expose Element::getParent() to Nasal
2013-10-23 17:11:56 +02:00
James Turner
2f51052860
FGCom: initialise some variables.
...
Avoid a crash on re-init where _initialized member was never set.
2013-10-23 09:38:16 +01:00
Torsten Dreyer
60575c3b8c
generic protocol: another attempt to make MSVC smile
2013-10-22 21:02:06 +02:00
Torsten Dreyer
6b75b23309
generic protocol: don't rely on GNU extension
2013-10-22 14:17:35 +02:00
James Turner
47ecc0ce29
Fix an MSVC debug crash.
...
Ensure the route-manger unregisters itself from the flightplan
on destruction, since it is a delegate.
2013-10-21 23:38:01 +01:00
James Turner
6845ff56f3
Fix download rate on splash screen.
2013-10-21 23:04:23 +01:00
Torsten Dreyer
baebc9b64c
Add protocol wrappers to the generic protocol
...
This adds two wrappers to the generic protocol to help interfacing
small microcontrollers (arduino et. al.)
When receiving binary data over a sequential link, it's hard to tell where a packet
starts and where it ends. Two existing solutions gets implemented with this patch:
KISS (http://www.ka9q.net/papers/kiss.html ) originally developed for ham radio
packet radio devices and STX/ETX byte stuffing.
This adds only the OUT direction, IN will be implemented over the next weeks.
For implementation details on the client (microcontroller's) side, check out
http://gitorious.org/flightgear-pmpt/cmpt/
This implementation is used in the c172fg project to be presented at FSweekend 2013.
2013-10-21 20:43:22 +02:00
James Turner
b30408b862
Fix bug 1227, cache thrash on Win.
...
Since we skip POI load on Windows, we also need to
omit the stat check. Apologies for the dumb mistake.
(Will back port to 2.12 branch)
2013-10-21 13:26:08 +01:00
James Turner
e3841fc9ef
Fix typos.
2013-10-20 20:46:40 +01:00
James Turner
38193d7843
Support explicit aircraft interior models.
...
- allow multiple model files in the -set.xml specification
- allow each model to be tagged with a usage string
- put models tagged 'interior' into a LOD group.
This is experimental, the LOD ranges will be made configurable soon.
2013-10-20 20:46:33 +01:00
Thomas Geymayer
771586854b
Make build information readonly and clean up debug output.
2013-10-20 12:59:44 +02:00
James Turner
46e8c65612
Expose OSG notify severity at runtime.
...
Define a new property /sim/rendering/osg-notify-level and listen
to it, so we can update the notification level at run time.
2013-10-20 09:44:38 +01:00
James Turner
80fb317eeb
Don't speak < or > when using Festival.
...
Patch from HomerJ, avoid sending some additional special
characters to Festival, which renders then as 'greater than' /
'less than'.
2013-10-20 09:43:48 +01:00
Thomas Geymayer
e4b8e1ea07
Trigger segfault/stacktrace to trace memory corruption.
...
Catch OSG error message if osg::Reference derived class
is deleted with non-zero reference count and trigger a
segfault to get a stack trace.
2013-10-20 01:26:32 +02:00
Thomas Geymayer
6b88302037
Provide debug information on thread safety of osg::Referenced.
2013-10-19 01:20:28 +02:00
James Turner
1e746500dd
Validate arg to Nasal airport.comms().
...
Thanks to HomerJ for the catch.
2013-10-18 15:54:44 +01:00
James Turner
f6fafffeb5
Initial hacking on terra-sync of traffic files.
2013-10-17 17:33:30 +01:00
Thomas Geymayer
b35119d408
FGNasalModelData: also log path of model.
2013-10-17 13:29:38 +02:00
Thomas Geymayer
d27919cd16
More logging for FGNasalModelData.
2013-10-17 11:48:01 +02:00
Thomas Geymayer
5c38395395
NasalSys: do not print invalid elements for error backtraces.
2013-10-16 23:41:38 +02:00
James Turner
f499913762
Map shows all airports when zoomed in.
...
Bug 1135, or part of it.
(Ignore the short-runway culling when zoomed in)
2013-10-15 22:28:10 +01:00
James Turner
a45e3d1d07
Bug 1217, crash on AI traffic data.
...
Guard against flight plans with missing airport
information.
2013-10-15 22:27:19 +01:00
James Turner
386d87e098
Cleanup exit handling.
...
Replace many lingering calls to exit() from the code,
replacing most with exception throws, which can be
caught by the existing mechanisms.
Update the option-parsing code to return an explicit
value indicating what to do (e.g., exit status to return
to the shell).
2013-10-15 22:16:50 +01:00
James Turner
78f2f2f142
Work-around for issue 1231.
...
Force sglog() to be initialised before at exit
handler is registered, so logging can be used from
inside our exit handler.
2013-10-15 22:02:36 +01:00
Thomas Geymayer
26a3573aea
Update/simplify for SimGear changes.
2013-10-15 17:48:13 +02:00
Thomas Geymayer
5c42071fbb
Scripting: get rid of gcHash and use new SimGear/Nasal functions.
2013-10-15 00:58:21 +02:00
ThorstenB
7ce2107336
Add support for IGC logging protocol.
...
Many light aircraft include GPS loggers capable of recording the flight
path using IGC records. Lots of third party utilities are available to
analyze, process and convert igc files.
Usage: "fgfs --igc=file,out,1,OutputFile.igc"
2013-10-14 22:13:31 +02:00
Thomas Geymayer
df7e56b049
Canvas: update for SimGear changes.
2013-10-12 00:43:30 +02:00
Dirk Dittmann
778cc8c6a0
GPS
...
- greatCircleCrossTrackError added to LegWayptCtl, DirectToController, OBSController
- config overflight seqence
config/over-flight-arm-angle-deg 90
config/over-flight-arm-distance-nm 1
config/over-flight-distance-nm 0
2013-10-03 18:08:02 +02:00
James Turner
761b4835f9
Make positioned queries more defensive.
...
Validate the filter type range, to avoid crashing on bad ranges.
Accept arbitrary type lists in the Nasal API for searching by distance
2013-10-02 22:28:19 +01:00
James Turner
b2759d018b
Fix a crash with GPS dialog.
...
If an invalid filter type is supplied, don't run the queries.
This showed up with GPS dialog, since the PUI combo box defaults to
no entry selected, not the first entry.
2013-10-02 22:08:17 +01:00
James Turner
f5b352429c
Bug 1176, crash loading malformed scenario.
...
http://code.google.com/p/flightgear-bugs/issues/detail?id=1176
Don't crash if a scenario specifies a missing or invalid flightplan
(check the flightplan is valid before setting it)
2013-10-01 19:57:07 +01:00
James Turner
cc37e31ac9
Move cache schema into its own file.
2013-09-30 21:55:43 +01:00
James Turner
ad4834c651
Splash-screen feedback on scenery download.
2013-09-30 16:36:13 +01:00
James Turner
cb087dc4de
Tile-manager: kill off tile-refresh.
...
Now the manager waits on terrasync, we never need to do the
'experimental' refresh feature, since we only load finished tiles.
2013-09-30 12:07:35 +01:00
James Turner
e03ebef99f
Tile-Manager waits on TerraSync to load.
...
Using a new TerraSync API, make the tile manager wait on actively
syncing tiles before sending them to the SceneryPager. This resolves numerous
issues with missing tiles, including at startup.
2013-09-30 12:03:47 +01:00
James Turner
52e5a9abe8
Reduce amount of log output at level=debug.
2013-09-28 14:47:20 +01:00
James Turner
ff7c280d57
Fix portability issue with system sqlite 3.8
2013-09-28 14:34:01 +01:00
James Turner
97d89a0c47
Remove all references to libsvn from build.
2013-09-28 14:15:47 +01:00
James Turner
1a9e479e2a
Terrasync tweaks.
...
- Enable the terrasync persistent cache
- Ensure terraysync scenery dirs exist before NavCache init, so the paths are stable
- Notify TerraSync on reposition, so we sync the full 3x3 set of tiles.
2013-09-28 14:07:45 +01:00
James Turner
dfa1353a8a
Kill another BOM.
2013-09-27 18:06:18 +01:00
James Turner
c55849d644
Remove UTF-8 BOM.
...
Seems to be upsetting the compiler on Jenkins.
2013-09-27 17:08:36 +01:00
Clément de l'Hamaide
c022bb8d51
Move IAXClient library into 3rdparty directory
...
Remove ENABLE_IAX option
Add an improved FGCom standalone as part of FG in utils directory
2013-09-27 16:05:45 +02:00
Torsten Dreyer
8d415eafa3
make the metar command line tool case insensitive
2013-09-26 16:49:27 +02:00
James Turner
0206de2d2c
Relocate Sqlite3 sources, upgrade to 3.8.0.2
...
Move sqlite source to a separate location, and build with
an intermediate library target. This permits us to set compile options
easier, including an important one, NDEBUG, which improves performance.
Sqlite 3.8.0.2 also includes an updated query planner which may improve
some queries, to be tested.
2013-09-26 09:52:41 +01:00
Anders Gidenstam
5a4b9c617c
Restored JSBSim to a working state in FlightGear.
2013-09-23 22:33:23 +02:00
Anders Gidenstam
22d91528f8
Synchronized with JSBSim/CVS.
2013-09-23 22:30:44 +02:00
Clément de l'Hamaide
023c136d40
Fix spelling error by Markus Wanner
2013-09-23 01:02:10 +02:00
Clément de l'Hamaide
639c7b82ee
remove unused #define
2013-09-22 17:42:24 +02:00
Clément de l'Hamaide
d948e34af8
Implement IAX callerID feature
2013-09-22 17:38:47 +02:00
James Turner
7454d4cc4d
Tweak AI Traffic model loading.
...
Traffic with models in additional aircraft dirs or data dirs is
displayed correctly now.
2013-09-18 12:08:20 +01:00
James Turner
33425c671d
Support for multiple data dirs.
2013-09-17 07:47:58 +01:00
James Turner
fda64d840e
Use helper to validate printf formats.
...
Simgear contains a new helper to validate format
strings for potentially dangerous replacements, use
it to fix the issues raised by Debian bug trackers.
2013-09-15 19:17:54 +01:00
Christian Schmitt
9a7e32d4a9
fix uninitialized variable reported by valgrind
2013-09-15 15:09:43 +02:00
James Turner
9457ba024a
Fix for #1117 :
...
fix another issue similar to CVE-2012-2090
In FGClouds::buildlayer(), prevent passing '%n' to snprintf().
From: Rebecca Palmer
2013-09-14 17:43:24 +01:00
James Turner
dab588c789
Fix for CVE-2012-2091:
...
add checks against buffer overruns
CVE-2012-2091 mentions various buffer overruns in simgear and
flightgear. This patch addresses this issue in Rotor::getValueforFGSet().
From: Tom Callaway
2013-09-14 17:39:49 +01:00
James Turner
38a373ba84
Display AI traffic route in map.
...
Add some helpers so MapWidget can show the
origin and destination of AIAircraft with a FlightPlan.
2013-09-14 12:17:33 +01:00
Thomas Geymayer
39c129cee6
Fix signed/unsigned missmatch.
2013-09-08 13:49:29 +02:00
Torsten Dreyer
7e117d2558
Fix #1186 moving average filter
...
fix incorrect behaviour of the moving average filter as reported
and patched by bmbroom.
2013-09-05 10:21:44 +02:00
James Turner
b24d8f2159
From Jano: fix HUD ladder aspect.
2013-09-05 08:29:20 +01:00
janodesbois
04764f8288
#901 , yasim report the wrong sign in side-slip-deg and -rad.
2013-09-05 08:28:40 +01:00
James Turner
1862688d27
Pass terrasync dir through to osgDB options.
...
Half of fix for TerraSync Models not being found.
2013-08-29 22:12:34 +01:00
James Turner
0c8d84aad1
Fix crash on re-position with FGCom.
...
Don't assume valueChanged firing means the value has actually
changed; various operations (eg, copyProperties) can also
cause the signals to fire.
2013-08-29 22:12:00 +01:00
Clément de l'Hamaide
0eef683af5
FGCom: implement a callback function and handle IAX text event
2013-08-28 18:09:22 +02:00
Clément de l'Hamaide
2bf62464cf
FGCom: Add a different max range for ground and tower frequencies
2013-08-27 20:32:31 +02:00
James Turner
4052c45ea3
Fix Mac data dir finding.
...
Mostly affects release builds, ensure data dir located within
the bundle is found correctly.
2013-08-26 22:21:55 +01:00
Clément de l'Hamaide
467783bd45
Clean FGCom logging and fix IAX input level
2013-08-24 17:51:03 +02:00
Clément de l'Hamaide
a215bc0625
Fix segFault on reset by checking IAX has been initialized
2013-08-22 14:12:06 +02:00
Clément de l'Hamaide
0e5b794a4a
FGCom: Should fix continous mic ON by checking state in main loop instead of listener
2013-08-21 20:24:07 +02:00
James Turner
206053722e
Fix crash on exit when FGCom is not being used.
2013-08-19 18:21:51 +01:00
Clément de l'Hamaide
7827e28ff3
Fix range calculation for special frequencies
...
Range for special freq was computed with previous freq, now they are always in range
Use a global variable (_currentFreqKhz) in order to avoid a <static_cast> in main loop; now it's only on frequency change
Fix a .size() > 0 for !.empty()
2013-08-19 16:08:29 +02:00
Tom Paoletti
b27eb2571c
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:02:15 +01:00
Tom Paoletti
1f88d1d11b
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:02:06 +01:00
Tom Paoletti
81cd33e2fa
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:01:59 +01:00
f-jjth
d03b44b662
FGCom integrated into FlightGear.
...
Disabled by default at build time.
2013-08-16 17:02:47 +01:00
James Turner
df4f574951
Fix horizon sunrise/sunset effect position.
...
Fix sun position in default renderer. (Committing fix
provided after discussion on IRC + forum, no bug ID)
2013-08-07 16:30:20 +01:00
James Turner
cff6b2034d
Remove unnecessary includes/using
...
flight.hxx (FGInterface) was pulling in list, string and vector, and
'using' them, despite no actual need.
2013-07-29 22:59:45 +01:00
James Turner
77768e2698
Assume OSG version 3.0 as a minimum
2013-07-29 22:54:25 +01:00
James Turner
be44fa45eb
Kill some defunct uses of side-slip property.
2013-07-29 22:15:23 +01:00
Thomas Geymayer
5b17a6c33f
Canvas GUI: don't crash if enable decoration on window without content canvas
2013-07-27 22:16:00 +02:00
James Turner
0904017ec5
Couple more unused private vars killed off.
2013-07-27 14:49:27 +01:00
Thomas Geymayer
d2524d8fe6
Canvas window: separate handling of content-size and overall size.
2013-07-27 00:01:50 +02:00
Thomas Geymayer
e79e70062e
Canvas window: increase drag accuracy.
2013-07-27 00:01:44 +02:00
Thomas Geymayer
02e66fd034
Canvas GUI: fix updating canvas on window with decoration.
2013-07-27 00:00:33 +02:00
Thomas Geymayer
c3a87f75cd
Canvas GUI: check for window on handling mouse events.
2013-07-25 01:14:23 +02:00
Thomas Geymayer
a75b9e5de9
Expose canvas GUI "desktop" to Nasal.
...
- Restructure GUIMgr and move most parts to implementation class.
- Expose new (simgear::canvas::Group based) DesktopGroup class
to Nasal.
2013-07-25 00:59:59 +02:00
James Turner
ac8869cd62
Bug #1166 , slow POI parsing.
...
Various tweaks and changes to make it easier to evaluate changes
to the rebuild code. No smoking gun found yet.
2013-07-24 08:53:55 +01:00
James Turner
6810809170
Bug #1166 , tweaking POI.dat parsing.
...
(Doesn't fix the bug alas, but slightly cleaner)
2013-07-24 08:52:59 +01:00
James Turner
3e46c7998c
Additional checks, for waypoint role setting.
...
Added these while investigating a defect, which unfortunately still
remains elusive. But the checks are wise anyway.
2013-07-24 08:51:35 +01:00
James Turner
a1451f592f
Ignore SGGeod altitude when creating BasicWaypt.
...
This logic was only ever causing bad values, all callers which care
about an altitude restriction were setting one explicitly. Thanks to
Curt for spotting it.
2013-07-22 18:11:07 +01:00
James Turner
948aa70af7
Fix native protocol crashes.
...
As part of this, kill off the evil global FDM state, and avoid us
copying FGInterfaces (which is bad since it contains TiedProperties
and an FGGroundCache, neither of which are especially keen on being
copied). Will probably disable copy/assignment on TiedProperties in
a future commit.
2013-07-18 12:01:36 +01:00
Gijs de Rooy
78507bf22e
Suggest NVIDIA Optimus to use the high-end GPU.
2013-07-18 08:51:43 +01:00
James Turner
74e60df295
Work-around for bug 1134, crash with flightplans.
...
When the active waypoint is deleted, and we can't offset the waypoint,
simply switch to the inactive waypoint. This is not ideal but avoids
the crash.
2013-07-17 20:26:48 +01:00
Thomas Geymayer
63f19db028
Expose String::ends_with to Nasal
2013-07-15 22:27:10 +02:00
Thomas Geymayer
ba088d9f1e
Fix warnings identified by gcc.
2013-07-04 23:07:36 +02:00
James Turner
5d9faee463
More unused vars caught by Xcode.
2013-07-04 20:56:04 +01:00
James Turner
6acf1c12fc
Fix unused private vars.
...
Xcode is warning about these, they're a mixture of
copy-pasted code, evolved use (e.g. using a property
node to store state), and so on.
2013-07-04 20:24:56 +01:00
Thomas Geymayer
eb53970768
FGSystemMgr: Do not quit on unknown system.
...
Showing a warning should be enough...
2013-07-04 14:32:56 +02:00
James Turner
b53b3be972
Remove a debug message.
2013-07-04 10:30:04 +01:00
James Turner
ebfe2ee6f5
Bug 1137, handle single-digit runways.
...
rwyprefs.xml sometimes specify runways without a leading '0', which
confuses the ident lookup. Print a message, and fix up such idents at
load time, so '8' -> '08', '3L' -> '03L' which matches our internal
scheme.
2013-07-04 10:30:04 +01:00