Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
GetEV3Type ( UltraSonicMode usmode ) : BrickSensorType | ||
OnPropertyChanged ( string name ) : void | ||
StopTimerInternal ( ) : void |
public EV3UltraSonicSensor ( BrickPortSensor port ) : System | ||
port | BrickPortSensor | Sensor port |
return | System |
public EV3UltraSonicSensor ( BrickPortSensor port, UltraSonicMode usmode ) : System | ||
port | BrickPortSensor | Sensor mode |
usmode | UltraSonicMode | Ultrasonic mode |
return | System |
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 |
return | System |