James Turner
f24b886ce4
Launcher: fix favourites loading
...
Also fix some warnings, closer to no output from the launcher.
2020-04-02 16:13:12 +01:00
gallaert
1ce36af298
- When HLA is enabled in Simgear, HLA is also enabled in Flightgear
...
making the build between Simgear and Flightgear consistent.
- Fix an issue with lib/lib64 path between CentOS/RedHat distributions
and Debian derived distributions.
- Fix a compilation issue with HLA in the Flightgear code.
2020-04-01 21:02:24 +01:00
James Turner
5b14d6e495
HID : split out raw logging from event logging.
...
This makes developing XML config files much easier
2020-04-01 20:43:50 +01:00
James Turner
8bedd52e2b
HID: allow raw-descriptor parsing in the XML
...
Also fix deadband computation (do it after min-max ranging)
2020-04-01 16:32:21 +01:00
James Turner
005ddf7c98
Optimisation: avoid property name lookups
2020-04-01 16:20:29 +01:00
James Turner
4addaa9b00
Fix a warning
2020-04-01 15:30:15 +01:00
James Turner
ca97866dd3
Fix a warning
2020-04-01 15:30:06 +01:00
James Turner
96be636240
Fixing up HID event input on Mac/Windows
...
Removing old macOS separate input - the HID version is better in
every way.
2020-04-01 15:29:58 +01:00
James Turner
2904321959
Launcher: favourite aircraft support
2020-04-01 10:47:29 +01:00
James Turner
3060cf10c6
Remove a logging call.
2020-03-31 13:56:01 +01:00
James Turner
8ddf4d6699
Fix reset-data-path dialog logic
...
Use correct root path key in QSettings, everywhere
Use the direct Win32 API until Qt wrapper is fixed.
2020-03-26 17:35:01 +00:00
James Turner
0483f2996a
Simplify Launcher thumbnail display code
...
Remove old code paths in the AircraftModel/LocalCache, especially
2020-03-26 17:35:01 +00:00
Erik Hofman
a27dfe1feb
Move more modern C++ idioms and use std::unique_ptr for moving data ownership around
2020-03-26 09:55:11 +01:00
Lars Toenning
d4b1e42b83
Fix playback duration during replay
...
Fixes #1856
Playback starts at endTime - duration if checkbox is set to active. Duration and checkbox status will be saved for umcoming sessions.
2020-03-25 17:21:14 +01:00
James Turner
7811b11565
Fix Yasim ground interface recursion bug
...
The base (non-FlightGear) implementation of YASim ground getBody
would always call itself. Fortunately we always replace it with the
FG-specific subclass (FGGround).
2020-03-24 22:37:23 +00:00
James Turner
7fe641f3b3
Clang: fix some warnings
2020-03-24 22:37:23 +00:00
James Turner
2c056507ce
Launcher: reduce timeout for HTTP updates
...
This helps download performance from inside the launcher
2020-03-24 22:37:23 +00:00
James Turner
e6e9a091e1
Merge /u/fgarlin/flightgear-src/ branch next into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/192/
2020-03-24 20:42:16 +00:00
Fernando García Liñán
6f676ee85b
Compositor: Added $FG_ROOT/Compositor/Effects as a resource provider.
2020-03-24 19:44:05 +01:00
Richard Harrison
9034ed5d46
Splash Screen fixes:
...
Specify type for options that are passed into the readRefImageFile (ref: devlist Andreas Mueller 14/03)
2020-03-23 18:10:57 +01:00
James Turner
5dc2f20848
Launcher: fix scanning of aircraft dirs on startup
...
https://sourceforge.net/p/flightgear/codetickets/2195/
2020-03-23 16:33:39 +00:00
James Turner
86e81735c5
Launcher: fix a typo
2020-03-23 10:06:31 +00:00
James Turner
cb830b70ff
Launcher: add setting for texture-cache
2020-03-23 10:06:31 +00:00
Julian Smith
1e330f9445
src/Viewer/ViewPropertyEvaluator.cxx: cope with root node being bool.
...
Aircraft rah-66 has a bug where it sets root node to type BOOL, which breaks
ViewPropertyEvaluator::getDoubleValue's handling of default values - the string
value of the node is no longer an empty string so we ended up returning 0.0 or
1.0 instead of default_.
The fix is to special-case BOOL. Have also special-cased handling of the root
node, as this is a fairly important part of how ViewPropertyEvaluator works.
2020-03-22 19:26:28 +00:00
James Turner
5f0c10d94d
Fix incorrect write() return code handling
2020-03-20 22:24:44 +00:00
James Turner
6849311d49
Own the SGReaderWriterOptions object
...
Prevents it being unintentionally freed during the read call, causing
a crash depending on the OSG version (some versions take a kung-fu
death grip)
2020-03-20 18:43:21 +00:00
James Turner
162ba266d0
Fix a warning
2020-03-20 11:40:47 -07:00
James Turner
26b527f151
Fix Linux compilation
2020-03-20 11:40:32 -07:00
James Turner
177fc565da
Launcher: initial carrier support
...
Allow selecting carriers from scenarios, and starting at either a
parking position, or a distance offset from the FLOLS (effectively
a crude ‘on-final’)
Extend the —carrier startup option to accept a runway ident of FLOLS,
in conjunction with the existing —offset-distance argument.
2020-03-20 15:51:47 +00:00
James Turner
f903cdfa50
Linux/macOS: use flock() to implement exclusive launch.
...
Previous implementation wasn’t correct, use a better one now. In the
case of a non-clean exit we will leave a stale .pid file in FG_HOME,
but we clear stale files on the next launch.
2020-03-20 12:08:35 +00:00
James Turner
a22d7943a4
Launcher: set package locale based on user language
...
This should in theory enable localised strings in catalogs, but need
to validate the full workflow here.
2020-03-17 11:46:26 +00:00
James Turner
ffbbe54cbc
Launcher: create popup windows on demand
...
This avoids some flickering issues on macOS, and reduces resource use
generally.
2020-03-17 11:14:11 +00:00
James Turner
cf8ec5998e
Launcher: disable grid mode for update tab
...
Since the UI doesn’t work well in grid mode, and the list of updates
is limited, force list mode for the updates tab.
https://sourceforge.net/p/flightgear/codetickets/2172/
2020-03-17 10:00:17 +00:00
James Turner
d52f1b5d47
Improve in-sim launcher behaviour
...
Restrict the UI to the pieces which make sense.
2020-03-17 10:00:17 +00:00
James Turner
7688007c68
Guard against potential cause of crash:
...
https://sourceforge.net/p/flightgear/codetickets/2138/
2020-03-17 10:00:12 +00:00
Julian Smith
25a64b2cba
src/Viewer/view.cxx: View::recalcLookAt(): Use new view[]/config/eye-fixed tag.
...
We only look at config/eye-lon-deg-path etc if eye-fixed is true. This tag
should be set to true for all views where the eye position is fixed - e.g. all
Tower views plus Fly-By view in fgdata:defaults.xml.
This allows b26 turret views to work without requiring modifications to the
aircraft (which would break usage with older releases of fgfs).
2020-03-16 21:08:48 +00:00
Julian Smith
368443a4b3
src/Viewer/view.cxx: Fixed Walker Orbit view.
...
The fix is to add handling of target-lon-deg-path etc in View::recalcLookAt.
2020-03-16 21:08:48 +00:00
Julian Smith
db255233f7
src/Viewer/ViewPropertyEvaluator.*: added getBoolValue().
2020-03-16 21:08:48 +00:00
Julian Smith
1e07dab5c5
src/Viewer/ViewPropertyEvaluator.cxx: fix getSequenceDoubleValue()'s handling of default value.
...
If node's string value is '' then return <default_> - used to return 0.0 which
is incorrect.
2020-03-16 21:08:48 +00:00
James Turner
a3d75e8573
Voice synth: reduce some log output levels
2020-03-16 11:07:35 +00:00
Julian Smith
904e55d657
src/MultiPlayer/multiplaymgr.cxx: use SGPropertyNode_ptr to avoid explicit delete.
...
As suggested by James Turner
2020-03-15 15:30:05 +00:00
James Turner
2dcf9c30bb
Further path -> UTF8 fixes for Windows
...
Requires corresponding SimGear change. With this last round, we work
with FGData on non-Latin1 path on Windows. (Final fixes are for
Nasal io.readfile, which needed io.stat to work, and SGSky allowing
correct SGPath use)
2020-03-15 15:00:55 +00:00
James Turner
36ba1e3dce
UTF-8 support: replace Nasal io.stat with our own.
...
Replace the default io.stat with one which uses our validator, and
uses SGPath to call _wstat on Windows. This does mean we return less
information in the stat() result, but it seems nothing actually uses
the result apart from checking if the file exists.
2020-03-14 21:01:45 +00:00
Erik Hofman
fb348d1a8a
Fix a false compiler warnig about brackets not protecting the next if statement
2020-03-14 14:04:22 +01:00
Richard Harrison
b049865cb2
fixes #2123 Relocation splash distorted.
...
Mark images loaded from splash with origin of splash to prevent use of DDS texture cache and therefore fix distortion by preventing rescale to power of two
2020-03-13 18:30:56 +01:00
James Turner
9389c6564f
Nasal geodinfo: warn when scenery is not loaded
2020-03-13 16:46:54 +00:00
James Turner
8edcaa4853
Merge /u/ltoenning/flightgear_sim/ branch fix/2146 into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/190/
2020-03-13 13:53:30 +00:00
James Turner
7e9930e871
Move fnt code from PLIB into 3rdparty
...
This enables us to fix TXF loading to use UTF8 paths, required for
handling non-ASCII paths on Windows.
2020-03-13 12:21:56 +00:00
Lars Toenning
2c9d64dcc6
Fix broken sound mute function
...
Fixes #2146
2020-03-13 11:13:30 +01:00
James Turner
e492ddd5a0
Event more local8Bit -> UTF8 fixes
2020-03-13 09:53:49 +00:00
James Turner
27410761f3
Lots of UTF8 path correctness fixes
2020-03-12 14:23:44 +00:00
James Turner
5b41f374c6
L10N fixes: handle UTF8 paths in more places.
...
Still not complete, but now we set the command line args to be UTF-8 on
Windows, we can strip out more of the ‘local 8-bit’ places (which
screw up, generally).
2020-03-12 10:51:49 +00:00
Erik Hofman
3cb05a9207
Do not try to initialize all 16 joysticks every frame if they where not found previously. Try it once every second instead.
2020-03-12 10:31:38 +01:00
Julian Smith
ab7e7ec7b4
src/Main/globals.cxx: don't load /ai/models/ from autosave.xml file.
...
This cleans things up if earlier 'next' build as added spurious property items
to autosave.
2020-03-11 21:49:15 +00:00
Julian Smith
20a9953130
src/MultiPlayer/multiplaymgr.cxx: Don't load complete -set.xml of multiplayer aircraft.
...
When loading -set.xml, we load into temporary 'set' node,
then copy across only set/sim/view[]/config/* values into
/ai/models/multiplayer[]/set/sim/view[]/config/.
This ensures that we have just the information required for multiplayer views,
and avoids problems where some properties in /ai/models/multiplayer[]/ were
being archived to autosave_*.xml and loaded in later flightgear sessions.
2020-03-11 21:49:15 +00:00
James Turner
c12824bc94
Basic Canvas tests, including image pixel ops
2020-03-11 17:14:38 +00:00
James Turner
e509711075
Fix some warnings from current Apple clang
...
- remove some unused vars
- remove use of std::mem_fn / std::bind2nd
2020-03-10 17:02:08 +00:00
James Turner
40a85cae28
Launcher: fix some warnings, maybe a crash
...
Avoid binding loop warning, and change logic around re-starting the
aircraft dirs scan, to hopefully clarify the crash Brendan and others
are seeing.
2020-03-10 16:10:55 +00:00
Lars Toenning
e2135369ce
Minor code fixes
2020-03-10 14:08:29 +00:00
Lars Toenning
aca625eda2
[swift] Fetching ground elevation for interpolation
2020-03-10 14:08:29 +00:00
Lars Toenning
34915125a1
[swift] Fix frequency casting regression
2020-03-10 14:08:29 +00:00
Lars Toenning
f4b60ccd90
[swift] Code cleanup
2020-03-10 14:08:29 +00:00
Lars Toenning
182df4e6ae
[swift] Fix segfault on stopping server
2020-03-10 14:08:29 +00:00
Lars Toenning
ee0d03b4d0
[swift] Fix memory leak in traffic-service
2020-03-10 14:08:28 +00:00
Lars Toenning
eb3fba1871
[swift] Adding swift aircrafts to TCAS
2020-03-10 14:08:28 +00:00
Lars Toenning
d14073cd24
[swift] Adding aircraft to property tree and map
2020-03-10 14:08:28 +00:00
Lars Toenning
e6a9515b59
[swift] Enhancing version compatibility check
2020-03-10 14:08:28 +00:00
Lars Toenning
fc0a8b1c60
[swift] Fix message node
2020-03-10 14:08:28 +00:00
Lars Toenning
0423472f74
[swift] Sending ground elevation
2020-03-10 14:08:28 +00:00
Lars Toenning
cab6581d3d
[swift] Pointers to nodes for get/set data
...
Calling fgSetXY/fgGetXY takes to long (especially when calling the often needed properties a few times per second in main loop).
Switching to pointers for these nodes, initialized within service-class constructor.
2020-03-10 14:08:28 +00:00
James Turner
3f14d53286
FlightPlans: fix save/load of restrictions, deleting legs from Nasal
...
- Fix Leg ownership to avoid segfaults when deleting them via Nasal
- Modify FP save/load code so restrictions and holds are correctly
saved and restored
Extend the tests to cover these cases.
2020-03-10 14:00:40 +00:00
James Turner
de172de5b3
Launcher: Fix a typo breaking path re-ordering
2020-03-10 10:28:56 +00:00
James Turner
a405d0508b
Fix a dumb allocation bug on Windows
2020-03-09 16:28:22 +00:00
James Turner
410c249ba8
Launcher: enable/disable all add-on types
...
Allow enable/disable in the UI of everything in the ‘add-ons’ page of
the launcher.
2020-03-09 16:16:50 +00:00
Erik Hofman
32d6f75305
Process the buttons even if the axes are not declared initialized
2020-03-07 09:22:22 +01:00
Slawek Mikula
517cf19ec6
- ATC radio list - adding selectors to radio R1/R2 for corresponding frequencies
2020-02-25 13:08:06 +00:00
James Turner
8126db050a
Merge /u/geoffmc/flightgear/ branch msvc-build3 into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/182/
2020-02-24 13:12:15 +00:00
James Turner
219ceacc7a
macOS Catalina device filtering
2020-02-24 13:09:36 +00:00
James Turner
ff70578d57
Launcher: Fix a QML warning on startup
2020-02-24 11:33:05 +00:00
James Turner
f14b8ba6d4
Validate Nasal makeTimer arguments
...
When the callback arguments can’t be validated,
catch is and actually report a failure, instead of creating a
non-functional timer object
2020-02-24 11:33:05 +00:00
James Turner
a3731875a1
Make Launcher ratings settings persistent
2020-02-24 11:33:05 +00:00
Stuart Buchanan
1f0c21a371
Warn when Nasal module not set in defaults.xml
2020-02-19 20:32:22 +00:00
Erik Hofman
e4c393ba9c
Revert delayed running of fdmex for in-air starts since it does more damage than good.
2020-01-31 10:03:31 +01:00
James Turner
12cd2d8e9b
Merge /u/legoboyvdlp/flightgear-src/ branch fix-segfault into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/188/
2020-01-30 10:42:18 +00:00
jano
395a654692
make the aiship speed respect strictly the target speed when close enough, should improve drifting carrier on mp
2020-01-28 11:03:20 +01:00
jano
c770358f13
added the velocity for the ufo, used in lag compensation
2020-01-28 11:03:20 +01:00
Erik Hofman
6df768fa5f
Store the initial axis values and if just one of them changes declare the joystick initialized
2020-01-27 18:12:09 +01:00
legoboyvdlp R
b920a09fcf
Correct whitespace in NasalPositioned.cxx; fix segfault in NasalPositioned by adding null check in the legGhostGetMember method; add test case for segfault
2020-01-27 16:27:46 +00:00
Stuart Buchanan
f6285bc528
Fix directional lights for AMD
...
Some AMD drivers do not like triangles for point sprites, which
breaks directional lights. This works around this by allowing
users to set /rendering/triangle-directional-lights=false which
falls back to the non-directional implementation of a point.
2020-01-27 09:30:09 +00:00
Erik Hofman
65a20b5829
Read the raw values and check them against the saturation value, if one of them is larger then initialization of the joystick is still in progress.
2020-01-27 09:15:53 +01:00
Erik Hofman
2d0b44ee63
If js is valid (again), create a new instance of jsJoystick so removing an joystick from and USB port and attaching it again get the joystick in a working order.
2020-01-26 17:44:19 +01:00
Erik Hofman
d4459c8205
Fix a typo
2020-01-26 14:30:24 +01:00
Erik Hofman
3405ea2aaa
Joystick axes can get initialized to extreme values, at least on Linux. Hold of working with the axis values until all values have become sane at least once
2020-01-26 14:10:07 +01:00
Bertrand Coconnier
973bf32074
[JSBSim] Added the ability to log properties in a CSV file.
2020-01-25 16:05:30 +01:00
Erik Hofman
cf5bfc5dd9
On-ground trimming needs fdmex active while in-air trimming does not for reliable operation. This might be a problem within the trimming routines but for now this works.
2020-01-23 11:54:33 +01:00
Erik Hofman
1cc0d9e97f
Fold of running JSBSim until after the trimming routine.
2020-01-22 14:54:11 +01:00
Erik Hofman
123eb41819
Copy the initial properties a second time after initilization.
2020-01-22 14:53:27 +01:00
Erik Hofman
2d2d5dbb76
Switch to C++11 threads, mutexes and lock_guards. Switching to C++11 condition_variables requires some more thought.
2020-01-22 13:45:28 +01:00
Erik Hofman
94b12aa992
Postpone running the simulation until after initialization and do an extra trim right after creation to properly initialize the output parameters.
2020-01-18 14:29:17 +01:00
jano
db295a9afc
introduction of a zero lag mode when pilots are synched in time, eg using ntp.
2020-01-14 11:10:28 +01:00