Richard Harrison
5253215065
Improvements to performance monitoring.
...
* Ensure that subsystems are named.
* Nasal timers are named appropriately
2019-02-10 18:07:07 +01:00
James Turner
a9a49bc2e6
Unboosting files
...
Use simgear::strutils replacements in places, C++11 features in others
2019-02-04 15:20:22 +00:00
Torsten Dreyer
8a190f853f
unboost the autopilot
2019-02-03 15:11:45 +01:00
James Turner
8f67ddf896
Route-manager: expose new flight-plan values
...
There were existing properties for these values, make them attached to
the flight-plan values now, especially for cruise settings.
2018-10-12 15:27:51 +01:00
James Turner
26bc3713b5
Changes for SimGear subsystem add/remove tracking
...
Since the subsystem manager tracks group state, it now binds/inits
automatically. This means groups which create subsystems during init
no longer need to manually bind() them.
2018-08-12 11:18:50 -07:00
James Turner
aed59ea4bf
Fix an assert with autopilot groups
...
(Missing call to the base class in bind())
2018-04-27 13:57:32 +01:00
James Turner
178c6440f6
Permit three-letter (FAA) airport identifiers
...
Patch from Jean-Paul Anceaux to allow some FAA but non-ICAO airports to
be used with the route-manager dialog.
2018-01-05 16:39:34 +00:00
James Turner
ca067b1a82
Fix Nasal owning of FlightPlans
...
Also refactor delegate ownership to be flat instead of nested, much
easier as the number of delegates has grown.
2017-09-11 23:24:24 +01:00
James Turner
657f811548
Activating a FlightPlan sets it on the route-mgr
...
This enables the Route-manager FP to be replaced from Nasal, as well as
via the load-route command.
2017-09-04 22:48:38 +01:00
Torsten Dreyer
169b0f59e5
Use SGMisc wrapper for _isnan makes "other" OSes happy
2017-07-07 09:12:16 +02:00
Richard Harrison
2c8aad12ba
Model relative property tree root binding.
...
Change fgcommand to take an optional property tree root element.
This fixes the animation bindings to use the defined property tree root - to support multiplayer (or other) model that can bind to the correct part of the property tree.
Requires a corresponding fix in sg to allow the command methods to take an optional root parameter.
What this means is that when inside someone else's multiplayer model (e.g. backseat, or co-pilot), the multipalyer (AI) model will correctly modify properties inside the correct part of the property tree inside (/ai), rather than modifying the properties inside the same part of the tree as the non-ai model.
This means that a properly setup model will operate within it's own space in the property tree; and permit more generic multiplayer code to be written.
This is probably responsible for some of the pollution of the root property tree with MP aircraft properties.
2017-07-05 11:37:17 +02:00
Rebecca N. Palmer
faf872e7f7
RouteMgr security: don't allow overwriting arbitrary files
...
(the previous fix 280cd523
missed commandSaveFlightPlan)
2017-05-11 22:21:20 +01:00
Szymon Acedański
28e9ba21f6
Fixed route manager returning freed char* pointers via tied properties
...
On Mac it was visible as random strings displayed in the route manager
dialog for selected SIDs and STARs.
Depends on a SimGear change which introduces SGStringValueMethods.
2017-02-25 15:17:03 +01:00
Florent Rougon
3dea0f73aa
Use SGPath::fromUtf8() to construct an SGPath from a property node string value
...
This was missing in a few places of src/Autopilot/route_mgr.cxx.
2016-12-11 12:40:09 +01:00
Florent Rougon
280cd52368
Security fix: don't allow the route manager to overwrite any file
...
Since the Save function can be triggered from Nasal with an arbitrary
path, we must check this path before overwriting the file.
(also add a missing include that is directly needed for this commit)
2016-12-09 17:15:06 +01:00
James Turner
03ecac9dbc
Work with new SGPath API.
2016-06-22 17:36:05 +01:00
James Turner
ed8970a29d
Fix some more uses of libC time()
2016-01-05 23:19:28 -06:00
James Turner
43fcbd2246
Progress towards testing
...
- remove route-manager from global variables
2015-12-10 16:40:22 -06:00
Torsten Dreyer
36113bf69d
Cleanup: remove unused code and includes
...
no functional change
jpg-httpd functionality was moved into httpd with 3.4
cmd-line option still spits out a warning
2015-07-08 17:24:13 +02:00
Thomas Albrecht
c8115f516c
renamed to DampedOscillation
2015-05-02 14:26:05 +10:00
Torsten Dreyer
f8591433b1
DigitalFilter: remove debug output
2015-04-07 12:08:01 +02:00
Thomas Albrecht
e113586090
add DampedOsciFilter
2015-04-07 10:23:41 +02:00
Torsten Dreyer
55ed10953f
Fix StateMachine autopilot component
2015-03-22 16:09:42 +01:00
James Turner
564177933b
FlightPlan activation, delegate hook.
2015-02-23 13:41:50 +00:00
James Turner
01622dd1f4
Fix flight-plan course and distance computations.
...
Always use the RoutePath system for course and distance computations
in the flight plan, so that dynamic segments are handled correctly.
2014-12-08 17:56:15 +00:00
Torsten Dreyer
3e47fc0c11
set corret logging class for A/P messages
2014-05-20 22:36:43 +02:00
Torsten Dreyer
4be1aba62e
Autopilot: enable debug output for logic elements
2014-03-28 17:48:35 +01:00
Thomas Geymayer
88b7d4f530
Update for SGPropertyNode changes.
2014-03-06 00:41:41 +01:00
Thomas Geymayer
831f75a030
Autopilot: fix wrong warning for unknown node
2014-02-27 00:20:06 +01:00
Thomas Geymayer
f1e0206f30
Autopilot: fix configuration to prevent false warnings.
2014-02-24 23:19:50 +01:00
Thomas Geymayer
e600cd3d00
Autopilot: add interface properties and property-root.
...
- Support interface properties as with JSBSim for easy reuse
and parametrization of autopilot components.
- Add property-root property to allow changing property root
for all relative paths. This allows easy use of multiple
instances of the same autopilot component at the same time
by specifiying different property root nodes.
2014-02-09 18:51:09 +01:00
Thomas Geymayer
4ae8cd99a1
XMLAutopilot: cleanup and remove code already available in SGSubsystemGroup.
2014-02-09 18:50:55 +01:00
Thomas Geymayer
5b537b6999
PID: ensure correct initialization with large sampling interval
2013-12-22 14:18:25 +01:00
Torsten Dreyer
d1cae3ab4d
autopilot: add the forgotten RateLimitFilter
2013-12-19 09:40:24 +01:00
Torsten Dreyer
1ffa09cc49
Add new filters from Alan Teeder
2013-12-17 17:28:16 +01:00
James Turner
7719ad920d
Bug 1289, crash on AP reload
...
- missed update for revised subsystem ownership in the AP code.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1289
2013-12-09 21:46:34 +00:00
Gijs de Rooy
4dbcdbcceb
Output route manager ETA in seconds
2013-12-03 22:37:53 +01:00
James Turner
3e1af8248a
Fix a copy-paste bug in the route-manager.
...
autopilot/route-manager/departure/field-elevation-ft was giving
destination field elevation, not departure. Thanks to Hyde Yamakawa for
noticing this.
2013-12-01 21:48:03 +00:00
James Turner
4dcd96c4af
Remove dependency on command-mgr singleton
...
Use explicit instance (from globals)
2013-11-25 09:14:46 +00:00
James Turner
72b85b28da
Reset: route-manager guard against no plan.
2013-11-12 22:55:36 +00:00
James Turner
0751556aab
Reset: remove commands
2013-11-12 22:47:46 +00:00
James Turner
47ecc0ce29
Fix an MSVC debug crash.
...
Ensure the route-manger unregisters itself from the flightplan
on destruction, since it is a delegate.
2013-10-21 23:38:01 +01:00
Thomas Geymayer
39c129cee6
Fix signed/unsigned missmatch.
2013-09-08 13:49:29 +02:00
Torsten Dreyer
7e117d2558
Fix #1186 moving average filter
...
fix incorrect behaviour of the moving average filter as reported
and patched by bmbroom.
2013-09-05 10:21:44 +02: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
b1b6d2f6e2
Namespace fixes for std::string
2013-06-27 09:53:12 +01:00
James Turner
2ec4b6ecc2
Fix warnings identified by updated XCode.
...
Mostly unused private vars, for various reasons.
2013-06-21 18:39:24 +01:00
Thomas Geymayer
470a551176
Revert "Autopilot: Optionally write (internal) state to property tree"
...
This reverts commit 91ae41f9ef
.
We do not need this as outputs already are written to the property
tree and most intermediate values can easily be calculated
manually.
2013-06-18 19:58:28 +02:00
Thomas Geymayer
91ae41f9ef
Autopilot: Optionally write (internal) state to property tree
...
This can be useful eg. for plotting autopilot response
with the Canvas.
2013-06-17 23:21:36 +02:00
James Turner
16d1c47664
Fix a FlightPlan lifetime issue.
...
Route-manager was explicitly deleting its FP, which was incorrect.
Switch to correct use of SGSharedPtr to refer to flight plans.
Thanks to Roland Haeder for catching this.
2013-05-26 22:11:25 +01:00