Pololu Zumo Shield Arduino Library
Classes | Enumerations
ZumoIMU.h File Reference

Go to the source code of this file.

Classes

class  ZumoIMU
 Interfaces with the inertial sensors on the Zumo Shield. More...
 
struct  ZumoIMU::vector< T >
 Represents a 3-dimensional vector with x, y, and z components. More...
 

Macros

Device Addresses

#define LSM303DLHC_ACC_ADDR   0b0011001
 
#define LSM303DLHC_MAG_ADDR   0b0011110
 
#define LSM303D_ADDR   0b0011101
 
#define L3GD20H_ADDR   0b1101011
 
#define LSM6DS33_ADDR   0b1101011
 
#define LIS3MDL_ADDR   0b0011110
 
Register Addresses

#define LSM303DLHC_REG_CTRL_REG1_A   0x20
 
#define LSM303DLHC_REG_CTRL_REG4_A   0x23
 
#define LSM303DLHC_REG_STATUS_REG_A   0x27
 
#define LSM303DLHC_REG_OUT_X_L_A   0x28
 
#define LSM303DLHC_REG_CRA_REG_M   0x00
 
#define LSM303DLHC_REG_CRB_REG_M   0x01
 
#define LSM303DLHC_REG_MR_REG_M   0x02
 
#define LSM303DLHC_REG_OUT_X_H_M   0x03
 
#define LSM303DLHC_REG_SR_REG_M   0x09
 
#define LSM303D_REG_STATUS_M   0x07
 
#define LSM303D_REG_OUT_X_L_M   0x08
 
#define LSM303D_REG_WHO_AM_I   0x0F
 
#define LSM303D_REG_CTRL1   0x20
 
#define LSM303D_REG_CTRL2   0x21
 
#define LSM303D_REG_CTRL5   0x24
 
#define LSM303D_REG_CTRL6   0x25
 
#define LSM303D_REG_CTRL7   0x26
 
#define LSM303D_REG_STATUS_A   0x27
 
#define LSM303D_REG_OUT_X_L_A   0x28
 
#define L3GD20H_REG_WHO_AM_I   0x0F
 
#define L3GD20H_REG_CTRL1   0x20
 
#define L3GD20H_REG_CTRL4   0x23
 
#define L3GD20H_REG_STATUS   0x27
 
#define L3GD20H_REG_OUT_X_L   0x28
 
#define LSM6DS33_REG_WHO_AM_I   0x0F
 
#define LSM6DS33_REG_CTRL1_XL   0x10
 
#define LSM6DS33_REG_CTRL2_G   0x11
 
#define LSM6DS33_REG_CTRL3_C   0x12
 
#define LSM6DS33_REG_STATUS_REG   0x1E
 
#define LSM6DS33_REG_OUTX_L_G   0x22
 
#define LSM6DS33_REG_OUTX_L_XL   0x28
 
#define LIS3MDL_REG_WHO_AM_I   0x0F
 
#define LIS3MDL_REG_CTRL_REG1   0x20
 
#define LIS3MDL_REG_CTRL_REG2   0x21
 
#define LIS3MDL_REG_CTRL_REG3   0x22
 
#define LIS3MDL_REG_CTRL_REG4   0x23
 
#define LIS3MDL_REG_STATUS_REG   0x27
 
#define LIS3MDL_REG_OUT_X_L   0x28
 

Enumerations

enum  ZumoIMUType : uint8_t { ZumoIMUType::Unknown, ZumoIMUType::LSM303DLHC, ZumoIMUType::LSM303D_L3GD20H, ZumoIMUType::LSM6DS33_LIS3MDL }
 The type of the inertial sensors. More...
 

Enumeration Type Documentation

◆ ZumoIMUType

enum ZumoIMUType : uint8_t
strong

The type of the inertial sensors.

Enumerator
Unknown 

Unknown or unrecognized

LSM303DLHC 

LSM303DLHC accelerometer + magnetometer

LSM303D_L3GD20H 

LSM303D accelerometer + magnetometer, L3GD20H gyro

LSM6DS33_LIS3MDL 

LSM6DS33 gyro + accelerometer, LIS3MDL magnetometer

Definition at line 71 of file ZumoIMU.h.