C# 클래스 CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope

A generic gyroscope device abstraction component.
상속: ComponentBase, IGyroscope
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
AxisGyroscope ( IMultiAxisGyro multiAxisGyro ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope class with the multi-axis gyro to read from.

AxisGyroscope ( IMultiAxisGyro multiAxisGyro, float degPerSecondFactor ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope class with the multi-axis gyro to read from and the degrees-per-second factor value.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope was occupying.

ReadAndUpdateAngle ( ) : float

Reads the and updates angle.

RecalibrateOffset ( ) : void

Recalibrates the offset.

SetReadTrigger ( GyroTriggerMode readTrigger ) : void

Sets the read trigger.

메소드 상세

AxisGyroscope() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope class with the multi-axis gyro to read from.
/// cannot be null. ///
public AxisGyroscope ( IMultiAxisGyro multiAxisGyro ) : System
multiAxisGyro IMultiAxisGyro /// The multi-axis gyro to read from. ///
리턴 System

AxisGyroscope() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope class with the multi-axis gyro to read from and the degrees-per-second factor value.
/// cannot be null. ///
public AxisGyroscope ( IMultiAxisGyro multiAxisGyro, float degPerSecondFactor ) : System
multiAxisGyro IMultiAxisGyro /// The multi-axis gyro to read from. ///
degPerSecondFactor float /// The degrees-per-second factor value. ///
리턴 System

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Gyroscope.AxisGyroscope was occupying.
public Dispose ( ) : void
리턴 void

ReadAndUpdateAngle() 공개 메소드

Reads the and updates angle.
public ReadAndUpdateAngle ( ) : float
리턴 float

RecalibrateOffset() 공개 메소드

Recalibrates the offset.
public RecalibrateOffset ( ) : void
리턴 void

SetReadTrigger() 공개 메소드

Sets the read trigger.
public SetReadTrigger ( GyroTriggerMode readTrigger ) : void
readTrigger GyroTriggerMode /// The trigger mode to re-read the gyro value. ///
리턴 void