Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

MPU9250 - Inertial Measurement Unit


Files

file  otMPU9250.h
 Inertial Measurement Unit.

Modules

 Version History
 IMU - Code example

Data Structures

struct  __attribute__
class  otMPU9250
 Library for the management of the IMU MPU9250. More...
class  otMPU9250
 Library for the management of the IMU MPU9250. More...

Defines

#define MPU9250_ADDRESS   0x68
 Primary address.
#define MPU9250_ADDRESS_II   0x69
 Secondary address.

Variables

typedef imuData

Detailed Description

An inertial measurement unit (IMU) is an electronic device that measures and reports a body's specific force, angular rate, and sometimes the orientation of the body, using a combination of accelerometers, gyroscopes, and sometimes magnetometers.
IMUs are typically used to maneuver aircraft (an attitude and heading reference system), including unmanned aerial vehicles (UAVs), among many others, and spacecraft, including satellites and landers. From wikipedia: https://en.wikipedia.org/wiki/Inertial_measurement_unit
Original code by Kris Winer at https://github.com/kriswiner/MPU9250
mpu9250.png
mpu9250_axis.png
Dependency:
I2C - System Management Bus
TIMER - Procedure for timer usage
Math Library
Malloc - Memory management

Define Documentation

#define MPU9250_ADDRESS   0x68
 

#define MPU9250_ADDRESS_II   0x69
 


Variable Documentation

d otMPU9250::imuData
 

A structure for IMU data

Parameters:
Gscale Gyroscpe range
Ascale Accelerometer range
Mscale Magnetometer range
aRes Accelerometer resolution
gRes Gyroscope resolution
mRes Magnetometer resolution
gyroBias Gyroscope bias
accelBias Accelerometer bias
magBias Magnetometer bias
magScale Magnetometer scale
magCalibration Factory mag calibration and mag bias
q Vector to hold quaternion
eInt Vector to hold integral error for Mahony method
footer

otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0