ThorstenB [Sat, 13 Nov 2010 15:29:34 +0000 (16:29 +0100)]
New property identifying missing MP planes
Provide "model-installed" property at MP planes for pilot list.
Avoid direct directory access in Nasal (aircraft installed check).
Torsten Dreyer [Wed, 10 Nov 2010 21:19:25 +0000 (22:19 +0100)]
Make startup.nas obsolete
This is an ugly hack for automatic runway selection on startup based on
metar data. It's main intention is to make startup.nas obsolete and
to guarantee the same runway selection logic as used for AI traffic.
Calling presets-commit from startup.nas during the initialization
sequence caused occasional trouble and sometimes, the AI traffic
operated on the opposite runway.
Torsten Dreyer [Tue, 2 Nov 2010 10:07:33 +0000 (11:07 +0100)]
add <initialize-to> to components
The tag <initialize-to> can be used to control the value
of the output when the component is first enabled. This
controls initialization of the output property and the current
value for internal computation
Valid values are
<initialize-to>input</initialize-to>
set the output-property to the input value
<initialize-to>output</initialize-to>
set the output-property to the output value
<initialize-to>none</initialize-to>
ignore input and output value
ThorstenB [Sun, 24 Oct 2010 19:36:15 +0000 (21:36 +0200)]
Fix occasional start-up crash when reading GUI XMLs.
_dialog_props holds SGSharedPtrs (pointers managed by reference counters).
Explicitly casting the object to an unmanaged SGPropertyNode* and deleting it
may cause heap corruption, since the following assignment "_dialog_props[..] = ..."
also tries to delete the (already deleted) object.
James Turner [Sun, 11 Oct 2009 11:37:13 +0000 (12:37 +0100)]
Airways/procedures code - add new data structures to store waypoints and
procedures, and routing algorithms, and modify the GPS, route manager and
WaypointList to use the new objects.
James Turner [Sun, 17 Oct 2010 23:58:35 +0000 (00:58 +0100)]
Use a property listener on the root, to observe property creation, and thus lazily update the MP property map. Fixes bug 164, and probably many latent MP missing-property issues.
Torsten Dreyer [Mon, 11 Oct 2010 19:21:53 +0000 (21:21 +0200)]
Fix timing issue on startup for auto runway selection
The automatic runway selection code in startup.nas depends
on a valid metar before /sim/signals/nasal-dir-initialized
is fired. If the METAR arrives after that signal, no automatic
runway selection is performed. This patch waits for a METAR
on the first update() loop of the subsystem.
Thorsten Brehm [Fri, 8 Oct 2010 19:41:09 +0000 (21:41 +0200)]
Fixed autopilot/Predictor.
Signature of Predictor::configure must match AnalogComponent::configure,
otherwise the inherited method isn't overridden.
=> predictor couldn't be configured.
=> speed predictor rules in "generic-autopilot-helper.xml" weren't working.
Thorsten Brehm [Tue, 5 Oct 2010 20:34:23 +0000 (22:34 +0200)]
Another GPWS fix: terrain clearance filter must be reset on reset/reposition.
Queue of recent altitude samples must be cleared on reset/reposition to avoid nuisance alerts...
Thorsten Brehm [Tue, 5 Oct 2010 20:34:08 +0000 (22:34 +0200)]
Fixed navradio when shutting down/restarting nav receiver.
"nav-loc" and "has_gs" properties were not updated when nav receiver was rebooted.
Shutting down the nav receiver clears all nav outputs (including "nav-loc" and "has_gs").
=> When nav receiver is powered again, all outputs must be updated.
=> "nav-loc" and "has_gs" are only updated when active nav station changes.
=> old nav station must be cleared on shutdown to enforce update on nav reboot...