Quaternion Mux(Multi channel Switch)

From Visuino
Jump to navigation Jump to search

File:TArduinoQuaternionMux.png

Summary

Selects and outputs one Quaternion input from multiple channels based on the selection index.

Description

The Quaternion Mux component works as a multi-channel switch for Quaternion values. It allows you to provide multiple Quaternion inputs and dynamically select which one to route to the output by setting the Select pin. This is useful when switching between different Quaternion sources, such as sensor readings, stored states, or calculated orientations.

Diagram:

Categories

Properties

  • Initial Channel (integer) – The default input channel selected at startup.
  • Input Pins (integer, default = 2) – The number of Quaternion input channels available.

Pins

  • In – Quaternion inputs (the number of pins depends on Input Pins property).
  • Select (integer) – Selects which input channel is routed to the output.

Output Pins

  • Out – Outputs the currently selected Quaternion input.