Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
MPU9150Lib Class Reference

#include <MPU9150Lib.h>

List of all members.

Public Member Functions

void disableAccelCal ()
boolean init (int mpuRate, int magMix=5, int magRate=10, int lpf=0)
boolean isAccelCal ()
boolean isMagCal ()
 MPU9150Lib ()
void printAngles (float *vec)
void printQuaternion (long *quaternion)
void printQuaternion (float *quaternion)
void printVector (short *vec)
void printVector (float *vec)
boolean read ()
void selectDevice (int device)
void useAccelCal (boolean useCal)
void useMagCal (boolean useCal)

Public Attributes

short m_calAccel [3]
short m_calMag [3]
float m_dmpEulerPose [3]
float m_dmpQuaternion [4]
float m_fusedEulerPose [3]
float m_fusedQuaternion [4]
short m_rawAccel [3]
short m_rawGyro [3]
short m_rawMag [3]
long m_rawQuaternion [4]

Private Member Functions

void dataFusion ()

Private Attributes

long m_accelOffset [3]
short m_accelXRange
short m_accelYRange
short m_accelZRange
CALLIB_DATA m_calData
byte m_device
float m_lastDMPYaw
unsigned long m_lastMagSample
float m_lastYaw
unsigned long m_magInterval
int m_magMix
short m_magXOffset
short m_magXRange
short m_magYOffset
short m_magYRange
short m_magZOffset
short m_magZRange
boolean m_useAccelCalibration
boolean m_useMagCalibration

Detailed Description

Definition at line 39 of file MPU9150Lib.h.


Constructor & Destructor Documentation

Definition at line 102 of file MPU9150Lib.cpp.


Member Function Documentation

void MPU9150Lib::dataFusion ( ) [private]

Definition at line 344 of file MPU9150Lib.cpp.

Definition at line 121 of file MPU9150Lib.cpp.

boolean MPU9150Lib::init ( int  mpuRate,
int  magMix = 5,
int  magRate = 10,
int  lpf = 0 
)

Definition at line 139 of file MPU9150Lib.cpp.

boolean MPU9150Lib::isMagCal ( )
void MPU9150Lib::printAngles ( float *  vec)

Definition at line 449 of file MPU9150Lib.cpp.

void MPU9150Lib::printQuaternion ( long *  quaternion)

Definition at line 419 of file MPU9150Lib.cpp.

void MPU9150Lib::printQuaternion ( float *  quaternion)

Definition at line 427 of file MPU9150Lib.cpp.

void MPU9150Lib::printVector ( short *  vec)

Definition at line 435 of file MPU9150Lib.cpp.

void MPU9150Lib::printVector ( float *  vec)

Definition at line 442 of file MPU9150Lib.cpp.

boolean MPU9150Lib::read ( )

Definition at line 248 of file MPU9150Lib.cpp.

void MPU9150Lib::selectDevice ( int  device)

Definition at line 111 of file MPU9150Lib.cpp.

void MPU9150Lib::useAccelCal ( boolean  useCal)

Definition at line 116 of file MPU9150Lib.cpp.

void MPU9150Lib::useMagCal ( boolean  useCal)

Definition at line 134 of file MPU9150Lib.cpp.


Member Data Documentation

long MPU9150Lib::m_accelOffset[3] [private]

Definition at line 144 of file MPU9150Lib.h.

short MPU9150Lib::m_accelXRange [private]

Definition at line 141 of file MPU9150Lib.h.

short MPU9150Lib::m_accelYRange [private]

Definition at line 142 of file MPU9150Lib.h.

short MPU9150Lib::m_accelZRange [private]

Definition at line 143 of file MPU9150Lib.h.

Definition at line 110 of file MPU9150Lib.h.

Definition at line 119 of file MPU9150Lib.h.

Definition at line 111 of file MPU9150Lib.h.

byte MPU9150Lib::m_device [private]

Definition at line 122 of file MPU9150Lib.h.

Definition at line 109 of file MPU9150Lib.h.

Definition at line 108 of file MPU9150Lib.h.

Definition at line 115 of file MPU9150Lib.h.

Definition at line 116 of file MPU9150Lib.h.

float MPU9150Lib::m_lastDMPYaw [private]

Definition at line 129 of file MPU9150Lib.h.

unsigned long MPU9150Lib::m_lastMagSample [private]

Definition at line 125 of file MPU9150Lib.h.

float MPU9150Lib::m_lastYaw [private]

Definition at line 130 of file MPU9150Lib.h.

unsigned long MPU9150Lib::m_magInterval [private]

Definition at line 124 of file MPU9150Lib.h.

int MPU9150Lib::m_magMix [private]

Definition at line 123 of file MPU9150Lib.h.

short MPU9150Lib::m_magXOffset [private]

Definition at line 134 of file MPU9150Lib.h.

short MPU9150Lib::m_magXRange [private]

Definition at line 135 of file MPU9150Lib.h.

short MPU9150Lib::m_magYOffset [private]

Definition at line 136 of file MPU9150Lib.h.

short MPU9150Lib::m_magYRange [private]

Definition at line 137 of file MPU9150Lib.h.

short MPU9150Lib::m_magZOffset [private]

Definition at line 138 of file MPU9150Lib.h.

short MPU9150Lib::m_magZRange [private]

Definition at line 139 of file MPU9150Lib.h.

Definition at line 103 of file MPU9150Lib.h.

Definition at line 102 of file MPU9150Lib.h.

Definition at line 104 of file MPU9150Lib.h.

Definition at line 101 of file MPU9150Lib.h.

Definition at line 121 of file MPU9150Lib.h.

Definition at line 120 of file MPU9150Lib.h.


The documentation for this class was generated from the following files:


ric_mc
Author(s): RoboTiCan
autogenerated on Fri May 20 2016 03:48:57