James Turner
78498c560d
Rename preferences.xml -> defaults.xml
...
Requires FGData commit: 0565eaab10a5d466cd485766b17d1870936a0a57
(which actually renames the file).
Also disables the preferences-load command since I don’t believe it
would actually be safe to reload the defaults without doing a simulator
reset (aircraft -set.xml values would be overwritten, for example)
2017-01-12 09:45:19 +00:00
Torsten Dreyer
994ea1674b
replace many auto_ptr by unique_ptr
2016-11-14 22:20:46 +01:00
James Turner
6d0c2070fd
Use future-proof SGPath APIs.
...
Remove uses of .str(), .c_str() and some other methods of SGPath.
Pass SGPath directly where possible, or explicitly convert to the
appropriate 8-bit encoding.
2016-06-28 10:08:38 +01:00
James Turner
03ecac9dbc
Work with new SGPath API.
2016-06-22 17:36:05 +01:00
James Turner
e4e0db5cac
Aircraft-states feature.
2016-06-17 18:15:35 +01:00
James Turner
52f39abc6b
Apply /sim/speed-up to general subsystem dt
...
- consistent with pause (freeze), /sim/speed-up is now applied to the
dt value for all subsystems, not just the FDM and some instruments.
For example AI traffic can now be sped-up or slowed down.
- requires both an FGData and Simgear update.
2016-01-05 23:19:28 -06:00
James Turner
d7a680e848
Templated subsystem handling
...
- remove explicit FGControls var from globals, as part of work
towards unit-testing infrastructure.
2015-12-10 15:53:05 -06:00
Torsten Dreyer
265c99a149
FlightHistory: add pagedPathForHistory
...
pathForHistory() halts the sim for a few seconds when called on long flights.
pagePathForHistory allows to retrieve the complete history in chunks
2015-03-03 17:08:20 +01:00
Torsten Dreyer
68c9adb489
FlightHistory: make clear() public
2015-02-23 16:31:49 +01:00
Torsten Dreyer
275d2dc7fa
Partial fix #1408
2014-03-12 21:21:56 +01:00
Thomas Geymayer
88b7d4f530
Update for SGPropertyNode changes.
2014-03-06 00:41:41 +01:00
James Turner
23fa13c76b
Bug 1023, crash on replay.
...
Fix by Jeff Biggs, commit 7d80b30d28baccf80958d9db488364a9a5c3884b from osgearth branch.
2013-11-09 07:13:00 -08:00
Tom Paoletti
81cd33e2fa
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:01:59 +01:00
James Turner
015732db33
Fix un-inited vars found by valgrind.
...
All benign, but good to get fixed.
2013-03-17 13:22:30 +00:00
James Turner
67ca0689c9
Work-around a clang glitch with 10.6
2013-02-10 11:53:42 +00:00
James Turner
d9159e719d
FlightRecorder: smarter log warning.
...
When using the default (generic) config, which references many props which may not exist in a particular aircraft, suppress the 'recording non-existent' property warning.
2013-02-10 11:47:16 +00:00
James Turner
8ca7632845
Fix a GCC warning.
2013-02-09 15:33:13 +00:00
Christian Schmitt
2013f7149d
Some headers missing... ;)
2013-02-07 19:00:54 +01:00
James Turner
18506d3e65
FlightHistory: spatial limit on captures.
...
If you're not paused, but are stationary, don't record captures.
2012-12-11 09:17:25 +00:00
James Turner
e88e821567
Flight-history men usage cap.
...
Beyond a certain cap (currently 4MB), recycle buckets. With the default sample rate of 1Hz, this gives over 24 hours of history before recycling.
2012-12-11 00:10:57 +00:00
James Turner
433af2b51a
Flight-path-history.
...
Record the historical flight-path (by default, since last takeoff). Optionally display the flight-path in the map; other visualisations (e.g., an 'in-world' view) could also be created. Nasal API to follow so Canvas-map or FMS can show the same data.
Altitude and attitude (Euler angles) are currently recorded but not used anywhere.
2012-12-10 18:11:44 +00:00
ThorstenB
25138930e3
replay system: protect from recording multiple records for identical time
...
And avoid div by zero when dt==0 for recorded data.
2012-11-11 17:36:10 +01:00
ThorstenB
fdb64a02a8
Extended replay and flight recording system
...
Save/restore replay sessions.
Replay system message support, so recorded flights can be turned into
flight tutorials.
2012-11-10 21:26:08 +01:00
James Turner
cd7a02ca69
Make FGControls behave like normal subsystem.
...
FGControls create/init/bind order was incorrect, causing initial property tree state to get over-written. Restructure the code so bind() sees correct values.
2012-09-28 15:32:31 +01:00
ThorstenB
e5b81a8bb6
Minor pointer safety and compiler warning issues.
2012-09-25 22:10:06 +02:00
James Turner
2f6172687e
Make FGControls behave like a standard subsystem.
2012-09-25 00:48:48 +01:00
James Turner
7fabeed85d
Fix some places relying on public 'using std::string' in SimGear
...
(Otherwise my next SimGear commit will break them)
2012-08-21 17:07:47 +01:00
ThorstenB
0f462d4a6e
Fix rpmlint/Linux packager complaints
...
about outdated/invalid FSF address in some license headers.
2012-05-05 01:42:41 +02:00
ThorstenB
e59fabaf82
Clean-up some SGMath dependencies.
2012-05-05 00:56:29 +02:00
Torsten Dreyer
5caa42af8e
Make use of auto-coordination more flexible
...
- move property /sim/auto-coordination to
/controls/flight/auto-coordination
- introduce new property /controls/flight/auto-coordination-factor
with default of 0.5
- auto-coordinate the rudder if auto-coordination is true and the factor
is greater than zero
backward compatibility for the old property is temporary provided by
a temporary Nasal hack in FGDATA/Nasal/aircraft.nas
2012-03-13 21:00:22 +01:00
ThorstenB
93a5765d08
#669 : reset fly-by-view when a new replay loop begins
2012-02-19 14:53:04 +01:00
ThorstenB
5c3b6a2cc4
Fix string buffer issue with replay time display.
...
Unclean method of appending a string to a buffer would break with
some compiler optimization settings.
2012-01-31 23:19:02 +01:00
Frederic Bouvier
f1d0ac52a6
Fix MSVC9 build
2011-11-14 08:38:58 +01:00
James Turner
70b4f38ebc
Goodbye automake.
2011-11-01 11:15:53 +00:00
ThorstenB
8b05d7b211
replay system: allow to resume simulation at any point of replay-time.
...
Currently supported for YASim only.
2011-10-09 20:36:01 +02:00
ThorstenB
ab84ff5904
Replay upgrade, part II: Integrate flight recorder, update replay system.
...
Drop hard-coded replay property logic, cut ties to net_ctrls, net_fdm.
Improve replay system controls and status information.
2011-10-01 22:58:40 +02:00
ThorstenB
d64bcf0175
Replay upgrade, part I: Add new flight recorder.
2011-10-01 22:41:53 +02:00
James Turner
7abf7c5748
CMake header support for XCode/Visual Studio
2011-07-19 07:58:03 +01:00
ThorstenB
9bd00a62fa
Continuous replay: use correct replay duration
...
(LinuxTag live hacking...)
2011-05-14 10:19:51 +02:00
ThorstenB
6c3cd27a57
Looped replay feature
...
New option for continuously repeated replay
(LinuxTag FlightGear demo mode :) )
2011-05-14 09:17:51 +02:00
ThorstenB
d051b800cc
Minor replay issues
...
restore most recent frame
2011-03-24 23:41:12 +01:00
ThorstenB
3a90186341
Minor replay issues
...
When disabling replay: don't clear buffers and restore most recent frame
2011-03-24 23:30:09 +01:00
ThorstenB
5ace4e9632
Fix reset during replay issue
...
Need to properly reset the replay manager's states on sim reset.
Also remove obsolete method.
2011-03-22 21:02:57 +01:00
ThorstenB
991beb0b5e
replay/FDM shell subsystem refactoring
...
Move final bits of replay code to where it belongs.
Use subsystem suspend/resume for FDM shell during instant replay.
2011-03-21 23:07:05 +01:00
ThorstenB
b6d70d2c71
Replay improvements
...
Clear replay buffers on sim reset.
Allow instant replay to be activated properly when sim is paused.
2011-03-20 15:03:47 +01:00
Torsten Dreyer
fff48bdd6a
Refactor controls.cxx: use simgear functions
...
- use TiedPropertyList
- use SG_CLAMP_RANGE
2011-02-14 20:44:20 +01:00
James Turner
a91ec5f9f9
Initial work on CMake build files, with considerable help from Olaf Flebbe.
2010-12-19 15:06:04 +00:00
Torsten Dreyer
f97295f004
fix inconsitent property name fuel[-_]pump
2010-11-14 13:53:45 +01:00
Christian Schmitt
0a5e86f4e6
remove old .cvsignore files
2010-11-11 01:16:29 +01:00
James Turner
c32da90e5c
Ensure sim/signals/fdm-initialized is only fired on a rising edge; add sim/fdm-initialized as the state value.
2010-07-13 13:47:24 +01:00