1
0
Fork 0
Commit graph

15293 commits

Author SHA1 Message Date
Julian Smith
2e782100c8 src/Aircraft/initialstate.cxx: fixed typo in diagnostic when --state=... is not found. 2021-01-30 12:48:06 +00:00
Julian Smith
fb027e0193 src/Scripting/nasal-props.cxx:f_setValueHelper(): improved diagnostic.
Added s_val_description() which returns string describing a naRef.
2021-01-30 12:48:06 +00:00
Julian Smith
8672a60699 src/Viewer/sview.cxx: minor improvements to Step view's tower views.
Move forward 1 metre in tower view look from, to slightly improve view of
ground near tower.

Removed incorrect attempt to move towards target in other tower views, that
didn't work.
2021-01-30 12:47:52 +00:00
Julian Smith
c59d9e039d src/Viewer/sview.cxx: in Step views, scale panning by fov/window_size, to allow fine control even at high zoom.
This means that the image on screen moves by the same distance as the mouse
(for small movements), regardless of window size or zoom level. Current mouse
drag handling in extra view windows is poor though - mouse is constrained by
screen size.

Would be good to do this for standard views as well, but the code in view.cxx
is more complex so haven't been able to figure out how.
2021-01-30 12:46:13 +00:00
James Turner
ffbf37d198 Marker beacons: support correct timing, audio sync.
Allow the option to have the marker beacon instrument use either the
correct timing, or ‘always on’ when the beacon is in range. Try to
ensure the audio is synchronised with the visual property. by using
the same timing values.

Also avoids losing sync when using the ‘audio-btn’ toggle, and increases
the update rate to allow accurate timing. Finally, switch from tied
properties to regular ones, so listeners on the beacon properties are
updated directly.
2021-01-28 21:00:51 +00:00
Julian Smith
1f5a84df0c src/Viewer/sview.hxx: updated doc comments - various limitations removed a while ago. 2021-01-27 23:24:42 +00:00
Stuart Buchanan
35c0f7d028 WS30: Property configuration VPB
Configure the VPB elevation mesh via properties:

/scenery/elevation-mesh/sample-ratio controls the elevation
mesh sampling, allowing reduction in mesh size

/scenery/elevation-mesh/vertical-scale is just for fun and
scales the mesh vertically making mountains taller.

/scenery/elevation-mesh/constraint-gap-m controls how much below
airports etc. elevation vertices are forced to be.
2021-01-27 20:03:49 +00:00
James Turner
71c09f0bcd Extended NavRadio tests by Huntley Palmer
Also covers the new nav radio code, as well as the old version.
2021-01-24 16:09:18 +00:00
James Turner
548b9d8bc0 System test for Options
Test various combinations of aircraft-dir, aircraft and fg-aircraft
options.
2021-01-24 15:01:45 +00:00
James Turner
d10d9dfadd Ensure /sim/aircraft is only the leaf ID
Keep the (possibly) fully-qualified ID in /sim/aircraft-id property

This should fix aircraft which rely on /sim/aircraft to be the
variant name.

Ticket-Id: https://sourceforge.net/p/flightgear/codetickets/2502/
2021-01-24 15:01:45 +00:00
Julian Smith
c031abe8d2 Partial fix for reset when using --composite-viewer=1.
[Marked as 'Partial' because, for me, reset eventually runs out of memory with
both composite-viewer and non-composite-viewer.]

fgStartNewReset(): pass existing composite_viewer to FGRenderer constructor so
that it is used after reset instead of us creating a new instance. Also reuse
existing osgViewer::View.

In FGRenderer::init(), don't create new osgViewer::CompositeViewer if
this->composite_viewer is already set.
2021-01-23 16:27:12 +00:00
Julian Smith
42eacf6928 src/Main/fg_init.cxx: open popup message if going readonly because of existing fgfs process.
Should avoid confusion, e.g. because terrasync being disabled.
2021-01-23 16:27:12 +00:00
Julian Smith
25e56ceee7 src/Main/main.cxx: added diagnostic if initTerrasync() fails because /sim/fghome-readonly is true. 2021-01-23 16:27:12 +00:00
James Turner
8ec91b3220 Launcher: remove obsolete winter/ALS settings 2021-01-23 14:40:00 +00:00
James Turner
73b14cd69d GPS: fix crash when failing to build RNav controller
Sentry-Id: FLIGHTGEAR-FFX
2021-01-23 14:40:00 +00:00
Erik Hofman
41587d61ee A reinit of the FGFX class left all the previous samples in the sample group in a stale state. The sample group code is robust enough to handle such a situation but they still occupy memory. So stop the inherited sample group explicityly at reinit to free the samples. 2021-01-23 12:01:47 +01:00
Erik Hofman
ed94db3e18 Remove another instances of Conditional jump or move depends on uninitialised value(s) as reported by valgrind 2021-01-22 11:07:20 +01:00
Erik Hofman
168a50756e Remove two instances of Conditional jump or move depends on uninitialised value(s) as reported by valgrind 2021-01-22 11:00:48 +01:00
Erik Hofman
b4f0e43ccc Remove season selection 2021-01-22 11:00:21 +01:00
James Turner
9e77cdf6cb Add some real TimeManager tests. 2021-01-19 17:35:12 +00:00
Slawek Mikula
354d7d02d2 #2177 - launcher - added flightplan info to summary window:
- Summary.qml - new row with Flight Plan info
- LauncherController.hxx, Launcher.qml - signals to show flightPlan & 
  exposing flight plan object
- FlightPlan.qml - add red color to information about airport mismatch
- FlightPlanController.cxx, FlightPlanController.hxx - description
  handling, support to loading flight-plan from command line argument 
  'flight-plan', saving last used dir when loading/saving flightplans
2021-01-18 12:38:58 +00:00
Colin Geniet
b738058945 Tests: Add some unit tests for submodels
Tests:
- loading XML submodels file, using just about every documented tag.
- submodel release trigger
- initial submodel position and velocity
2021-01-18 11:45:41 +00:00
Colin Geniet
4f4a81d12b Submodels: Fix initial position offset
Fixes https://sourceforge.net/p/flightgear/codetickets/2521/

For submodels with rotation offsets, the rotation was applied to the
translation offset.
This is incorrect: translation offsets should be in the aircraft local
frame, and thus are not affected by submodel rotation offsets.
2021-01-18 11:45:31 +00:00
James Turner
02814ebe35 Tests: mark some expected-fail tests
Disable GPS::finalLegCourseTest, and one of the View index tests,
so that tests pass successfully. 

Also add some default properties so the skeleton traffic tests start
up without crashing.
2021-01-18 11:45:13 +00:00
James Turner
015ae01bc9 Add skeleton TimeManager test. 2021-01-18 11:01:28 +00:00
James Turner
ffda1a0cb8 Unit-tests: add initial DME, new nav radio tests
Very basic so far, lots more to be done on both.
2021-01-18 11:01:28 +00:00
Stuart Buchanan
85f3183232 Fix Shuttle AI scenario 2021-01-17 19:13:42 +00:00
Stuart Buchanan
d8114e89f0 Remove Rembrandt command-line options
Forgot the Italian man-page.
2021-01-17 14:42:17 +00:00
Stuart Buchanan
82356aefca Remove Rembrandt command-line options 2021-01-17 14:40:15 +00:00
Stuart Buchanan
1579258320 WS3.0: Remove setLODScale property
This scales all LOD ranges and was added in an attempt
to control WS3.0 LOD ranges.  However it badly impacts
WS2.0 draw distances, and is not the right solution
for WS3.0.  So removing.
2021-01-14 20:08:15 +00:00
Stuart Buchanan
24e50def19 WS3.0: Remove duplicate elevation constraints
Elevation constraints are now added by the ReaderWriterSTG
for all OBJECT entries, so aren't explicitly required for
the .icao loader.  This also allows us to clean up the BVH
generation, as the constraint is added after the model loading
is completed and the BVH policy applied.
2021-01-14 11:33:56 +00:00
Stuart Buchanan
cb90785810 WS3.0: Place airports based on apt.dat entry
Previously WS3.0 airports could be placed via .stg
file.

Now they are OBJECT entries rather than OBJECT_STATIC
and the placement information is taken from the apt.dat file.

Also added as elevation constraint for WS3.0 terrain.
2021-01-13 20:29:00 +00:00
Erik Hofman
bb21d4a870 Better handle Spring coloring of the scenery. It is a bit abrupt, but then again so is the start of the growing season. 2021-01-10 15:21:55 +01:00
James Turner
57d6058c57 CMake: remove .cmake extensions
These seem to break include()’s regular path searching, which is odd.
2021-01-10 13:33:37 +00:00
Eatdirt
4c1f921156 Remove the Moon and Sun illusion effects 2021-01-10 13:03:33 +00:00
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