APM:Libraries
Macros | Variables
AP_InertialSensor_L3G4200D.cpp File Reference
#include <AP_HAL/AP_HAL.h>
#include "AP_InertialSensor_L3G4200D.h"
#include <inttypes.h>
#include <utility>
Include dependency graph for AP_InertialSensor_L3G4200D.cpp:

Go to the source code of this file.

Macros

#define ADXL345_ACCELEROMETER_ADDRESS   0x53
 Accelerometer ADXL345 register definitions. More...
 
#define ADXL345_ACCELEROMETER_XL345_DEVID   0xe5
 
#define ADXL345_ACCELEROMETER_ADXLREG_BW_RATE   0x2c
 
#define ADXL345_ACCELEROMETER_ADXLREG_POWER_CTL   0x2d
 
#define ADXL345_ACCELEROMETER_ADXLREG_DATA_FORMAT   0x31
 
#define ADXL345_ACCELEROMETER_ADXLREG_DEVID   0x00
 
#define ADXL345_ACCELEROMETER_ADXLREG_DATAX0   0x32
 
#define ADXL345_ACCELEROMETER_ADXLREG_FIFO_CTL   0x38
 
#define ADXL345_ACCELEROMETER_ADXLREG_FIFO_CTL_STREAM   0x9F
 
#define ADXL345_ACCELEROMETER_ADXLREG_FIFO_STATUS   0x39
 
#define ADXL345_ACCELEROMETER_SCALE_M_S   (GRAVITY_MSS / 256.0f)
 
#define L3G4200D_I2C_ADDRESS   0x69
 Gyro ITG3205 register definitions. More...
 
#define L3G4200D_REG_WHO_AM_I   0x0f
 
#define L3G4200D_REG_WHO_AM_I_VALUE   0xd3
 
#define L3G4200D_REG_CTRL_REG1   0x20
 
#define L3G4200D_REG_CTRL_REG1_DRBW_800_110   0xf0
 
#define L3G4200D_REG_CTRL_REG1_PD   0x08
 
#define L3G4200D_REG_CTRL_REG1_XYZ_ENABLE   0x07
 
#define L3G4200D_REG_CTRL_REG4   0x23
 
#define L3G4200D_REG_CTRL_REG4_FS_2000   0x30
 
#define L3G4200D_REG_CTRL_REG5   0x24
 
#define L3G4200D_REG_CTRL_REG5_FIFO_EN   0x40
 
#define L3G4200D_REG_FIFO_CTL   0x2e
 
#define L3G4200D_REG_FIFO_CTL_STREAM   0x40
 
#define L3G4200D_REG_FIFO_SRC   0x2f
 
#define L3G4200D_REG_FIFO_SRC_ENTRIES_MASK   0x1f
 
#define L3G4200D_REG_FIFO_SRC_EMPTY   0x20
 
#define L3G4200D_REG_FIFO_SRC_OVERRUN   0x40
 
#define L3G4200D_REG_XL   0x28
 
#define L3G4200D_REG_AUTO_INCREMENT   0x80
 
#define L3G4200D_GYRO_SCALE_R_S   (DEG_TO_RAD * 70.0f * 0.001f)
 

Variables

const AP_HAL::HALhal
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 

Macro Definition Documentation

◆ ADXL345_ACCELEROMETER_ADDRESS

#define ADXL345_ACCELEROMETER_ADDRESS   0x53

Accelerometer ADXL345 register definitions.

Definition at line 41 of file AP_InertialSensor_L3G4200D.cpp.

◆ ADXL345_ACCELEROMETER_ADXLREG_BW_RATE

#define ADXL345_ACCELEROMETER_ADXLREG_BW_RATE   0x2c

◆ ADXL345_ACCELEROMETER_ADXLREG_DATA_FORMAT

#define ADXL345_ACCELEROMETER_ADXLREG_DATA_FORMAT   0x31

◆ ADXL345_ACCELEROMETER_ADXLREG_DATAX0

#define ADXL345_ACCELEROMETER_ADXLREG_DATAX0   0x32

◆ ADXL345_ACCELEROMETER_ADXLREG_DEVID

#define ADXL345_ACCELEROMETER_ADXLREG_DEVID   0x00

◆ ADXL345_ACCELEROMETER_ADXLREG_FIFO_CTL

#define ADXL345_ACCELEROMETER_ADXLREG_FIFO_CTL   0x38

◆ ADXL345_ACCELEROMETER_ADXLREG_FIFO_CTL_STREAM

#define ADXL345_ACCELEROMETER_ADXLREG_FIFO_CTL_STREAM   0x9F

◆ ADXL345_ACCELEROMETER_ADXLREG_FIFO_STATUS

#define ADXL345_ACCELEROMETER_ADXLREG_FIFO_STATUS   0x39

◆ ADXL345_ACCELEROMETER_ADXLREG_POWER_CTL

#define ADXL345_ACCELEROMETER_ADXLREG_POWER_CTL   0x2d

◆ ADXL345_ACCELEROMETER_SCALE_M_S

#define ADXL345_ACCELEROMETER_SCALE_M_S   (GRAVITY_MSS / 256.0f)

◆ ADXL345_ACCELEROMETER_XL345_DEVID

#define ADXL345_ACCELEROMETER_XL345_DEVID   0xe5

◆ L3G4200D_GYRO_SCALE_R_S

#define L3G4200D_GYRO_SCALE_R_S   (DEG_TO_RAD * 70.0f * 0.001f)

◆ L3G4200D_I2C_ADDRESS

#define L3G4200D_I2C_ADDRESS   0x69

Gyro ITG3205 register definitions.

Definition at line 58 of file AP_InertialSensor_L3G4200D.cpp.

◆ L3G4200D_REG_AUTO_INCREMENT

#define L3G4200D_REG_AUTO_INCREMENT   0x80

◆ L3G4200D_REG_CTRL_REG1

#define L3G4200D_REG_CTRL_REG1   0x20

◆ L3G4200D_REG_CTRL_REG1_DRBW_800_110

#define L3G4200D_REG_CTRL_REG1_DRBW_800_110   0xf0

◆ L3G4200D_REG_CTRL_REG1_PD

#define L3G4200D_REG_CTRL_REG1_PD   0x08

◆ L3G4200D_REG_CTRL_REG1_XYZ_ENABLE

#define L3G4200D_REG_CTRL_REG1_XYZ_ENABLE   0x07

◆ L3G4200D_REG_CTRL_REG4

#define L3G4200D_REG_CTRL_REG4   0x23

◆ L3G4200D_REG_CTRL_REG4_FS_2000

#define L3G4200D_REG_CTRL_REG4_FS_2000   0x30

◆ L3G4200D_REG_CTRL_REG5

#define L3G4200D_REG_CTRL_REG5   0x24

◆ L3G4200D_REG_CTRL_REG5_FIFO_EN

#define L3G4200D_REG_CTRL_REG5_FIFO_EN   0x40

◆ L3G4200D_REG_FIFO_CTL

#define L3G4200D_REG_FIFO_CTL   0x2e

◆ L3G4200D_REG_FIFO_CTL_STREAM

#define L3G4200D_REG_FIFO_CTL_STREAM   0x40

◆ L3G4200D_REG_FIFO_SRC

#define L3G4200D_REG_FIFO_SRC   0x2f

◆ L3G4200D_REG_FIFO_SRC_EMPTY

#define L3G4200D_REG_FIFO_SRC_EMPTY   0x20

◆ L3G4200D_REG_FIFO_SRC_ENTRIES_MASK

#define L3G4200D_REG_FIFO_SRC_ENTRIES_MASK   0x1f

◆ L3G4200D_REG_FIFO_SRC_OVERRUN

#define L3G4200D_REG_FIFO_SRC_OVERRUN   0x40

◆ L3G4200D_REG_WHO_AM_I

#define L3G4200D_REG_WHO_AM_I   0x0f

◆ L3G4200D_REG_WHO_AM_I_VALUE

#define L3G4200D_REG_WHO_AM_I_VALUE   0xd3

◆ L3G4200D_REG_XL

#define L3G4200D_REG_XL   0x28

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-

Definition at line 14 of file AC_PID_test.cpp.