C# 클래스 BrickPi.Sensors.EV3GyroSensor

상속: INotifyPropertyChanged, ISensor
파일 보기 프로젝트 열기: Ellerbach/BrickPi

공개 메소드들

메소드 설명
EV3GyroSensor ( BrickPortSensor port ) : BrickPi.Extensions

Initialize an EV3 Gyro Sensor

EV3GyroSensor ( BrickPortSensor port, GyroMode mode ) : BrickPi.Extensions

Initialize an EV3 Gyro Sensor

EV3GyroSensor ( BrickPortSensor port, GyroMode mode, int timeout ) : BrickPi.Extensions

Initialize an EV3 Gyro Sensor

GetSensorName ( ) : string
NumberOfModes ( ) : int
Read ( ) : int

Read the gyro sensor value. The returned value depends on the mode.

ReadAsString ( ) : string

Reads the sensor value as a string.

ReadRaw ( ) : int

Read the sensor value

RotationCount ( ) : int

Get the number of rotations (a rotation is 360 degrees) - only makes sense when in angle mode

SelectNextMode ( ) : void
SelectPreviousMode ( ) : void
SelectedMode ( ) : string
UpdateSensor ( object state ) : void

Update the sensor and this will raised an event on the interface

비공개 메소드들

메소드 설명
OnPropertyChanged ( string name ) : void
Reset ( ) : void

Reset the sensor

StopTimerInternal ( ) : void

메소드 상세

EV3GyroSensor() 공개 메소드

Initialize an EV3 Gyro Sensor
public EV3GyroSensor ( BrickPortSensor port ) : BrickPi.Extensions
port BrickPortSensor Sensor port
리턴 BrickPi.Extensions

EV3GyroSensor() 공개 메소드

Initialize an EV3 Gyro Sensor
public EV3GyroSensor ( BrickPortSensor port, GyroMode mode ) : BrickPi.Extensions
port BrickPortSensor Sensor port
mode GyroMode Gyro mode
리턴 BrickPi.Extensions

EV3GyroSensor() 공개 메소드

Initialize an EV3 Gyro Sensor
public EV3GyroSensor ( BrickPortSensor port, GyroMode mode, int timeout ) : BrickPi.Extensions
port BrickPortSensor Sensor port
mode GyroMode Gyro mode
timeout int Period in millisecond to check sensor value changes
리턴 BrickPi.Extensions

GetSensorName() 공개 메소드

public GetSensorName ( ) : string
리턴 string

NumberOfModes() 공개 메소드

public NumberOfModes ( ) : int
리턴 int

Read() 공개 메소드

Read the gyro sensor value. The returned value depends on the mode.
public Read ( ) : int
리턴 int

ReadAsString() 공개 메소드

Reads the sensor value as a string.
public ReadAsString ( ) : string
리턴 string

ReadRaw() 공개 메소드

Read the sensor value
public ReadRaw ( ) : int
리턴 int

RotationCount() 공개 메소드

Get the number of rotations (a rotation is 360 degrees) - only makes sense when in angle mode
public RotationCount ( ) : int
리턴 int

SelectNextMode() 공개 메소드

public SelectNextMode ( ) : void
리턴 void

SelectPreviousMode() 공개 메소드

public SelectPreviousMode ( ) : void
리턴 void

SelectedMode() 공개 메소드

public SelectedMode ( ) : string
리턴 string

UpdateSensor() 공개 메소드

Update the sensor and this will raised an event on the interface
public UpdateSensor ( object state ) : void
state object
리턴 void