Compare Quaternion Value

From Visuino
Jump to navigation Jump to search

File:TArduinoQuaternionCompare.png

Summary

Compares an incoming Quaternion against a predefined Quaternion value and outputs the result as a boolean.

Description

The Compare Quaternion Value component allows you to compare an input Quaternion with a reference Quaternion specified in the Value property. Depending on the selected Compare Type, the component outputs True or False.

This is useful for detecting when a Quaternion matches or differs from a stored orientation, enabling logical decision-making in quaternion-based systems.

Diagram:

Categories

Properties

  • Compare Type – The type of comparison:

ctEqual – Checks if the input Quaternion equals the reference.

ctNotEqual – Checks if the input Quaternion differs from the reference.

  • Enabled – Enables or disables the component.
  • Value – The reference Quaternion to compare against (Imaginary (X, Y, Z), Real).

Pins

  • In – Quaternion input to be compared.

Output Pins

  • Out – Boolean result of the comparison (True/False).