User Tools

Site Tools


aircraft:tmd:inputs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
aircraft:tmd:inputs [2019/07/20 17:07] jhaircraft:tmd:inputs [2019/07/20 17:09] jh
Line 724: Line 724:
 </code> </code>
  
-===== Digital States =====+===== Other Inputs =====
  
 ==== input_binary ==== ==== input_binary ====
Line 800: Line 800:
 </code> </code>
  
-==== input_event ==== 
- 
-Receives messages and then fires events with the received message value. 
- 
-  * ''Input'' is the message name 
-  * ''InputValue'' filters the messages for a specific value, leave the line of code away to not filter for any values 
-  * All events in the ''Events'' list are triggered once a message is received 
- 
-The use of the ''input_event'' class is described further in the [[aircraft:tmd:events|TMD Events]] topic. 
- 
-<code>            <[input_event][Button_Pressed][] 
-                <[string8][Input][Controls.Button]> 
-                <[string8][Events][ DEV0.Trigger ]> 
-            > 
-            <[input_event][Button_Pressed][] 
-                <[string8][Input][Controls.Button]> 
-                <[float64][InputValue][1.0]> 
-                <[string8][Events][ DEV0.Trigger ]> 
-            > 
-</code> 
- 
-==== input_active ==== 
- 
-Outputs 1.0 to the tmd as long as a lever is grabbed or a button is depressed. 
- 
-<code>            <[input_active][ButtonDepressed][] 
-                <[string8][Input][Controls.Button]> 
-                <[float64][InputValue][1.0]> 
-            > 
-</code> 
- 
- 
-===== Other Inputs ===== 
  
 ==== input_cyclic ==== ==== input_cyclic ====
Line 892: Line 859:
 </code> </code>
  
 +==== input_event ====
 +
 +Receives messages and then fires events with the received message value.
 +
 +  * ''Input'' is the message name
 +  * ''InputValue'' filters the messages for a specific value, leave the line of code away to not filter for any values
 +  * All events in the ''Events'' list are triggered once a message is received
 +
 +The use of the ''input_event'' class is described further in the [[aircraft:tmd:events|TMD Events]] topic.
 +
 +<code>            <[input_event][Button_Pressed][]
 +                <[string8][Input][Controls.Button]>
 +                <[string8][Events][ DEV0.Trigger ]>
 +            >
 +            <[input_event][Button_Pressed][]
 +                <[string8][Input][Controls.Button]>
 +                <[float64][InputValue][1.0]>
 +                <[string8][Events][ DEV0.Trigger ]>
 +            >
 +</code>
 +
 +==== input_active ====
 +
 +Outputs 1.0 to the tmd as long as a lever is grabbed or a button is depressed.
 +
 +<code>            <[input_active][ButtonDepressed][]
 +                <[string8][Input][Controls.Button]>
 +                <[float64][InputValue][1.0]>
 +            >
 +</code>
  
aircraft/tmd/inputs.txt · Last modified: 2022/07/19 21:02 by jh