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
James Turner
e89df85817
GPSs uses FlightPlans directly.
2013-04-09 10:20:02 +01:00
James Turner
1eb8ae1fbf
Give the FGAirport class a sane filename.
...
simple.[cxx|hxx] -> airport.[cxx|hxx]
2013-02-21 11:32:02 +00:00
Christian Schmitt
2013f7149d
Some headers missing... ;)
2013-02-07 19:00:54 +01:00
James Turner
978a2cd8c6
Initial work on state-machine AP module.
2013-01-31 22:40:48 +00:00
Torsten Dreyer
4277ca6540
Autopilot: rename parameter, no functional change
2012-12-31 22:21:30 +01:00
Torsten Dreyer
fcf40ec6a8
Autopilot: initialize the derivative filter
...
Dont let the derivative filter emit a spike on init or reset if the input
value is non-zero. This is a potential fix for #973 .
2012-12-31 21:27:13 +01:00
James Turner
44a44a0246
Nicer default SID and approach procedures.
...
Note these are still generic and do NOT take local terrain into account. Don't come crying to me if you fly into nearby terrain because you weren't using a real procedure!
2012-12-30 15:37:25 +00:00
James Turner
d311045018
Bug 974, GPS exceptions at end-of-route.
...
One of the two route termination conditions was improperly handled, leading to bad leg/wpt indices and exceptions from the GPS code. Detect passing the final waypoint in a more robust way now.
Also fix the GPS code to avoid turn computation on the final leg.
2012-12-29 13:45:27 +00:00
James Turner
e248ea8183
Fix altitudes on default SIDs and approaches.
...
Thanks to Hyde for noticing I had set the elevations incorrectly.
2012-12-24 20:22:58 +00:00
James Turner
7d88714e2d
Fix duplicate runway wpt in default approach.
2012-11-24 13:50:37 +00:00
ThorstenB
58380b286e
Fixed some uninitialized member vars and a mem leak.
2012-11-18 16:39:22 +01:00
Frederic Bouvier
b88e941ca2
MSVC compile fix
2012-11-15 08:42:10 +01:00
James Turner
78d97fa468
Support for creating default SID/approach.
...
Durk reminded me of this - when we're missing procedures data (the common case), synthesise a plausible (but possibly dangerously unrealistic) departure and approach. Will work fine for airports in gentle terrain, and likely kill you at challenging airports. You have been warned.
2012-11-12 22:30:28 +01:00
James Turner
0f927d5766
Part of bug 885
...
Allow the route-manager to be explicitly de-activated.
2012-09-26 22:43:19 +01:00
James Turner
1be2aa558f
Quieten down autopilot creation log.
2012-09-26 16:25:43 +01:00
James Turner
48c26079e1
Fix classes derived from SubsystemGroup.
...
Various classes derive from SubsystemGroup, but extend the init behaviour. Fix those for the incremental init scheme, generally by forcing their init to be atomic. Can convert them to be truly incremental in the future if it's needed, but probably not.
2012-09-19 11:37:19 +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
Mathias Froehlich
86e61cfd78
autopilot: Introduce virtual dtor.
...
Introduce a virtual destructor to make deleting
FunctorBase instances ComponentForge::~ComponentForge
work reliable.
2012-07-29 17:59:38 +02:00
James Turner
1ef77b2bc2
More route-manager functionality moved to Nasal.
...
The routing behaviour now happens entirely in Nasal,
using a delegate, and can be over-ridden or disable
by aircraft authors. Default behaviour should be
unchanged.
2012-05-15 17:53:30 +01:00
James Turner
ce92730ef6
Expose FlightPlan delegates to Nasal, finally.
...
This will permit Nasal (e.g., FMS) to update nicely when the FlightPlan
is modified from anywhere else.
2012-05-12 17:23:17 +01:00