1
0
Fork 0
fgdata/Nasal
Curtis L. Olson 1142bde5e9 Tomaskom writes:
I was playing with the target tracking and decided to fix an old bug that causes it to behave wrong at higher altitudes.

Background: the script continuously updates values in the autopilot to follow specified target aircraft (AI/MP). It is controlled directly through the property tree under /autopilot/target-tracking.

Issue: the script reads out true airspeed, but autopilot expects indicated airspeed. This is why at higher altitudes, the tracking always overshoots.

I fixed this by introducing an estimate on indicated airspeed of the target, using the ratio between local aircraft true and indicated airspeed.
I also fixed an issue where it ignored minimum speed setting and polished initialization by using props.globals.initNode() instead of dedicated presence check for every property (and also ensured the nodes have correct types, no more bool stored as double). And the last thing I changed was to increase the default tracking distance to a more sane value, with the original value of 0.05nm the tracking was unstable in heading with most aircraft and started oscillating.
With the changes I applied, the distance is now holding precisely at any altitude and with any winds.
2015-05-28 10:29:38 -05:00
..
canvas Add canvas display for TACAN; improve wind vector direction correction 2015-05-16 13:53:01 +02:00
console Nasal REPL: integrate with Canvas keyboard 2014-11-28 09:29:28 -06:00
FailureMgr Bugfixes and improvements to the Failure Manager 2014-12-21 12:39:52 +01:00
jetways Animated jetways: Remove obsolete use-custom-scenery-data property 2013-05-08 22:39:29 +01:00
jetways_edit Revert "Add minor pathname correction." 2011-07-16 15:39:41 +02:00
local_weather Tentative bugfix for AW not considering gusty follow-up METAR reports 2015-01-14 10:04:42 +02:00
performance_monitor Close dialogs with Esc-key 2013-12-02 21:32:05 +01:00
std Nasal: std.Vector: add 'contains' method (by onox). 2014-12-23 14:40:29 +01:00
towing Hitch/aertow updates fro D-NXKT 2015-01-04 08:58:20 +00:00
tutorial Switch GUI to use new reposition command. 2014-03-05 16:46:10 +00:00
aircraft.nas Switch GUI to use new reposition command. 2014-03-05 16:46:10 +00:00
bits.nas string(): make zero padding work if arg is 0 2008-12-22 01:50:48 +00:00
checklist.nas Support <marker> and <page> tags in the conversion of checklists to tutorials. 2013-02-27 22:46:37 +00:00
contrail.nas Nasal/*.nas: named arguments 2013-10-20 13:07:09 -05:00
controls.nas Add condition axis as per issue 1249 2013-11-05 14:38:43 -06:00
debug.nas Nasal: respect color argument for debug._dump_prop 2014-06-21 12:09:34 +02:00
dynamic_view.nas revert init signal change -- better fix the real problem 2008-12-19 20:52:22 +00:00
earthview.nas Updates to Earthview, based on work by Anton Gomez Alvedro 2014-05-05 15:27:32 +03:00
environment.nas Fix z/Z key-binding. 2014-01-01 21:49:17 +00:00
events.nas Bugfixes and improvements to the Failure Manager 2014-12-21 12:39:52 +01:00
fuel.nas #705: add sanity checks to fuel tank update 2012-04-22 15:19:20 +02:00
geo.nas Many MapStructure/NavDisplay updates 2014-04-28 21:39:00 -05:00
glide_slope_tunnel.nas fgdata/Nasal: avoid performance drop after sim reset/relocate 2012-03-20 21:18:20 +01:00
globals.nas Adds assert() for Nasal and fixes io.include internal marking 2014-06-06 21:41:10 -05:00
gui.nas Added possibility to specify position to gui.popupTip 2015-01-04 18:36:18 +01:00
io.nas Adds assert() for Nasal and fixes io.include internal marking 2014-06-06 21:41:10 -05:00
IOrules Remove FG_SCENERY from Nasal allowed directories 2015-03-13 18:31:38 +00:00
joystick.nas Fix controls.ptt(-1) to controls.ptt(0) in Nasal/joystick.nas 2013-09-24 13:29:37 +02:00
material.nas Fix #1310 - typo in material.nas 2014-01-19 15:52:38 -06:00
math.nas Remove items implement natively in Nasal. 2013-10-03 17:42:20 +01:00
mp_broadcast.nas Nasal/mp_broadcast.nas: Handle joining/leaving the MP network at run time. 2013-02-03 19:27:35 +01:00
multikey.nas - let F12 pop up radio settings dialog (used to be Ctrl-r) 2008-10-08 21:59:31 +00:00
multiplayer.nas Close dialogs with Esc-key 2013-12-02 21:32:05 +01:00
prop_key_handler.nas Initial Nasal REPL work (canvas-based) 2014-04-18 16:49:11 -05:00
props.nas Add props.compileCondition to actually use exposed SGCondition. 2014-06-23 21:12:57 +02:00
redout.nas fgdata/Nasal: avoid performance drop after sim reset/relocate 2012-03-20 21:18:20 +01:00
route_manager.nas Procedures: be defensive about STAR/approach choice. 2015-01-10 19:38:29 +00:00
scenery.nas Nasal/scenery.nas: Handle joining/leaving the MP network at run time. 2013-02-03 19:27:47 +01:00
screen.nas Add ability to clear screen.window, and use it. 2014-01-12 19:52:30 +00:00
seaport.nas don't use printlog before nasal-dir-initialized 2010-10-13 20:46:31 +02:00
string.nas debug.nas: use argument to disable/enable color 2014-06-06 21:19:10 -05:00
tanker.nas Normalize angles for bearings on tanker. 2013-04-12 20:52:04 +01:00
track_target.nas Tomaskom writes: 2015-05-28 10:29:38 -05:00
view.nas Fix screen width compensation 2014-11-27 22:17:22 -06:00
weather_scenario.nas Correct use of getprop() so that --enable-real-weather-fetch works. 2012-06-12 11:09:50 +01:00
wildfire.nas GUI Cleanup from Michael HABARTA. Part 3/3 2015-05-03 17:13:50 +01:00