Classes | Defines

/home/jgoppert/Projects/ap/libraries/APM_Compass/APM_Compass.h File Reference

#include "../AP_Math/AP_Math.h"
Include dependency graph for APM_Compass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  APM_Compass_Class
class  APM_Compass_HIL_Class

Defines

#define ROTATION_NONE   Matrix3f(1, 0, 0, 0, 1, 0, 0 ,0, 1)
#define ROTATION_YAW_45   Matrix3f(0.70710678, -0.70710678, 0, 0.70710678, 0.70710678, 0, 0, 0, 1)
#define ROTATION_YAW_90   Matrix3f(0, -1, 0, 1, 0, 0, 0, 0, 1)
#define ROTATION_YAW_135   Matrix3f(-0.70710678, -0.70710678, 0, 0.70710678, -0.70710678, 0, 0, 0, 1)
#define ROTATION_YAW_180   Matrix3f(-1, 0, 0, 0, -1, 0, 0, 0, 1)
#define ROTATION_YAW_225   Matrix3f(-0.70710678, 0.70710678, 0, -0.70710678, -0.70710678, 0, 0, 0, 1)
#define ROTATION_YAW_270   Matrix3f(0, 1, 0, -1, 0, 0, 0, 0, 1)
#define ROTATION_YAW_315   Matrix3f(0.70710678, 0.70710678, 0, -0.70710678, 0.70710678, 0, 0, 0, 1)
#define ROTATION_ROLL_180   Matrix3f(1, 0, 0, 0, -1, 0, 0, 0, -1)
#define ROTATION_ROLL_180_YAW_45   Matrix3f(0.70710678, 0.70710678, 0, 0.70710678, -0.70710678, 0, 0, 0, -1)
#define ROTATION_ROLL_180_YAW_90   Matrix3f(0, 1, 0, 1, 0, 0, 0, 0, -1)
#define ROTATION_ROLL_180_YAW_135   Matrix3f(-0.70710678, 0.70710678, 0, 0.70710678, 0.70710678, 0, 0, 0, -1)
#define ROTATION_PITCH_180   Matrix3f(-1, 0, 0, 0, 1, 0, 0, 0, -1)
#define ROTATION_ROLL_180_YAW_225   Matrix3f(-0.70710678, -0.70710678, 0, -0.70710678, 0.70710678, 0, 0, 0, -1)
#define ROTATION_ROLL_180_YAW_270   Matrix3f(0, -1, 0, -1, 0, 0, 0, 0, -1)
#define ROTATION_ROLL_180_YAW_315   Matrix3f(0.70710678, -0.70710678, 0, -0.70710678, -0.70710678, 0, 0, 0, -1)
#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD   ROTATION_NONE
#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD_RIGHT   ROTATION_YAW_45
#define APM_COMPASS_COMPONENTS_UP_PINS_RIGHT   ROTATION_YAW_90
#define APM_COMPASS_COMPONENTS_UP_PINS_BACK_RIGHT   ROTATION_YAW_135
#define APM_COMPASS_COMPONENTS_UP_PINS_BACK   ROTATION_YAW_180
#define APM_COMPASS_COMPONENTS_UP_PINS_BACK_LEFT   ROTATION_YAW_225
#define APM_COMPASS_COMPONENTS_UP_PINS_LEFT   ROTATION_YAW_270
#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD_LEFT   ROTATION_YAW_315
#define APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD   ROTATION_ROLL_180
#define APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD_RIGHT   ROTATION_ROLL_180_YAW_45
#define APM_COMPASS_COMPONENTS_DOWN_PINS_RIGHT   ROTATION_ROLL_180_YAW_90
#define APM_COMPASS_COMPONENTS_DOWN_PINS_BACK_RIGHT   ROTATION_ROLL_180_YAW_135
#define APM_COMPASS_COMPONENTS_DOWN_PINS_BACK   ROTATION_PITCH_180
#define APM_COMPASS_COMPONENTS_DOWN_PINS_BACK_LEFT   ROTATION_ROLL_180_YAW_225
#define APM_COMPASS_COMPONENTS_DOWN_PINS_LEFT   ROTATION_ROLL_180_YAW_270
#define APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD_LEFT   ROTATION_ROLL_180_YAW_315
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_FORWARD   ROTATION_YAW_270
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_FORWARD_RIGHT   ROTATION_YAW_315
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_RIGHT   ROTATION_NONE
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK_RIGHT   ROTATION_YAW_45
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK   ROTATION_YAW_90
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK_LEFT   ROTATION_YAW_135
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_LEFT   ROTATION_YAW_180
#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_FORWARD_LEFT   ROTATION_YAW_225
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_FORWARD   ROTATION_ROLL_180_YAW_90
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_FORWARD_RIGHT   ROTATION_ROLL_180_YAW_135
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_RIGHT   ROTATION_PITCH_180
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_BACK_RIGHT   ROTATION_ROLL_180_YAW_225
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_BACK   ROTATION_ROLL_180_YAW_270
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_BACK_LEFT   ROTATION_ROLL_180_YAW_315
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_LEFT   ROTATION_ROLL_180
#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_FORWARD_LEFT   ROTATION_ROLL_180_YAW_45

Define Documentation

#define APM_COMPASS_COMPONENTS_DOWN_PINS_BACK   ROTATION_PITCH_180

Definition at line 37 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_DOWN_PINS_BACK_LEFT   ROTATION_ROLL_180_YAW_225

Definition at line 38 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_DOWN_PINS_BACK_RIGHT   ROTATION_ROLL_180_YAW_135

Definition at line 36 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD   ROTATION_ROLL_180

Definition at line 33 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD_LEFT   ROTATION_ROLL_180_YAW_315

Definition at line 40 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD_RIGHT   ROTATION_ROLL_180_YAW_45

Definition at line 34 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_DOWN_PINS_LEFT   ROTATION_ROLL_180_YAW_270

Definition at line 39 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_DOWN_PINS_RIGHT   ROTATION_ROLL_180_YAW_90

Definition at line 35 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_BACK   ROTATION_YAW_180

Definition at line 29 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_BACK_LEFT   ROTATION_YAW_225

Definition at line 30 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_BACK_RIGHT   ROTATION_YAW_135

Definition at line 28 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD   ROTATION_NONE

Definition at line 25 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD_LEFT   ROTATION_YAW_315

Definition at line 32 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_FORWARD_RIGHT   ROTATION_YAW_45

Definition at line 26 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_LEFT   ROTATION_YAW_270

Definition at line 31 of file APM_Compass.h.

#define APM_COMPASS_COMPONENTS_UP_PINS_RIGHT   ROTATION_YAW_90

Definition at line 27 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_BACK   ROTATION_ROLL_180_YAW_270

Definition at line 55 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_BACK_LEFT   ROTATION_ROLL_180_YAW_315

Definition at line 56 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_BACK_RIGHT   ROTATION_ROLL_180_YAW_225

Definition at line 54 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_FORWARD   ROTATION_ROLL_180_YAW_90

Definition at line 51 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_FORWARD_LEFT   ROTATION_ROLL_180_YAW_45

Definition at line 58 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_FORWARD_RIGHT   ROTATION_ROLL_180_YAW_135

Definition at line 52 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_LEFT   ROTATION_ROLL_180

Definition at line 57 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_DOWN_PINS_RIGHT   ROTATION_PITCH_180

Definition at line 53 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK   ROTATION_YAW_90

Definition at line 47 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK_LEFT   ROTATION_YAW_135

Definition at line 48 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK_RIGHT   ROTATION_YAW_45

Definition at line 46 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_FORWARD   ROTATION_YAW_270

Definition at line 43 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_FORWARD_LEFT   ROTATION_YAW_225

Definition at line 50 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_FORWARD_RIGHT   ROTATION_YAW_315

Definition at line 44 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_LEFT   ROTATION_YAW_180

Definition at line 49 of file APM_Compass.h.

#define APM_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_RIGHT   ROTATION_NONE

Definition at line 45 of file APM_Compass.h.

#define ROTATION_NONE   Matrix3f(1, 0, 0, 0, 1, 0, 0 ,0, 1)

Definition at line 7 of file APM_Compass.h.

#define ROTATION_PITCH_180   Matrix3f(-1, 0, 0, 0, 1, 0, 0, 0, -1)

Definition at line 19 of file APM_Compass.h.

#define ROTATION_ROLL_180   Matrix3f(1, 0, 0, 0, -1, 0, 0, 0, -1)

Definition at line 15 of file APM_Compass.h.

#define ROTATION_ROLL_180_YAW_135   Matrix3f(-0.70710678, 0.70710678, 0, 0.70710678, 0.70710678, 0, 0, 0, -1)

Definition at line 18 of file APM_Compass.h.

#define ROTATION_ROLL_180_YAW_225   Matrix3f(-0.70710678, -0.70710678, 0, -0.70710678, 0.70710678, 0, 0, 0, -1)

Definition at line 20 of file APM_Compass.h.

#define ROTATION_ROLL_180_YAW_270   Matrix3f(0, -1, 0, -1, 0, 0, 0, 0, -1)

Definition at line 21 of file APM_Compass.h.

#define ROTATION_ROLL_180_YAW_315   Matrix3f(0.70710678, -0.70710678, 0, -0.70710678, -0.70710678, 0, 0, 0, -1)

Definition at line 22 of file APM_Compass.h.

#define ROTATION_ROLL_180_YAW_45   Matrix3f(0.70710678, 0.70710678, 0, 0.70710678, -0.70710678, 0, 0, 0, -1)

Definition at line 16 of file APM_Compass.h.

#define ROTATION_ROLL_180_YAW_90   Matrix3f(0, 1, 0, 1, 0, 0, 0, 0, -1)

Definition at line 17 of file APM_Compass.h.

#define ROTATION_YAW_135   Matrix3f(-0.70710678, -0.70710678, 0, 0.70710678, -0.70710678, 0, 0, 0, 1)

Definition at line 10 of file APM_Compass.h.

#define ROTATION_YAW_180   Matrix3f(-1, 0, 0, 0, -1, 0, 0, 0, 1)

Definition at line 11 of file APM_Compass.h.

#define ROTATION_YAW_225   Matrix3f(-0.70710678, 0.70710678, 0, -0.70710678, -0.70710678, 0, 0, 0, 1)

Definition at line 12 of file APM_Compass.h.

#define ROTATION_YAW_270   Matrix3f(0, 1, 0, -1, 0, 0, 0, 0, 1)

Definition at line 13 of file APM_Compass.h.

#define ROTATION_YAW_315   Matrix3f(0.70710678, 0.70710678, 0, -0.70710678, 0.70710678, 0, 0, 0, 1)

Definition at line 14 of file APM_Compass.h.

#define ROTATION_YAW_45   Matrix3f(0.70710678, -0.70710678, 0, 0.70710678, 0.70710678, 0, 0, 0, 1)

Definition at line 8 of file APM_Compass.h.

#define ROTATION_YAW_90   Matrix3f(0, -1, 0, 1, 0, 0, 0, 0, 1)

Definition at line 9 of file APM_Compass.h.