C# 클래스 BrickPi.Sensors.EV3UltraSonicSensor

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

공개 메소드들

메소드 설명
EV3UltraSonicSensor ( BrickPortSensor port ) : System

Initialize an EV3 Ulrasonic sensor

EV3UltraSonicSensor ( BrickPortSensor port, UltraSonicMode usmode ) : System

Initialize an EV3 Ultrasonic sensor

EV3UltraSonicSensor ( BrickPortSensor port, UltraSonicMode usmode, int timeout ) : System

Initialize an EV3 Ultrasonic Sensor

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

Read the sensor value. Result depends on the mode

ReadAsString ( ) : string

Reads the sensor value as a string.

ReadRaw ( ) : int

Read the sensor value

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

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

비공개 메소드들

메소드 설명
GetEV3Type ( UltraSonicMode usmode ) : BrickSensorType
OnPropertyChanged ( string name ) : void
StopTimerInternal ( ) : void

메소드 상세

EV3UltraSonicSensor() 공개 메소드

Initialize an EV3 Ulrasonic sensor
public EV3UltraSonicSensor ( BrickPortSensor port ) : System
port BrickPortSensor Sensor port
리턴 System

EV3UltraSonicSensor() 공개 메소드

Initialize an EV3 Ultrasonic sensor
public EV3UltraSonicSensor ( BrickPortSensor port, UltraSonicMode usmode ) : System
port BrickPortSensor Sensor mode
usmode UltraSonicMode Ultrasonic mode
리턴 System

EV3UltraSonicSensor() 공개 메소드

Initialize an EV3 Ultrasonic Sensor
public EV3UltraSonicSensor ( BrickPortSensor port, UltraSonicMode usmode, int timeout ) : System
port BrickPortSensor Sensor port
usmode UltraSonicMode Ultrasonic mode
timeout int Period in millisecond to check sensor value changes
리턴 System

GetSensorName() 공개 메소드

public GetSensorName ( ) : string
리턴 string

NumberOfModes() 공개 메소드

public NumberOfModes ( ) : int
리턴 int

Read() 공개 메소드

Read the sensor value. Result 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

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