E&R S3 prime / Mbed 2 deprecated Fusion3

Dependencies:   mbed LSM6DS33_GR1

Embed: (wiki syntax)

« Back to documentation index

FusionTypes.h File Reference

FusionTypes.h File Reference

Common types and their associated operations. More...

Go to the source code of this file.

Data Structures

union  FusionVector3
 Three-dimensional spacial vector. More...
union  FusionQuaternion
 Quaternion. More...
union  FusionRotationMatrix
 Rotation matrix in row-major order. More...
union  FusionEulerAngles
 Euler angles union. More...

Functions

static __attribute__ ((always_inline)) float FusionDegreesToRadians(const float degrees)
 Converts degrees to radians.

Detailed Description

Common types and their associated operations.

Author:
Seb Madgwick Static inline implementations are used to optimise for increased execution speed.

Definition in file FusionTypes.h.


Function Documentation

static __attribute__ ( (always_inline)   ) const [static]

Converts degrees to radians.

Adds two vectors.

Calculates the reciprocal of the square root.

Converts radians to degrees.

Parameters:
degreesDegrees.
Returns:
Radians.
Parameters:
radiansRadians.
Returns:
Degrees.

See http://en.wikipedia.org/wiki/Fast_inverse_square_root

Parameters:
xOperand.
Returns:
Reciprocal of the square root of x.
Parameters:
vectorAFirst vector of the operation.
vectorBSecond vector of the operation.
Returns:
Sum of vectorA and vectorB.

Definition at line 122 of file FusionTypes.h.