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
Bertrand Coconnier
90a04a4baa
[JSBSim] Relax the assert when trying to clip with max < min.
...
Throwing an exception was too harsh. Instead the clipping is ignored and a warning message issued.
2019-12-30 00:30:26 +01:00
Scott Giese
a9365cd34e
Embedded Resources: Fix for Ninja 1.9
...
Refactor to break circular references.
New custom target generates the resource files.
FGFS and Test_Suite targets declare a dependency to the generated files.
2019-12-26 01:26:44 -06:00
James Turner
be628b36b7
Allow add/remove of IO channels at runtime
...
Commands:
add-io-channel
remove-io-channel
2019-12-19 00:00:41 +00:00
James Turner
f76709a853
Save settings on Launcher window close.
...
Patch by Slawek Mikula, from:
https://sourceforge.net/p/flightgear/codetickets/2158/
2019-12-17 22:47:50 +00:00
James Turner
ba36bd90e0
Launcher respects —enable-fullscreen arg
...
Patch by Slawek Mikula from:
https://sourceforge.net/p/flightgear/codetickets/2162/
2019-12-17 22:40:25 +00:00
James Turner
c48c1a06e8
Look for protocols in aircraft paths
...
Modified from patch by Slawek Mikula
2019-12-17 22:34:19 +00:00
James Turner
fad9f7068f
Expose canvas::Image pixel funcs to Nasal
2019-12-17 22:06:35 +00:00
Scott Giese
93a1d5e2d1
Fix HUD scale
2019-12-15 18:58:19 -06:00
Scott Giese
51f6a25a04
Obsolete: dynamic exception
2019-12-15 16:39:49 -06:00
Scott Giese
a14923cea0
Maintainability: Anticipate future types
2019-12-15 16:38:45 -06:00
Scott Giese
c97ad0182b
Prevent buffer unterminated buffer
2019-12-15 16:37:44 -06:00
Bertrand Coconnier
e1ecab0a15
[JSBSim] Do not initialize properties that already exist.
...
That, among other things, triggered a bug where the aircraft spawned with gears up whatever the initial setting was.
2019-12-15 11:53:45 +01:00
Bertrand Coconnier
2f5edf6558
[JSBSim] Supplement to the fix for the initialization issue.
...
One of the output node was lost in the process. Tested it myself with the Space Shuttle: this additional commit makes the error disappear.
2019-11-17 19:25:56 +01:00
Bertrand Coconnier
9782d9e65a
[JSBSim] Tentative fix for initialization issues reported in the ML.
...
Nodes might be uninitialized when a channel is initailly disabled. To work around that issue, the initialization of the output nodes is forced at creation.
2019-11-17 17:51:19 +01:00
Bertrand Coconnier
88ca381e83
[JSBSim] An improvement and 2 bug fixes
...
- Electric engines RPM is now exported in UDP sockets.
- The sign of the XZ inertia has been fixed in the property inertia/ixz-slug_ft2 (was just an output error, the correct XZ inertia was used internally). Thanks to Nikolai Verner Christensen for reporting the bug.
- The parameter <ignitionn2> was wrongly affected to N1. Bug reported by Nikolai Verner Christensen and fixed by Jonathan Redpath. Thanks to them.
2019-11-17 12:33:28 +01:00
Bertrand Coconnier
b4bb24f10e
[JSBSim] Fixed the displacements resulting from modifications of the mass distribution while the aircraft is sitting on ground (bug GH #230 reported by Gijs de Rooy).
2019-11-10 16:10:47 +01:00
Edward d'Auvergne
4105b70f74
Options: Only set the logging priority if the command line option is supplied.
...
This prevents the changing of the logstream priority as set by the test suite
permanently to "alert" during the execution of tests. Setting a default value
of SG_ALERT is not required as this is the simgear logstream default anyway.
2019-11-08 13:59:17 +01:00
Edward d'Auvergne
0f0361efb8
Options::setupRoot: Removal of the logic that fg_root is currently not set.
...
This allows the test suite to preset fg_root using its own bootstrapping logic.
2019-11-08 13:59:16 +01:00
Julian Smith
f4fcf43ffa
src/Environment/metarproperties.cxx: better formatting for METAR description.
...
Pass tabstops=-1 to getDescription() makes it use single space for tabs, which
gives better output when used with proportional font.
2019-11-06 19:56:30 +00:00
Erik Hofman
9644966dfd
Also add pressure to the mix
2019-11-04 15:19:10 +01:00
Erik Hofman
c739d47793
Parse the current temperature and humidity to the sound code for proper sound velocity and distance attenuation (with ditance based frequency response filtering). AeonWave only.
2019-11-04 14:57:43 +01:00
Julian Smith
88644185b3
src/Main/metar_main.cxx: added -s option to decode explicit METAR string without contacting server.
2019-10-31 22:53:41 +00:00
Julian Smith
4b1cfbc5ed
src/Main/metar_main.cxx: use SGMetar::getDescription().
2019-10-31 22:49:09 +00:00
Julian Smith
191f53ff5e
src/Environment/metarproperties.*: put human-readable metar description into properties.
...
We set /environment/metar/description to human-readable description of metar,
for use by fgdata's weather dialogue, using simgear FGMetar's new description()
method.
2019-10-31 16:50:01 +00:00
James Turner
68a72f22f2
Fix a copy-paste-bug in a Nasal error
2019-10-20 13:08:47 +01:00
James Turner
26b9cce6a3
Quiet false-positive tied-listener warnings
...
Use a new SGPropertyNode flag, LISTENER_SAFE, to white-list properties
where we do correctly fire listeners, and test this flag when listening
from Nasal, to avoid the warning.
2019-10-20 13:08:47 +01:00
James Turner
a18dda21ef
Fix a GCC warning: catching exception by value
2019-10-20 13:08:47 +01:00
James Turner
3bb7a25580
Merge /u/daniel-me/flightgear/ branch pg-fix2 into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/180/
2019-10-19 11:12:34 +00:00
James Turner
0e082d5c46
Tweaking macOS HID code to avoid a Catalina crash
...
Not certain what’s going on here, this is testing a theory that
deleting a HID queue which has never been started, might behave badly.
2019-10-17 00:01:59 +01:00
James Turner
45fbdaa9c9
Starting tests for RNAV/procedures
...
One test so far, attempting to reproduce a bug I see with the 737.
Note these tests are skipped unless you have procedures available
and set a magic env var to find them.
2019-10-16 23:28:52 +01:00
Daniel Meissner
315d38566e
YASim: Fix to the Prandtl/Glauert and Wavedrag features. Simplifies the model and resolves NaNs and sim crashes in supersonic flight
2019-10-16 22:59:16 +02:00
Bertrand Coconnier
73b7e94358
[JSBSim] Bug fixes
...
* Functions <random/> and <urandom/> are no longer considered constant.
* <clipto type="cyclic"> now clips negatives values correctly.
2019-10-13 14:18:09 +02:00
James Turner
18c19885c6
Improvements to Nasal hold API
...
Ensure changes from Nasal are picked up by delegates (such as GPS) when
they are made. Add a route-manager test which sets and exits a hold
using Nasal.
As part of this, update the test API to make it easy to run Nasal from
a test.
2019-09-24 11:29:05 +01:00
James Turner
12cccf043a
Nasal interface to hold waypoints
2019-09-23 23:01:12 +01:00
James Turner
5ce8a942bf
RNAV / GPS hold support
...
The GPS/RNAV system can now fly holds, both left and right-handed.
The correct entry is selected, and hold count can be selected.
Also there's lots of lovely test cases.
2019-09-23 23:01:12 +01:00
James Turner
15c101efe4
GPS detects being repositioned
...
Avoid screwing up the derived / trend data when we are repositioned;
detect instantaneous position changes and don’t update the trend
data in this case.
2019-09-23 23:01:12 +01:00
James Turner
45df8f51b2
Move GPS sequencing into Nasal (optionally)
...
GPS now lets the delegate handle the sequencing behaviour, by
setting a new config property. The default GPS delegate (in Nasal)
now sets this property.
This requires a corresponding FGData update.
2019-09-20 13:05:57 +01:00
James Turner
833cc61293
GPS intercept tests
2019-09-20 09:50:55 +01:00
James Turner
2434c037c8
Improve Leg mode course/track computation
2019-09-19 17:27:13 +01:00