Eatdirt
e385fa4ecc
Fix apparent size of Moon and Sun (too large by a factor of two)
2021-01-10 13:03:20 +00:00
James Turner
c51379db8c
CMake: add upstream FindLibLZMA.cmake
...
Required since older CMake versions of this don't define an imported target
2021-01-10 11:57:00 +00:00
Bertrand Coconnier
d3a11d72bb
Always set useDefault to false when calling SGPropertyNode::tie()
...
Setting useDefault to true is equivalent to using unitialized variables we are getting whatever is currently in the memory whether it is relevant or not.
2021-01-09 18:51:50 +01:00
Bertrand Coconnier
12996087de
Fixed the initialization of the struct addrinfo.
2021-01-09 17:53:28 +01:00
James Turner
d1f35253e2
Tooltips: wait for commands to be registered
...
Avoid invoking the tooltip commands prematurely on startup. Requires
corresponding FGData update.
2021-01-08 19:34:07 +00:00
James Turner
3b3e69e358
Quiet some noisy log messages
2021-01-08 19:33:10 +00:00
James Turner
9b25e25935
Remove an unnecessary SG_ALERT
2021-01-07 09:57:47 +00:00
James Turner
a8351bd544
Reset: avoid terraSync warning
...
Avoid the old value being set, which causes the ‘terrasync-dir not
saved’ warning to appear incorrectly on reset.
2021-01-07 09:57:30 +00:00
James Turner
a4aa7595c0
GPS: bool return from RNAVWayptController::init
...
avoids an exception throw when the controller fails to init, which
avoids us breaking the stack when called via setMode, etc. Showed
up as error reports on Sentry.
2021-01-07 09:56:41 +00:00
James Turner
af387107a3
CPDLC updates from Henning
2021-01-06 15:46:56 +00:00
Henning Stahlke
527f58d353
Refactored CPDLP.
2021-01-06 15:46:56 +00:00
James Turner
06bd0708b9
Festival: Fix volume/pitch/speed after preamble
...
Fix from Antonello: when we send a premable to Festival, we need to
set the parameters afterwards. Re-order the code so this occurs
automatically.
2021-01-06 14:06:27 +00:00
James Turner
a9323432d0
Change JSBSim MatrixException base type
...
Make this exception inherit std::runtime_exception, so that it’s
caught by the ‘normal’ exception cases in FG boostrap.cxx
This is the only exception I can find in the codebase, which does not
inherit from either std::exception or std::string, so this is to fix
‘unknown exception’ errors reported in the wild.
Sentry-Id: FLIGHTGEAR-1C
2021-01-04 11:34:48 +00:00
James Turner
984e88bddd
LaRCSim / UIUC fixes to make the Wright flier work
...
We had missed some places which needed a config.h include, to ensure
ENABLE_UIUC is set.
2021-01-04 10:56:42 +00:00
James Turner
34d4462327
Fix Festival support in FGVoice
...
Send a real (Lisp) command to check if Festival is running, instead
of SayText. Antonello (RedGriffin) reports this works better.
2021-01-04 10:29:20 +00:00
James Turner
f5eadf2e37
Event-input: Change reporting of failure to open
...
Don’t use an exception here, not needed and makes for noise on the
reporting backedning.
2021-01-01 22:40:24 +00:00
Julian Smith
e1caf04b41
src/AIModel/AIManager.hxx: added comment about loadScenarioCommand()'s return value.
2021-01-01 17:54:10 +00:00
Julian Smith
380ecdf8ba
src/Viewer/viewmgr.*: added asserts, diagnostics and checking for out-of-range view numbers.
...
It seems that some aircraft sometimes incorrectly pass view indices rather
than numbers resulting in out-of-range access to FGViewMgr::views[]; See
flightgear-devel thread with subject "View crash (after loading errors)".
With this commit, if we are given an incorrect view number, we output a
diagnostic with SG_ALERT, assert fail, and cope with the problem. Arguably we
could do something more serious such as opening a popup or throw an exception.
2021-01-01 17:54:10 +00:00
Julian Smith
71c7659f98
test_suite/unit_tests/Main/test_posinit.cxx: add asserts for findParkingByName() returning null.
2021-01-01 17:54:10 +00:00
Julian Smith
b38a5c95d4
src/FDM/JSBSim/input_output/FGfdmSocket.cpp: avoid warning about zero initialisation.
2021-01-01 17:54:10 +00:00
Julian Smith
abfb90db32
src/Airports/runwayprefs.cxx: avoid signed/unsigned comparison warning.
2021-01-01 17:54:10 +00:00
Julian Smith
ae1c4afea6
src/Autopilot/digitalcomponent.cxx: fixed misleading indentation.
2021-01-01 17:54:10 +00:00
Julian Smith
b7d7edc49e
src/Autopilot/analogcomponent.cxx: fixed misleading indentation.
2021-01-01 17:54:10 +00:00
Julian Smith
8cead7e59b
Improved error indication from FGIO::parse_port_config() and FGIO::add_channel().
...
E.g. for multiplay, we return (FGProtocol*) nullptr on success.
2021-01-01 17:54:10 +00:00
James Turner
c478a80c5c
Launcher: don’t set empty METAR
...
When an invalid custom METAR is entered, don’t pass it to FlightGear
2020-12-30 17:01:29 +00:00
Erik Hofman
bcdcef6d2e
Eatdirt: Implement parallax effects for the Moon at the rendering stage and not with the ephemeris.
2020-12-30 11:14:03 +01:00
James Turner
8320b37ce6
Fix Windows build failure
2020-12-28 14:53:35 +00:00
James Turner
9f4f4136f7
JSBSim: FGCondition: throw better exceptions
...
Add more description when FGCondition throws an exception, since
these are somewhat frequently occurring ones.
2020-12-28 14:10:43 +00:00
James Turner
63ddc0f6ba
Fix MarkDown syntax
2020-12-26 22:17:33 +00:00
James Turner
7b87b061da
Add coherent noise filter to the AP
2020-12-26 18:54:35 +00:00
Julian Smith
0c89bacc25
docs-mini/README-recordings.md: some information about recording/replay.
2020-12-23 11:40:41 +00:00
James Turner
044b6350ca
Windows: remove obsolete packaging files
...
These are replaced by version in FGMeta, a long time ago.
2020-12-22 10:37:34 +00:00
Automatic Release Builder
769dcb1454
Launcher: FlightPlann: fix ‘view route’ enable
2020-12-22 10:34:58 +00:00
Automatic Release Builder
499dc79584
NavCache: add duplicate rebuild protection for Unixes
2020-12-22 10:34:58 +00:00
Automatic Release Builder
bab80744f6
Add a fatal message when GraphicsContext creation fails
...
Avoids crashing shortly afterwards with no window, and might help a
few users realise their problem is outdated graphics drivers.
2020-12-22 10:34:58 +00:00
Automatic Release Builder
e7801a65b3
Sentry: add a bread-crumb when user overrides read-only lock
2020-12-22 10:34:58 +00:00
Automatic Release Builder
a85a02069f
Launcher: allow different texts for Fly! button
...
Requested by Michael Danilov for Russian translation
2020-12-22 10:34:58 +00:00
James Turner
0d0b8d01d2
Sentry: track reset status via a tag
...
Allow easy grouping of reports by ‘did we do a reset, ever’
2020-12-22 10:34:58 +00:00
James Turner
df34cb3cd9
Sentry: whitelist another XML error
2020-12-22 10:34:57 +00:00
Automatic Release Builder
5ad9eafca7
Sentry: improve how we report extra data
2020-12-22 10:34:57 +00:00
Julian Smith
d9e535913e
src/Viewer/sview.*: Added damping to chase views.
2020-12-21 23:42:45 +00:00
Julian Smith
cbe3ae5618
src/Viewer/sview.*: added damping to SviewStepAGL.
2020-12-21 23:42:44 +00:00
Julian Smith
0ede0401b7
src/Viewer/sview.*: Added SviewStepAGL for Tower View AGL.
2020-12-21 23:42:44 +00:00
Julian Smith
c3836923cb
Added limited support for event handling to extra view windows.
...
We now attach global event handler to extra view windows so key presses are
handled as normal.
And the main event handler for mouse movements now calls new SviewMouseMotion()
which pans/tilts extra view windows in response to right-button mouse-drag.
2020-12-21 23:42:44 +00:00
Julian Smith
cb258f3d36
src/Main/main.cxx: Allow dynamic control of sglogdeltas using a property.
...
We install listener for /sim/sg-log-deltas which calls logDeltaSet().
2020-12-21 23:42:44 +00:00
Colin Geniet
50efe12f25
Fixes Issue #2480 - JSBSim assertion failed on Location > Select Airport
2020-12-21 23:11:39 +01:00
James Turner
783212b954
Traffic: add a trivial test of createPushback
...
No validation yet, but creates all the needed pieces and doesn’t crash.
2020-12-21 13:25:15 +00:00
James Turner
a80d273222
Scenario loading: don’t report XML errors
...
User-defined scenarios are common, don’t report XML errors to the backend
for these since it generates a lot of noise.
Sentry-Id: FLIGHTGEAR-BNW
2020-12-18 15:20:13 +00:00
James Turner
bb2ef62b5a
Sentry: whitelist another XML error
2020-12-18 15:11:33 +00:00
James Turner
ec30b0d5db
HTS: fix a crash if malloc returns null
...
This is probably only a partial fix, but won’t hurt.
Sentry-Id: FLIGHTGEAR-39N
2020-12-18 14:02:03 +00:00