James Turner
4eecd088e8
TimeManager: handle reposition better
...
Extend the timeManager unit-tests to check for some movements, all
seems to work correctly now.
2021-03-12 14:45:25 +00:00
James Turner
9704c1cc93
Local time available without the clock instrument
...
Compute the local time value inside the TimeManager, so that the
UI doesn’t need to rely on the default clock instrument (which
might not exist) to show correct local time.
Also fix updating of time-offset/time-zone, to be based on distance
travelled instead of elapsed wall-clock time.
(needs an FGData update as well)
Ticket-Id: https://sourceforge.net/p/flightgear/codetickets/2514/
2021-03-12 12:49:41 +00:00
Lars Toenning
fb8ef10918
Reset unique ptr to delete object
...
Previously multiple start/stops of the swift-connection failed because the CPlugin object was not deleted
2021-03-12 10:28:42 +00:00
Lars Toenning
509fbbcebc
swift - Add getOwnAircraftVelocityData dbus method
2021-03-12 10:28:42 +00:00
Lars Toenning
938bfd1604
Fix spelling mistake
2021-03-12 10:28:42 +00:00
Erik Hofman
8a9cc389e4
UpdateLocal time when repositioning, the timezone might have changed
2021-03-12 10:46:26 +01:00
James Turner
c5c7532179
Launcher: make help docs link point to online location
2021-03-11 20:35:46 +00:00
James Turner
026b02d7e9
CMake: make another object dependency explicit
...
Since we’re not using target_link_libraries, we need to explicitly
define fgfsObjects (which contains main.cxx) as depending on the
embedded resources target.
2021-03-10 10:17:15 +00:00
James Turner
9fc45e598f
Remove Qt includes from fgfsObjects build
...
Sink all Qt classes into the specific libraries, so the main objects
don’t need the includes available.
2021-03-09 21:54:47 +00:00
James Turner
4fe1fa04bc
CMake: fix dependency on buildId target
2021-03-09 19:22:59 +00:00
Erik Hofman
563737bed1
Properly handle argumenets with no assigned value (e.g. --hla)
2021-03-09 15:56:46 +01:00
Erik Hofman
c24e0fb5b8
Implement our own command-line argument parser which accepts '--name value' as well as '--name=value' and '--prop name=vale' as well as '--prop:name=value' to be compatible with the FlightGear command-line syntax.
2021-03-09 15:47:18 +01:00
James Turner
6e42c8fc57
Restore compatibility with CMake < 3.12
2021-03-09 12:02:57 +00:00
James Turner
37272b14ac
Remove the custom graphics window impl
...
Probably not worth the compat hassle :)
2021-03-08 17:00:58 +00:00
James Turner
c92c41a50f
Switch test_suite build to use an OBJECT library
...
Remove use of BUILDING_TESTSUITE from headers. Where possible, move
test APIs to their own file in the test_suite dir (testApis.cxx). For
some others, add them to a special list of ‘sources which depend on
the build mode’. This will hopefully go away with some further
refactoring.
2021-03-08 16:59:15 +00:00
James Turner
33e205f123
Switch to using OBJECT library for main build
...
Allows sharing object files between the fgfs and test_suite targets, in
a follow-up commit.
2021-03-08 16:59:14 +00:00
Erik Hofman
af329b794f
Use the find_dependency option to parse Simgear dependencies to FlightGear
2021-03-08 16:15:51 +01:00
Erik Hofman
c0bc09bf1a
Cleaner code by a clear separation between sgFileType, sgDDSType and the default sgSocketType
2021-03-08 13:47:53 +01:00
James Turner
ee5b49668a
Add a notification when catalog refresh fails
2021-03-08 11:01:08 +00:00
James Turner
81df48b858
Add tests for MP-runway start, and fix behaviour.
...
Fix a bug in how taxi-nodes were classified, which meant that MP start
on a runway was not applied correctly.
2021-03-08 10:23:43 +00:00
Julian Smith
84f95fe3c2
test_suite/unit_tests/Autopilot/: added unit test of pid-controller.
...
E.g.:
test-suite -u PidControllerTests
test-suite -u PidControllerTests::test
2021-03-07 21:57:50 +00:00
Julian Smith
3a754799c2
test_suite/testSuite.cxx: added example -u <unit-test-name>.
2021-03-07 21:57:50 +00:00
Julian Smith
2d35a52f8a
scripts/python/recordreplay.py: minor fix.
...
Don't rely on top-level <fgfs> variable.
2021-03-07 21:57:50 +00:00
Julian Smith
0c7630d263
src/Aircraft/replay.cxx: Fix issue where end time wasn't alway updated correctly when replaying from url.
...
The end time is updated in background when replaying from url, so we must not
set /sim/replay/end-time elsewhere. So we now only set /sim/replay/end-time in
FGReplay::get_end_time() if recording is not Continuous.
2021-03-07 16:22:43 +00:00
Julian Smith
7a70b57bab
docs-mini/README-recordings.md: minor updates.
2021-03-07 16:22:43 +00:00
Erik Hofman
0480bb15a9
(Try to) Prevent a one or more multiply defined symbols found error
2021-03-07 15:59:25 +01:00
James Turner
4ca929fa61
Fix test for Jano’s dtRemainder init change
2021-03-07 13:08:29 +00:00
James Turner
7e074f6b8b
MP: reduce a replay message level, to avoid spamming at INFO
2021-03-07 13:08:29 +00:00
James Turner
497a99f8d7
FGHTTP: add getOrCreate helper
...
Avoids duplicate creation when launcher & remote-tape are used
2021-03-07 13:08:29 +00:00
James Turner
8716801c8c
Unit-test for Nasal parsing bug
2021-03-07 13:08:29 +00:00
James Turner
de90c281a5
ErrorReporting: MP error attribution
2021-03-07 13:08:29 +00:00
James Turner
cbe46468d1
Error-reporting: attribute AIObjects from scenarios
...
Ensure scenario-path is propagated through model loading for AI objects.
2021-03-07 12:33:06 +00:00
Erik Hofman
e4ca169618
Use the new name for sg_dds.hxx
2021-03-07 11:57:48 +01:00
Erik Hofman
837010ac7b
Clarify the license
2021-03-06 14:50:10 +01:00
Julian Smith
b74d96ca81
scripts/python/recordreplay.py: set sim/replay/record-signals to true in case it defaults to false.
...
Otherwise recordings end up containing very few frames which breaks some of our
tests.
2021-03-06 08:52:20 +00:00
Julian Smith
9bd01e4cc1
scripts/python/recordreplay.py: use subprocess instead of os.fork() etc.
...
This might allow use on non-unix systems, or at least be a step towards that.
2021-03-06 08:52:20 +00:00
Julian Smith
cb1cf90490
scripts/python/FlightGear.py: Fix setting property to True.
...
On flightgear side, the string 'True' is not treated as bool true, so if a
property is set to python True, we need to send the string 'true' instead.
2021-03-06 08:52:20 +00:00
Julian Smith
6ec2170a95
src/Aircraft/replay.cxx: show stats when indexing continuous recording.
2021-03-06 08:52:20 +00:00
Julian Smith
335ac0cb67
src/Main/options.cxx:fgOptLoadTape(): enable compression when downloading recording.
2021-03-06 08:52:20 +00:00
Julian Smith
d7b889a74a
src/Aircraft/replay.*: Be able to exclude user aircraft's signals from Continuous recording.
...
Controlled by /sim/replay/record-signals.
E.g. one can now record only multiplayer aircraft.
2021-03-06 08:52:20 +00:00
Erik Hofman
ffc0105b47
Per request: Rename DDS to DataDistributionService to prevent confusion with DDS the image format.
2021-03-06 09:10:34 +01:00
Erik Hofman
5786d40272
* Support CycloneDDS as a SGIOChannel
...
* Support the native fdm, gui and ctrl protocols over DDS
* Add fgfdm_log as an fdm over DDS command line logging utility
Usage:
--native-fdm=dds,out,60
--native-ctrls=dds,in,60
etc.
2021-03-05 16:10:04 +01:00
Scott Giese
7fe25aa97f
Merge branch 'next' of https://git.code.sf.net/p/flightgear/flightgear into next
2021-02-26 21:40:11 -06:00
Scott Giese
380e0c1105
Maintenance: ExternalNet
...
Prevent buffer overflow.
Inconsistent whitespace use.
2021-02-26 21:13:13 -06:00
Scott Giese
02a299ed34
Maintenance: fgfsclient
...
Ensure we don't throw during dtor.
Update Whitespace.
2021-02-26 21:11:34 -06:00
Scott Giese
cc2336c5fa
Maintenance: FGPUIDialog
...
Inconsistent whitespace.
2021-02-26 21:09:13 -06:00
Scott Giese
a3c4dcf522
Maintenance: plugin
...
Minor whitespace adjustments.
2021-02-26 21:03:11 -06:00
Scott Giese
82c34590f6
Maintenance: swift_connection
...
Fix memory leaks.
Fix mixed use of tab/spaces for indentation.
2021-02-26 21:01:35 -06:00
Scott Giese
0ee3fd4ab6
Maintenance: js_server
...
Fix memory leaks.
Better use of whitespace.
2021-02-26 20:59:06 -06:00
Scott Giese
21330d2f31
Minor typo
2021-02-26 20:48:43 -06:00