Characteristic Locus
Inheritance System.Object > Mpu6050
Implements System.IDisposable
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors.Motion
Assembly Mpu6050.dll

Syntax

public class Mpu6050 : IDisposable

Constructors

Mpu6050(II2cBus, Mpu6050.Addresses)

Declaration
public Mpu6050(II2cBus bus, Mpu6050.Addresses address)

Parameters

Type Name Description
II2cBus bus
Mpu6050.Addresses address

Mpu6050(II2cBus, Byte)

Declaration
public Mpu6050(II2cBus bus, byte address = 104)

Parameters

Type Name Description
II2cBus bus
System.Byte address

Properties

AccelerationChangeThreshold

Declaration
public float AccelerationChangeThreshold { get; set; }

Property Value

Type Description
System.Single

AccelerationX

Accelerometer X measurement, in g

Declaration
public float AccelerationX { get; }

Property Value

Type Description
System.Single

AccelerationY

Accelerometer Y measurement, in g

Declaration
public float AccelerationY { get; }

Property Value

Type Description
System.Single

AccelerationZ

Accelerometer Z measurement, in g

Declaration
public float AccelerationZ { get; }

Property Value

Type Description
System.Single

Address

Declaration
public byte Address { get; }

Property Value

Type Description
System.Byte

GyroChangeThreshold

Declaration
public float GyroChangeThreshold { get; set; }

Property Value

Type Description
System.Single

GyroX

Gyroscope X measurement, in degrees per second

Declaration
public float GyroX { get; }

Property Value

Type Description
System.Single

GyroY

Gyroscope Y measurement, in degrees per second

Declaration
public float GyroY { get; }

Property Value

Type Description
System.Single

GyroZ

Gyroscope Z measurement, in degrees per second

Declaration
public float GyroZ { get; }

Property Value

Type Description
System.Single

IsSampling

Declaration
public bool IsSampling { get; }

Property Value

Type Description
System.Boolean

TemperatureC

Temperature of sensor

Declaration
public float TemperatureC { get; }

Property Value

Type Description
System.Single

Methods

Dispose()

Dispose managed resources

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)

Parameters

Type Name Description
System.Boolean disposing

StartSampling(TimeSpan)

Declaration
public void StartSampling(TimeSpan samplePeriod)

Parameters

Type Name Description
System.TimeSpan samplePeriod

StopSampling()

Declaration
public void StopSampling()

Wake()

Declaration
public void Wake()

Events

AccelerationXChanged

Declaration
public event Mpu6050.ValueChangedHandler AccelerationXChanged

Event Type

Type Description
Mpu6050.ValueChangedHandler

AccelerationYChanged

Declaration
public event Mpu6050.ValueChangedHandler AccelerationYChanged

Event Type

Type Description
Mpu6050.ValueChangedHandler

AccelerationZChanged

Declaration
public event Mpu6050.ValueChangedHandler AccelerationZChanged

Event Type

Type Description
Mpu6050.ValueChangedHandler

GyroXChanged

Declaration
public event Mpu6050.ValueChangedHandler GyroXChanged

Event Type

Type Description
Mpu6050.ValueChangedHandler

GyroYChanged

Declaration
public event Mpu6050.ValueChangedHandler GyroYChanged

Event Type

Type Description
Mpu6050.ValueChangedHandler

GyroZChanged

Declaration
public event Mpu6050.ValueChangedHandler GyroZChanged

Event Type

Type Description
Mpu6050.ValueChangedHandler

TemperatureChanged

Declaration
public event Mpu6050.ValueChangedHandler TemperatureChanged

Event Type

Type Description
Mpu6050.ValueChangedHandler