Interface library for the Atmel Inertial One IMU. Contains drivers for the ITG 3200 3 axis gyro, BMA-150 3 axis accelerometer, and AK8975 3 axis compass
Revision 10:85636c7eb8aa, committed 2012-02-02
- Comitter:
- Ductapemaster
- Date:
- Thu Feb 02 08:27:44 2012 +0000
- Parent:
- 9:f17d822e2645
- Child:
- 11:a70c76711630
- Commit message:
- Fixing I2C initializer
Changed in this revision
IMU.cpp | Show annotated file Show diff for this revision Revisions of this file |
IMU.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/IMU.cpp Thu Feb 02 08:10:38 2012 +0000 +++ b/IMU.cpp Thu Feb 02 08:27:44 2012 +0000 @@ -78,7 +78,7 @@ } - int[3] gyroXYZ(void) { + int* gyroXYZ(void) { char poke = GYRO_XOUT_H_REG; char peek[6];
--- a/IMU.h Thu Feb 02 08:10:38 2012 +0000 +++ b/IMU.h Thu Feb 02 08:27:44 2012 +0000 @@ -129,7 +129,7 @@ * * @return Array of X, Y, and Z axis gyro measurements (signed 16 bits) */ - int[3] gyroXYZ(void); + int* gyroXYZ(void); /** Sets digital LPF bandwidth for all gyro channels * @@ -145,7 +145,7 @@ - protected: + private: I2C _i2c; //I2C object constructor