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
IMU Class Reference
Atmel Inertial One IMU Control Class. More...
#include <IMU.h>
Public Member Functions | |
IMU (PinName sda, PinName scl) | |
Creates IMU object and initializes all three chips. | |
data3d | getGyroData (void) |
Gets current ADC data from all axes of gyro (uses burst read mode) | |
void | setGyroLPF (char bw) |
Sets digital LPF bandwidth for all gyro channels - Not working currently. | |
int | accX (void) |
Gets current X acceleration. | |
int | accY (void) |
Gets current Y acceleration. | |
int | accZ (void) |
Gets current Z acceleration. | |
data3d | getAccData (void) |
Gets current acceleration on all axes. | |
void | setAccLPF (char bw) |
Sets digital LPF filter bandwidth. | |
void | setAccRange (char range) |
Sets accelerometer measurement range (+/-2, 4, or 8g's) | |
void | accUpdateImage (void) |
Updates all image registers with data stored in EEPROM. | |
void | accEEWriteEn (bool we) |
Set EEPROM write enable. |
Detailed Description
Atmel Inertial One IMU Control Class.
Includes control routines for:
- ITG-3200 3-axis, 16 bit gyroscope
- BMA-150 3-axis, 10 bit accelerometer
- AK8975 3-axis, 16 bit magnetometer
Datasheets:
http://www.atmel.com/dyn/resources/prod_documents/doc8354.pdf
http://invensense.com/mems/gyro/documents/PS-ITG-3200A.pdf
http://www.bosch-sensortec.com/content/language1/downloads/BMA150_DataSheet_Rev.1.5_30May2008.pdf
http://pdf1.alldatasheet.com/datasheet-pdf/view/219477/AKM/AK8973/+Q18W89VYpLawLCDwv+/datasheet.pdf
Definition at line 116 of file IMU.h.
Constructor & Destructor Documentation
IMU | ( | PinName | sda, |
PinName | scl | ||
) |
Member Function Documentation
void accEEWriteEn | ( | bool | we ) |
void accUpdateImage | ( | void | ) |
int accX | ( | void | ) |
int accY | ( | void | ) |
int accZ | ( | void | ) |
IMU::data3d getAccData | ( | void | ) |
IMU::data3d getGyroData | ( | void | ) |
void setAccLPF | ( | char | bw ) |
void setAccRange | ( | char | range ) |
Generated on Fri Jul 15 2022 08:01:50 by 1.7.2