James Turner
6baa55b36b
Waypoint hiding support (for the A320, etc)
...
To support FMS which delete ‘past’ waypoints, add some helpers:
- waypoints can be flagged as hidden, this property is exposed to Nasal
- currentWP() accepts an offset parameter, allowing FlightPlan indexing
to treat the current WP as index 0
- a ‘numRemainingWaypoints()’ function on flightPlan in Nasal, again
to range how many waypoints are left, starting from the current WP
Add some basic tests of these new features to the route-manager tests.
2020-05-01 09:28:42 +01:00
James Turner
100efeebab
Quiet some noisy logging in ATC code
2020-04-30 16:22:59 +01:00
James Turner
e60d131a4e
Ensure dtor is virtual
2020-04-30 16:22:59 +01:00
legoboyvdlp R
18c0613762
Replace activeTraffic iterations with a standard function
2020-04-30 16:22:59 +01:00
legoboyvdlp R
3e1dc4683b
Keep revising ATC
2020-04-30 16:22:59 +01:00
legoboyvdlp R
64aa3927a7
Rename departure cue to departure queue, formatting, document ActiveRunway class
2020-04-30 16:22:59 +01:00
legoboyvdlp R
8268cdc5e0
Optimize slot checking routines so unneeded code is not run, document function
2020-04-30 16:22:59 +01:00
legoboyvdlp R
97ca43a52a
Correct description of getDistanceToGo() - this returns meters, not feet. Looking at the code it appears that it won't break anything to use the wrong units, so we'll just fx the documentation to make it clear its meters
2020-04-30 16:22:59 +01:00
legoboyvdlp R
0132ddf7a1
A missing call to initializeAirports() restored; this now works. Add documentation to atcdialog.
2020-04-30 16:22:59 +01:00
legoboyvdlp R
c789687da0
Formatting, change single-use pointers to std::unique_ptr
2020-04-30 16:22:59 +01:00
legoboyvdlp R
86dae35b37
Document atc_mgr, remove method from SchedFlight
2020-04-30 16:22:59 +01:00
legoboyvdlp R
84c075a20f
Make it bulk again - I don't know how it reverts
2020-04-30 16:22:59 +01:00
legoboyvdlp R
6c3828bf84
ATC/AI: SG_LOG will now use BULK for render message
2020-04-30 16:22:59 +01:00
legoboyvdlp R
4af75c4666
ATC / AI subsystem: replace iostream with SG_LOG() and make new function in SchedFlight that will create a new scheduled flight instance
2020-04-30 16:22:59 +01:00
James Turner
d2a04cecf7
Fix string category for locale
2020-04-30 16:22:59 +01:00
Bertrand Coconnier
ca8fffda3e
Fixed a segfault occuring when changing the LOD ranges with a JSBSim aircraft.
...
Bug report and testing by Jonathan Redpath (see details in issue #276 at GitHub).
The check of FGInterface::get_agl_ft return value has been discarded a few years ago (commit 86b346) on the ground that the method was returning a meaningful altitude above ground level even if it failed.
See mailing lists discussions:
https://sourceforge.net/p/flightgear/mailman/message/32246380/
https://sourceforge.net/p/flightgear/mailman/message/32247050/
There is no indication however that the other parameters are populated with meaningful values when FGInterface::get_agl_ft reports an error. The returned `material` pointer is therefore discarded when an error is reported. Ground reactions are still processed in all cases as was decided in 2014.
Took the opportunity to initialize the `material` pointer to null, to avoid yet another problem with unitialized values.
2020-04-30 15:25:22 +02:00
Bertrand Coconnier
7f319d69ca
Fixed uninitialized variables in FGPiston.
...
Some members were used before being initialized in FGPiston which could randomly generate invalid floating point values that could propagate to many places in JSBSim.
As a cure to the problem, all variables are now initialized to valid default values in the header (as allowed by C++11). The constructor is only expected to set the members to meaningful values.
2020-04-30 15:10:30 +02:00
James Turner
4a485adcf3
Fix crash on —show-aircraft
...
Change how we return, so QApplication doesn’t explode. exit() is not
a happy thing for QApplication.
Ticket:
https://sourceforge.net/p/flightgear/codetickets/2139/
2020-04-29 14:55:37 +01:00
James Turner
de0826294c
Aircraft-loading: resolve symlinked dirs earlier.
...
This is to ensure we pass a realpath when validating Nasal / dialogs,
to fix: https://sourceforge.net/p/flightgear/codetickets/2057/
2020-04-29 12:33:25 +01:00
James Turner
954385ce0d
Improve log message when fgfs_lock.pid exists
...
Part of addressing:
https://sourceforge.net/p/flightgear/codetickets/2133/
Still need to decide about a better GUI dialog for this.
2020-04-29 11:44:21 +01:00
James Turner
489e6abb2a
Allow translation of ‘autosave migration’ dialog.
...
Thanks to Slawek Mikula for the suggestion, this can now be
translated.
2020-04-29 11:44:13 +01:00
James Turner
6c66126bdb
I18N: fix translation of nav-cache-init dialog
...
Thanks to Slawek Mikula for spotting, that this was not working
correctly, now it does.
2020-04-29 11:44:09 +01:00
James Turner
6ae2c387bf
Canvas: expose dirtyPixels() to Nasal
2020-04-28 14:04:40 +01:00
Erik Hofman
b96327acf7
Remove an unused header file
2020-04-28 08:36:51 +02:00
Edward d'Auvergne
d7d6aebfa3
TestSuite: Fix for the running the CanvasTests as CTests.
...
These are in the simgear unit test category, not the normal unit test category.
2020-04-27 21:29:56 +02:00
James Turner
fe3a27450f
Fix DBus detection for Cmake < 3.6
...
From Saikrishan Arcot
2020-04-27 14:21:47 +01:00
James Turner
b69055ffca
Fix normalization of heading-mag-deg
2020-04-27 14:21:47 +01:00
James Turner
1f07a8eba8
PUIDialog: some C++11 style clean-ups
2020-04-27 14:21:47 +01:00
James Turner
027bd7105e
Fix a comment typo
2020-04-27 14:21:47 +01:00
James Turner
aae2ddd7e4
Launcher: split on non-word characters in search
...
This means ‘pa-28’ or ‘c-130’ will match pa28 or c130, where previously
they did not. This makes search for aircraft designations a bit easier.
2020-04-27 14:21:47 +01:00
James Turner
61808019a0
new version: 2020.2.0
2020-04-27 09:29:56 +01:00
James Turner
3c01a38c74
new version: 2020.1.1
2020-04-27 09:29:56 +01:00
Scott Giese
5b12b1f360
Revert "Fix HUD scale"
...
This reverts commit 93a1d5e2d1
.
2020-04-26 21:56:07 -05:00
James Turner
d17c1bbaf2
Merge /u/kaklik/flightgear/ branch next into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/197/
2020-04-25 15:34:37 +00:00
Edward d'Auvergne
0f6524802b
TestSuite: All tests can now be run via CTest again.
2020-04-24 23:04:48 +02:00
gallaert
99083d6b35
Replace boost::tuple by std::tuple
2020-04-22 14:06:13 +01:00
gallaert
f7cbcd9e60
Replace boost::function by std::function
2020-04-22 14:06:13 +01:00
gallaert
27ae79b5da
Replace boost::bind by std::bind and lambda function
2020-04-22 14:06:13 +01:00
gallaert
4854607382
Replace boost::lexical_cast by std::ostringstream and std:stof/stoi/stod
2020-04-22 14:06:13 +01:00
gallaert
c6124b5c5a
Replace boost::enable_if/disable_if/enable_if_c/disable_if_c by std::enable_if
2020-04-22 14:05:47 +01:00
gallaert
0dfed0a096
Replace boost::shared_ptr/weak_ptr by std::shared_ptr/weak_ptr
2020-04-22 14:05:46 +01:00
James Turner
381919451d
Fix for reset crash:
...
https://sourceforge.net/p/flightgear/codetickets/2217/
This requires a matching Simgear change, but ensure all places
tolerate Nasal subsystem being gone, since this occurs during reset.
2020-04-22 10:56:54 +01:00
James Turner
858fc6ea01
Launcher: Fix compilation with Qt < 5.6
2020-04-21 16:34:24 +01:00
James Turner
b85048db2d
GPS/FLightPlan test updates
...
- fix reseting of the NavData each test
- improve the test-pilot’s GPS following (reduce turn range close
to the desired course)
- test DME intercepts
2020-04-21 15:48:41 +01:00
James Turner
fdd509a080
Logging for Nasal errors, disabled for now.
...
Code to log Nasal, as well as C++, errors. But need a way to reduce
the false-positive rate, so disabled for now.
2020-04-20 11:03:35 +01:00
James Turner
b016c4b489
GPS/FP radial-intercept tests
...
By Jonathan Redpath, with some additions from me. Starting to exercise
both GPS and route-path for radial intercepts
2020-04-20 11:03:35 +01:00
James Turner
492c6daeca
Bugfix for DISCON GPS test
...
Relocate before starting the GPS, to avoid confusion when we teleport
2020-04-19 17:04:46 +01:00
James Turner
17774dbe4c
FlightPlan: DISCON works with pointAlongRoute
...
Add some tests for the default GPS / route-manager handling of
DISCON in flight-plans. Especially check behaviour when sequencing
a DISCON, and resuming with a Direct-to after one.
This requires a corresponding FGData update to the default GPS Nasal.
2020-04-19 16:44:49 +01:00
James Turner
1a925b152d
FlightPlan: don’t assert on invalid waypoints
...
When there is no first anchor waypoint (eg a runway or navaid), avoid
asserts from the RoutePath code.
2020-04-19 12:27:50 +01:00
Stuart Buchanan
682293c0d0
Fix for C++11 using simgear::strutils::lowercase
2020-04-18 22:00:04 +01:00