| 
   
    MIDI Control Surface library for Arduino 
   | 
 
 
 
 
Go to the documentation of this file.
    5 #include <AH/PrintStream/PrintStream.hpp> 
   16 std::ostream &
operator<<(std::ostream &os, Quaternion q) {
 
   17     return os << 
"(" << q.w << 
", " << q.x << 
", " << q.y << 
", " << q.z << 
")";
 
   20 std::ostream &
operator<<(std::ostream &os, EulerAngles e) {
 
   29     return os << 
"(" << q.
w << 
", " << q.
x << 
", " << q.
y << 
", " << q.
z << 
")";
 
  
constexpr double rad2deg(T r)
Convert radians to degrees.
 
float yaw
Z : drone Z = world +Z.
 
Type for quaternions of floating point numbers.
 
float z
Third vector (imaginary) component .
 
#define AH_DIAGNOSTIC_POP()
 
float y
Second vector (imaginary) component .
 
Struct for Euler angles of floating point numbers.
 
float w
Scalar (real) component.
 
float roll
X": drone X = world +Y.
 
float pitch
Y': drone Y = world -X.
 
#define AH_DIAGNOSTIC_WERROR()
 
#define BEGIN_AH_NAMESPACE
 
Definition of Quaternion and EulerAngles.
 
Print & operator<<(Print &os, Quaternion e)
Printing.
 
float x
First vector (imaginary) component .