Boolean Sensor
The Boolean Sensor is another Compound Sensor that combines the signals of it's input sensors. It merges the signals of each sensor via logical And or logical Or.
The Boolean Sensor in 'And' mode outputs signals if they are detected by all of the input sensors
In 'Or' mode it outputs all signals detected by any of the input sensors
Output Signals
Object
- Same as input SignalStrength
- Maximum of the input signalsShape
- Encapsulates the shape of the input signals
If multiple input sensors detect the same object, their Strength
and Shape
are merged in the output signal.
The Boolean Sensor does not need to be pulsed. It will subscribe to the events of it's input sensors and will update immediately when any input signal is changed.
Configuration
Input Sensors
A list of sensors deriving from Sensor.
Operation
How should this sensor combine the list of signals from it's input sensors:
- And - An object is detected by this sensor when it's detected by each one of the input sensors.
- Or - An object is detected by this sensor if any one of the input sensors detect it.
- Exclusive Or - An object is detected when only one of the input sensors detect it. If two or more input sensors detect it then it won't be detected by the boolean sensor.