Showing 5 changed files with 43 additions and 9 deletions
+3 -1
Nasal/knobs.nas
... ...
@@ -207,5 +207,7 @@ var knobsClass = {
207 207
     },
208 208
 
209 209
     FmsInner : void,
210
-    FmsOuter : void
210
+    FmsOuter : void,
211
+    FmsInner_slowdown: 0,
212
+    FmsOuter_slowdown: 0,
211 213
 };
+10 -2
mfd.xml
... ...
@@ -843,7 +843,11 @@
843 843
           <property>/instrumentation/zkv1000/MFD/status</property>
844 844
         </condition>
845 845
         <command>nasal</command>
846
-        <script>zkv1000.flightdeck['MFD'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());</script>
846
+        <script>
847
+          zkv1000.flightdeck['MFD'].knobs.FmsOuter_slowdown = zkv1000.flightdeck['MFD'].knobs.FmsOuter_slowdown + 1;
848
+          if (math.mod(zkv1000.flightdeck['MFD'].knobs.FmsOuter_slowdown, 5) == 0)
849
+            zkv1000.flightdeck['MFD'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());
850
+        </script>
847 851
       </binding>
848 852
     </action>
849 853
   </animation>
... ...
@@ -880,7 +884,11 @@
880 884
           <property>/instrumentation/zkv1000/MFD/status</property>
881 885
         </condition>
882 886
         <command>nasal</command>
883
-        <script>zkv1000.flightdeck['MFD'].knobs.FmsInner(cmdarg().getNode('offset').getValue());</script>
887
+        <script>
888
+          zkv1000.flightdeck['MFD'].knobs.FmsInner_slowdown = zkv1000.flightdeck['MFD'].knobs.FmsInner_slowdown + 1;
889
+          if (math.mod(zkv1000.flightdeck['MFD'].knobs.FmsInner_slowdown, 5) == 0)
890
+            zkv1000.flightdeck['MFD'].knobs.FmsInner(cmdarg().getNode('offset').getValue());
891
+        </script>
884 892
       </binding>
885 893
     </action>
886 894
   </animation>
+10 -2
pfd-copilot.xml
... ...
@@ -884,7 +884,11 @@
884 884
           <property>/instrumentation/zkv1000/PFD-copilot/status</property>
885 885
         </condition>
886 886
         <command>nasal</command>
887
-        <script>zkv1000.flightdeck['PFD-copilot'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());</script>
887
+        <script>
888
+          zkv1000.flightdeck['PFD-copilot'].knobs.FmsOuter_slowdown = zkv1000.flightdeck['PFD-copilot'].knobs.FmsOuter_slowdown + 1;
889
+          if (math.mod(zkv1000.flightdeck['PFD-copilot'].knobs.FmsOuter_slowdown, 5) == 0)
890
+            zkv1000.flightdeck['PFD-copilot'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());
891
+        </script>
888 892
       </binding>
889 893
     </action>
890 894
   </animation>
... ...
@@ -921,7 +925,11 @@
921 925
           <property>/instrumentation/zkv1000/PFD-copilot/status</property>
922 926
         </condition>
923 927
         <command>nasal</command>
924
-        <script>zkv1000.flightdeck['PFD-copilot'].knobs.FmsInner(cmdarg().getNode('offset').getValue());</script>
928
+        <script>
929
+          zkv1000.flightdeck['PFD-copilot'].knobs.FmsInner_slowdown = zkv1000.flightdeck['PFD-copilot'].knobs.FmsInner_slowdown + 1;
930
+          if (math.mod(zkv1000.flightdeck['PFD-copilot'].knobs.FmsInner_slowdown, 5) == 0)
931
+            zkv1000.flightdeck['PFD-copilot'].knobs.FmsInner(cmdarg().getNode('offset').getValue());
932
+        </script>
925 933
       </binding>
926 934
     </action>
927 935
   </animation>
+10 -2
pfd-pilot.xml
... ...
@@ -884,7 +884,11 @@
884 884
           <property>/instrumentation/zkv1000/PFD-pilot/status</property>
885 885
         </condition>
886 886
         <command>nasal</command>
887
-        <script>zkv1000.flightdeck['PFD-pilot'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());</script>
887
+        <script>
888
+          zkv1000.flightdeck['PFD-pilot'].knobs.FmsOuter_slowdown = zkv1000.flightdeck['PFD-pilot'].knobs.FmsOuter_slowdown + 1;
889
+          if (math.mod(zkv1000.flightdeck['PFD-pilot'].knobs.FmsOuter_slowdown, 5) == 0)
890
+            zkv1000.flightdeck['PFD-pilot'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());
891
+        </script>
888 892
       </binding>
889 893
     </action>
890 894
   </animation>
... ...
@@ -921,7 +925,11 @@
921 925
           <property>/instrumentation/zkv1000/PFD-pilot/status</property>
922 926
         </condition>
923 927
         <command>nasal</command>
924
-        <script>zkv1000.flightdeck['PFD-pilot'].knobs.FmsInner(cmdarg().getNode('offset').getValue());</script>
928
+        <script>
929
+          zkv1000.flightdeck['PFD-pilot'].knobs.FmsInner_slowdown = zkv1000.flightdeck['PFD-pilot'].knobs.FmsInner_slowdown + 1;
930
+          if (math.mod(zkv1000.flightdeck['PFD-pilot'].knobs.FmsInner_slowdown, 5) == 0)
931
+            zkv1000.flightdeck['PFD-pilot'].knobs.FmsInner(cmdarg().getNode('offset').getValue());
932
+        </script>
925 933
       </binding>
926 934
     </action>
927 935
   </animation>
+10 -2
pfd.xml
... ...
@@ -884,7 +884,11 @@
884 884
           <property>/instrumentation/zkv1000/PFD/status</property>
885 885
         </condition>
886 886
         <command>nasal</command>
887
-        <script>zkv1000.flightdeck['PFD'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());</script>
887
+        <script>
888
+          zkv1000.flightdeck['PFD'].knobs.FmsOuter_slowdown = zkv1000.flightdeck['PFD'].knobs.FmsOuter_slowdown + 1;
889
+          if (math.mod(zkv1000.flightdeck['PFD'].knobs.FmsOuter_slowdown, 5) == 0)
890
+            zkv1000.flightdeck['PFD'].knobs.FmsOuter(cmdarg().getNode('offset').getValue());
891
+        </script>
888 892
       </binding>
889 893
     </action>
890 894
   </animation>
... ...
@@ -921,7 +925,11 @@
921 925
           <property>/instrumentation/zkv1000/PFD/status</property>
922 926
         </condition>
923 927
         <command>nasal</command>
924
-        <script>zkv1000.flightdeck['PFD'].knobs.FmsInner(cmdarg().getNode('offset').getValue());</script>
928
+        <script>
929
+          zkv1000.flightdeck['PFD'].knobs.FmsInner_slowdown = zkv1000.flightdeck['PFD'].knobs.FmsInner_slowdown + 1;
930
+          if (math.mod(zkv1000.flightdeck['PFD'].knobs.FmsInner_slowdown, 5) == 0)
931
+            zkv1000.flightdeck['PFD'].knobs.FmsInner(cmdarg().getNode('offset').getValue());
932
+        </script>
925 933
       </binding>
926 934
     </action>
927 935
   </animation>