Method | Description | |
---|---|---|
GetSensorName ( ) : string | ||
NXTUltraSonicSensor ( BrickPortSensor port ) : System |
Initialize a NXT Ultrasonic sensor
|
|
NXTUltraSonicSensor ( BrickPortSensor port, UltraSonicMode mode ) : System |
Initialize a NXT Ultrasonic sensor
|
|
NXTUltraSonicSensor ( BrickPortSensor port, UltraSonicMode mode, int timeout ) : System |
Initialize a NXT Ultrasonic sensor
|
|
NumberOfModes ( ) : int | ||
ReadAsString ( ) : string | ||
ReadDistance ( ) : float |
Read the distance in either centiinches or centimeter
|
|
ReadRaw ( ) : int |
The raw value from the sensor
|
|
SelectNextMode ( ) : void | ||
SelectPreviousMode ( ) : void | ||
SelectedMode ( ) : string | ||
UpdateSensor ( object state ) : void |
Update the sensor and this will raised an event on the interface
|
Method | Description | |
---|---|---|
OnPropertyChanged ( string name ) : void | ||
StopTimerInternal ( ) : void |
public NXTUltraSonicSensor ( BrickPortSensor port ) : System | ||
port | BrickPortSensor | Sensor port |
return | System |
public NXTUltraSonicSensor ( BrickPortSensor port, UltraSonicMode mode ) : System | ||
port | BrickPortSensor | Sensor port |
mode | UltraSonicMode | Ultrasonic mode |
return | System |
public NXTUltraSonicSensor ( BrickPortSensor port, UltraSonicMode mode, int timeout ) : System | ||
port | BrickPortSensor | Sensor port |
mode | UltraSonicMode | Ultrasonic mode |
timeout | int | Period in millisecond to check sensor value changes |
return | System |