The position calc block has an output which is the sum of the position inputs
Fields¶
| Name | Type | Description |
|---|---|---|
| INPA | pos_mux | Position input A |
| INPB | pos_mux | Position input B |
| INPC | pos_mux | Position input C |
| INPD | pos_mux | Position input D |
| TYPEA | param enum | Source of the value of A for calculation |
| TYPEB | param enum | Source of the value of B for calculation |
| TYPEC | param enum | Source of the value of B for calculation |
| TYPED | param enum | Source of the value of B for calculation |
| SHIFT | param uint | Number of places to right shift calculation result before output |
| OUT | pos_out | Position output |
Adding inputs¶
The output is the sum of the inputs
Scaling¶
The scale factor is a bit shift and is applied after the sum.
Inverting¶
Each input can be individually inverted before they are added together