Runway Awareness and Advisory System: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 160: Line 160:
     }
     }
};
};
</syntaxhighlight>


<syntaxhighlight lang="nasal">
var takeoff_config = { parents: [runway.TakeoffRunwayAnnounceConfig] };
var takeoff_config = { parents: [runway.TakeoffRunwayAnnounceConfig] };


Line 191: Line 193:
landing_announcer.connect("landed-runway", runway.make_betty_cb(copilot_say, "Touchdown on runway %s"));
landing_announcer.connect("landed-runway", runway.make_betty_cb(copilot_say, "Touchdown on runway %s"));
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 lang="nasal">
var have_been_in_air = 0;
var have_been_in_air = 0;


Line 245: Line 249:
{{Note|It is your responsibility to start and stop the announcers and to set the correct modes. Therefore it is necessary to connect to signals like landed-outside-runway and vacated-runway, even if they appear to be useless for your specific aircraft. The example of runway.nas above already does this for you.}}
{{Note|It is your responsibility to start and stop the announcers and to set the correct modes. Therefore it is necessary to connect to signals like landed-outside-runway and vacated-runway, even if they appear to be useless for your specific aircraft. The example of runway.nas above already does this for you.}}


{{Note|You might want to replace copilot_say().}}
{{tip|You might want to replace copilot_say().}}


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