Quaternion Value
File:TArduinoQuaternionValue.png
Summary
Generates a configurable Quaternion value for use in 3D orientation, rotation, or spatial calculations.
Description
The Quaternion Value component outputs a quaternion defined by its real and imaginary (X, Y, Z) parts. Values can be provided through Elements, allowing flexible update modes:
Set Value elements update the quaternion when a Clock input is triggered.
Set Value State elements update the quaternion continuously based on a Boolean input state.
This makes the component versatile for applications such as fixed orientation reference, clock-triggered updates, or conditional quaternion switching.
Quaternions are widely used in 3D graphics, robotics, and sensor fusion for smooth and stable rotation representation without gimbal lock.
Diagram:
Categories
- File:TArduinoMathCategory.png Category Math/Quaternion – Quaternion sources and processors.
Properties
- Elements – Configure update behavior:
Set Value – Updates quaternion values on Clock.
Set Value State – Updates quaternion values depending on a Boolean state.
- Value – Defines the quaternion components:
Imaginary – X, Y, Z parts.
Real – Scalar part.
Pins
Input Pins
- Clock – Triggers update for Set Value elements.
Output Pins
- Out – Quaternion output (Real + Imaginary X, Y, Z).