PX4 Firmware
PX4 Autopilot Software http://px4.io
MPU6000.cpp File Reference

Driver for the Invensense MPU6000, MPU6050, ICM20608, and ICM20602 connected via SPI or I2C. More...

#include "MPU6000.hpp"
Include dependency graph for MPU6000.cpp:

Go to the source code of this file.

Detailed Description

Driver for the Invensense MPU6000, MPU6050, ICM20608, and ICM20602 connected via SPI or I2C.

When the device is on the SPI bus the hrt is used to provide thread of execution to the driver.

When the device is on the I2C bus a work queue is used provide thread of execution to the driver.

The I2C code is only included in the build if USE_I2C is defined by the existance of any of PX4_I2C_MPU6050_ADDR, PX4_I2C_MPU6000_ADDR PX4_I2C_ICM_20608_G_ADDR in the board_config.h file.

The command line option -T 6000|20608|20602 (default 6000) selects between MPU60x0, ICM20608G, or ICM20602G;

Author
Andrew Tridgell
Pat Hickey
David Sidrane

Definition in file MPU6000.cpp.