Runway Awareness and Advisory System: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 28: Line 28:


https://www.youtube.com/watch?feature=player_detailpage&v=0jkRhIMZAZo#t=171
https://www.youtube.com/watch?feature=player_detailpage&v=0jkRhIMZAZo#t=171
== Aircraft ==
Currently RAAS is only used in the [https://github.com/dogsaysmoo/747-8i/ 747-8i].
{{tip|Complain to the developer of your favorite aircraft if you want it to support RAAS.}}


== TODO ==
== TODO ==
Line 103: Line 109:
</syntaxhighlight>
</syntaxhighlight>


Add the file runway.nas to your aircraft's Nasal folder. The following example listens for gear[1] and gear[2] and overrides a number of properties of the takeoff_config object so that it can be used for large airliners:
Add the file runway.nas to your aircraft's Nasal folder. The following example listens to /gear/on-ground and overrides a number of properties of the takeoff_config object so that it can be used for large airliners.
 
=== Functions ===
 
First, create a number of functions to format and print messages, and to execute certain actions when some signals are emitted:


<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
Line 161: Line 171:
};
};
</syntaxhighlight>
</syntaxhighlight>
=== Connecting signals ===
Second, create configuration objects, override some of their parameters, and then connect the various functions to callbacks:


<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
Line 194: Line 208:
landing_announcer.connect("landed-outside-runway", runway.make_betty_cb(nil, nil, stop_announcer));
landing_announcer.connect("landed-outside-runway", runway.make_betty_cb(nil, nil, stop_announcer));
</syntaxhighlight>
</syntaxhighlight>
=== Listeners ===
Finally, set up a listener to detect when the aircraft is on the ground and when it is airborne. Depending on this conditions, you need to start, stop, or change the modes of the announcers:


<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
Line 250: Line 268:


{{tip|You might want to replace copilot_say().}}
{{tip|You might want to replace copilot_say().}}
== Configuring the announcers ==


The configuration object takeoff_config has a number of properties with default values. These properties can be modified if you want to change when certain signals are emitted. For example, in the example of runway.nas above, distance_center_line_m and distance_edge_max_m where overridden for large airliners. The defaults are:
The configuration object takeoff_config has a number of properties with default values. These properties can be modified if you want to change when certain signals are emitted. For example, in the example of runway.nas above, distance_center_line_m and distance_edge_max_m where overridden for large airliners. The defaults are:
72

edits

Navigation menu