A hello world for inertial sensors

Dependencies:   FXAS21000 FXOS8700Q mbed

Fork of FRDM-STBC-AGM01 by angus taggart

Adafruit_9DOF.h

Committer:
Elecia
Date:
2015-06-30
Revision:
4:5ab2bb2f062b
Parent:
3:123b546e4a5c

File content as of revision 4:5ab2bb2f062b:

/***************************************************************************
** https://github.com/adafruit/Adafruit_9DOF/blob/master/Adafruit_9DOF.h
** Modifed Adafruit's orientation code to get tilt compensated heading
** This header provides the interface to to that.
 ***************************************************************************/
#include <stdint.h>

#define NUM_AXIS 3
#define X 0
#define Y 1
#define Z 2

 typedef struct {
    float roll;
    float pitch;
    float heading;   
}  tOrientation;
 
bool fusionGetOrientation(int16_t accel[], int16_t mag[], tOrientation *orientation);

#ifndef NULL
#define NULL 0
#endif // NULL