Ported to have same calls as L3G4200D lib so it can be substituted in HK10dof library ( which is being modified to use this and renamed IMU10DOF) platform NUCLEO-F401

Embed: (wiki syntax)

« Back to documentation index

ITG3200 Class Reference

ITG3200 Class Reference

ITG-3200 triple axis digital gyroscope. More...

#include <ITG3200.h>

Public Member Functions

 ITG3200 (PinName sda, PinName scl)
 Create a new ITG3200 I2C interface.
void init (void)
 Read gyro values.
void read (int *g)
 Read gyro values.
void read3 (int x, int y, int z)
 Read3 gyro values as integers.
void zeroCalibrate (unsigned int totSamples, unsigned int sampleDelayMS)
 Reads unsigned int totSamples with unsigned int sampleDelayMS then saves the calculated offsetsto private variables.
void readRawCal (int *_GyroXYZ)
 calls read with an array pointer, adds offsets to modify the array x,y,z will contain calibrated integer values from the sensor
void readFin (float *_GyroXYZ)
 calls readRawCal multiplies gains to modify the array

Detailed Description

ITG-3200 triple axis digital gyroscope.

Definition at line 107 of file ITG3200.h.


Constructor & Destructor Documentation

ITG3200 ( PinName  sda,
PinName  scl 
)

Create a new ITG3200 I2C interface.

Parameters:
sdais the pin for the I2C SDA line
sclis the pin for the I2C SCL line

Definition at line 44 of file ITG3200.cpp.


Member Function Documentation

void init ( void   )

Read gyro values.

Parameters:
gArray containing x, y, and z gyro values
Returns:
g Array containing x, y, and z gyro values

Definition at line 61 of file ITG3200.cpp.

void read ( int *  g )

Read gyro values.

Parameters:
gArray containing x, y, and z gyro values modifies the g Array containing x, y, and z gyro values

Definition at line 139 of file ITG3200.cpp.

void read3 ( int  x,
int  y,
int  z 
)

Read3 gyro values as integers.

Parameters:
intx, y, and z gyro values modifies the int x, y, and z gyro values

Definition at line 172 of file ITG3200.cpp.

void readFin ( float *  _GyroXYZ )

calls readRawCal multiplies gains to modify the array

Definition at line 184 of file ITG3200.cpp.

void readRawCal ( int *  _GyroXYZ )

calls read with an array pointer, adds offsets to modify the array x,y,z will contain calibrated integer values from the sensor

Definition at line 163 of file ITG3200.cpp.

void zeroCalibrate ( unsigned int  totSamples,
unsigned int  sampleDelayMS 
)

Reads unsigned int totSamples with unsigned int sampleDelayMS then saves the calculated offsetsto private variables.

Definition at line 123 of file ITG3200.cpp.