1
0
Fork 0
Commit graph

383 commits

Author SHA1 Message Date
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
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