MPU6050 class

MPU-6050 Six-Axis (Gyro + Accelerometer) sensor

Constructors

MPU6050(I2C i2c, [int i2cAddress = defaultMPU6050address, DLPF _dlpfCfg = defaultDLPFcfg, int _smplrtDiv = defaultSmplrtDiv])
Opens a MPU6050 on the i2c with the optional default values

Properties

hashCode int
The hash code for this object.
no setterinherited
i2c I2C
final
i2cAddress int
final
i2cBus int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAccelAccelerations() List<double>
Gets the last acceleration values, in g, retrieved from the accelerometer, for the x, y and z axis. Call updateValues repeatedly with a high frequency to get accurate values.
getAccelAngles() List<double>
Gets the last angle values, in °, retrieved from the accelerometer, for the x, y and z axis. Call updateValues repeatedly with a high frequency to get accurate values.
getDLPFConfig() → DLPF
Returns the Digital Low Pass Filter (DLPF).
getFilteredAngles() List<double>
Last angle value, in °, calculated from the accelerometer and the gyroscope, for the x, y and z axis. Call updateValues repeatedly with a high frequency to get accurate values.
getGyroAngles() List<double>
Gets the last angles values, in °, retrieved from the gyroscope, for the x, y and z axis. Call updateValues repeatedly with a high frequency to get accurate values.
getGyroAngularSpeeds() List<double>
Gets the last angular speed values, in °/sec, retrieved from the gyroscope, for the x, y and z axis. Call updateValues repeatedly with a high frequency to get accurate values.
getGyroAngularSpeedsOffsets() List<double>
to get accurate values.
getSampleRate() int
Returns the Sample Rate of the MPU6050 in Hz.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readScaledAccelerometerValues() List<double>
readScaledGyroscopeValues() List<double>
readWord2C(int registerAddress) int
setDLPFConfig(DLPF filter) → void
Sets the Digital Low Pass Filter (DLPF).
toString() String
A string representation of this object.
inherited
updateValues() → void
This method should be called repeatedly with a high frequency to get accurate values.

Operators

operator ==(Object other) bool
The equality operator.
inherited