Inverter Node: Difference between revisions

From RoboPad Wiki
Jump to navigation Jump to search
(Creates inverter node page.)
 
(→‎Example Behaviour Table: Adds behaviour table.)
 
Line 11: Line 11:
}}
}}
The Signal Inverter Node is a very simple node that consumes an input signal through the input port ''in'', and then inverts that signal around '''0.5''', clipping the result to between '''0''' and '''1'''.
The Signal Inverter Node is a very simple node that consumes an input signal through the input port ''in'', and then inverts that signal around '''0.5''', clipping the result to between '''0''' and '''1'''.
This is one of the few nodes designed to be used in simple signalling scenarios where all you really care about are values between 0 and 1.


Inverter Nodes were introduced in [[Firmware Releases|firmware version]] 2.2. They have no configurable settings.
Inverter Nodes were introduced in [[Firmware Releases|firmware version]] 2.2. They have no configurable settings.


==Example Behaviour Table==
==Example Behaviour Table==
The table below shows
The table below shows some example inputs and the outputs that they would produce.
{| class="wikitable"
|+
!Input
!Output
!Comments
|-
|0
|1
|
|-
|1
|0
|
|-
|0.25
|0.75
|
|-
|1.2
|0
|Here the true inversion value (-0.2) is clipped to 0.
|-
| -3
|1
|Here the true inversion value (3.5) is clipped to 1.
|}

Latest revision as of 23:51, 6 March 2023

← Return to Node Catalogue

Inverter Node
Inputs
  • in
Outputs
  • out
Version Introduced
2.2

The Signal Inverter Node is a very simple node that consumes an input signal through the input port in, and then inverts that signal around 0.5, clipping the result to between 0 and 1.

This is one of the few nodes designed to be used in simple signalling scenarios where all you really care about are values between 0 and 1.

Inverter Nodes were introduced in firmware version 2.2. They have no configurable settings.

Example Behaviour Table

The table below shows some example inputs and the outputs that they would produce.

Input Output Comments
0 1
1 0
0.25 0.75
1.2 0 Here the true inversion value (-0.2) is clipped to 0.
-3 1 Here the true inversion value (3.5) is clipped to 1.