MPU9150
Driver for MPU9250 I2C accelerometer/gyroscope/magnetometer.
Public Types
Type
Name
enum
enum
Public Attributes
Type
Name
float
float
float
float
float
float
float
float
float
float
Protected Attributes
Type
Name
Ascale
Gscale
const float
const float
Public Functions
Type
Name
int
int
void
void
Protected Functions
Type
Name
void
Public Types Documentation
enum Ascale
enum Gscale
Public Attributes Documentation
variable ax
variable ay
variable az
variable gx
variable gy
variable gz
variable mx
variable my
variable mz
variable t
Protected Attributes Documentation
variable _Ascale
variable _Gscale
variable _Gscalings
variable _Ascalings
variable _mpu
Public Functions Documentation
function MPU9150
MPU9150 constructor
Parameters:
sda I2C SDA pin
scl I2C SDL pin
function update_motion
Get new data from acc/gyro sensors.
Returns:
0 on success, non-0 on fail
function update_mag
Get new data from magnetometer
Returns:
0 on success, non-0 on fail
function set_Ascale
function set_Gscale
Protected Functions Documentation
function calibrate
The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/MPU9150.h
Last updated