Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

CALC - Position Calc

The position calc block has an output which is the sum of the position inputs

Fields

NameTypeDescription
INPApos_muxPosition input A
INPBpos_muxPosition input B
INPCpos_muxPosition input C
INPDpos_muxPosition input D
TYPEAparam enumSource of the value of A for calculation
TYPEBparam enumSource of the value of B for calculation
TYPECparam enumSource of the value of B for calculation
TYPEDparam enumSource of the value of B for calculation
SHIFTparam uintNumber of places to right shift calculation result before output
OUTpos_outPosition output

Adding inputs

The output is the sum of the inputs

Adding inputs

Scaling

The scale factor is a bit shift and is applied after the sum.

Scaling

Inverting

Each input can be individually inverted before they are added together

Inverting