1
0
Fork 0

:rc%us%f ... set comm%u standby frequency

:rn%us%f   ... set nav%u standby frequency
:rt%3u[xy] ... set tacan channel %u[xy]
This commit is contained in:
mfranz 2008-10-01 17:56:42 +00:00
parent 283dd67ca8
commit 22e2ef502d

View file

@ -502,7 +502,7 @@
<key n="101">
<name>e</name>
<desc>Engine</desc>
<desc>Engines</desc>
<key n="109">
<name>m</name>
<desc>Mixture (0.0 to 1.0)</desc>
@ -1021,6 +1021,19 @@
</key>
</key>
<key n="115">
<name>s</name>
<desc>Radio Comm%u standby frequency = ? MHz</desc>
<key n="901">
<name>%f</name>
<desc>Radio Comm%u standby frequency = %.3f MHz</desc>
<binding>
<command>nasal</command>
<script>setfreq("comm", arg[0], "standby", arg[1])</script>
</binding>
</key>
</key>
<key n="116">
<name>t</name>
<desc>Radio Comm%u toggle selected/standby</desc>
@ -1051,6 +1064,19 @@
</key>
</key>
<key n="115">
<name>s</name>
<desc>Radio Nav%u standby frequency = ? MHz</desc>
<key n="901">
<name>%f</name>
<desc>Radio Nav%u standby frequency = %.3f MHz</desc>
<binding>
<command>nasal</command>
<script>setfreq("nav", arg[0], "standby", arg[1])</script>
</binding>
</key>
</key>
<key n="116">
<name>t</name>
<desc>Radio Nav%u toggle selected/standby</desc>
@ -1061,6 +1087,44 @@
</key>
</key>
</key>
<key n="116">
<name>t</name>
<desc>Radio TACAN channel = ?</desc>
<key n="902">
<name>%3u</name>
<desc>Radio TACAN channel = %u</desc>
<key n="120">
<name>x</name>
<desc>Radio TACAN channel = %ux</desc>
<binding>
<command>nasal</command>
<script>
var ch = sprintf("%03u", arg[0]);
setprop("/instrumentation/tacan/frequencies/selected-channel[1]", chr(ch[0]));
setprop("/instrumentation/tacan/frequencies/selected-channel[2]", chr(ch[1]));
setprop("/instrumentation/tacan/frequencies/selected-channel[3]", chr(ch[2]));
setprop("/instrumentation/tacan/frequencies/selected-channel[4]", "x");
</script>
</binding>
</key>
<key n="121">
<name>y</name>
<desc>Radio TACAN channel = %uy</desc>
<binding>
<command>nasal</command>
<script>
var ch = sprintf("%03u", arg[0]);
setprop("/instrumentation/tacan/frequencies/selected-channel[1]", chr(ch[0]));
setprop("/instrumentation/tacan/frequencies/selected-channel[2]", chr(ch[1]));
setprop("/instrumentation/tacan/frequencies/selected-channel[3]", chr(ch[2]));
setprop("/instrumentation/tacan/frequencies/selected-channel[4]", "y");
</script>
</binding>
</key>
</key>
</key>
</key>
<key n="902">