ATC: fix issues

This commit is contained in:
legoboyvdlp R 2019-05-30 10:56:22 +01:00
parent 16edee3c39
commit 786a5055d6
3 changed files with 8 additions and 4 deletions

View file

@ -148,7 +148,7 @@
<offsets>
<x-m>-0.01279</x-m>
<y-m>0.20</y-m>
<z-m>-0.13391</z-m>
<z-m>-0.13350</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
@ -173,7 +173,7 @@
<offsets>
<x-m>-0.01279</x-m>
<y-m>0.20</y-m>
<z-m>-0.13391</z-m>
<z-m>-0.13350</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
@ -396,7 +396,7 @@
</binding>
<binding>
<command>nasal</command>
<script>atc.transponderPanel.modeSwitch(getprop("/controls/atc/mode-knob") - 1);</script>
<script>atc.transponderPanel.modeSwitch(getprop("/controls/atc/mode-knob") + 1);</script>
</binding>
</action>
</animation>

View file

@ -238,6 +238,10 @@ setlistener("/instrumentation/transponder/id-code", func {
}
}, 0, 0);
setlistener("controls/atc/mode-knob", func {
}, 0, 0);
var Transponders = std.Vector.new([Transponder.new("/systems/electrical/bus/ac-ess-shed", 1), Transponder.new("/systems/electrical/bus/ac2", 2)]);
var transponderTimer = maketimer(0.1, func() {

View file

@ -1 +1 @@
4793
4794