OrderedBytes
ControllerMate

View Hatswitch Setup Building Block

Description

The View Hatswitch Setup building block creates a Number value that can be used to control a Virtual Hatswitch building block. The building block interprets four individual ON/OFF input values. Each input represents a particular view direction: forward, backward, left or right.

The following values are created for each view direction:

View Direction

Output Value

Forward

1

Forward-Right

2

Right

3

Backward-Right

4

Backward

5

Backward-Left

6

Left

7

Forward-Left

8

None

0

Input Connections

The “FWD” ON/OFF input indicates the “forward” view direction.

The “BACK” ON/OFF input indicates the “backward” view direction.

The “LEFT” ON/OFF input indicates the “left” view direction.

The “RIGHT” ON/OFF input indicates the “right” view direction.

Output Connections

The block’s output value is based on which inputs are ON and which are OFF.

Properties

The View Hatswitch Setup building block has no configurable properties.

Examples

Keypad Joystick