Method | Description | |
---|---|---|
EV3IRSensor ( BrickPortSensor port ) : System |
Initialize an EV3 IR Sensor
|
|
EV3IRSensor ( BrickPortSensor port, IRMode mode ) : System |
Initializes an EV3 IS Sensor
|
|
EV3IRSensor ( BrickPortSensor port, IRMode mode, int timeout ) : System |
Initialize an EV3 IR Sensor
|
|
GetSensorName ( ) : string | ||
NumberOfModes ( ) : int | ||
Read ( ) : int |
Read the sensor value. The returned value depends on the mode. Distance in proximity mode. Remote command number in remote mode. Beacon location in seek mode.
|
|
ReadAsString ( ) : string |
Reads the sensor value as a string.
|
|
ReadBeaconLocation ( ) : int |
Gets the beacon location. This will change the mode to seek
|
|
ReadDistance ( ) : int |
Read the distance of the sensor in CM (0-100). This will change mode to proximity
|
|
ReadRaw ( ) : int |
Read the sensor value
|
|
ReadRemoteCommand ( ) : byte |
Reads commands from the IR-Remote. This will change mode to remote
|
|
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 EV3IRSensor ( BrickPortSensor port ) : System | ||
port | BrickPortSensor | Sensor port |
return | System |
public EV3IRSensor ( BrickPortSensor port, IRMode mode ) : System | ||
port | BrickPortSensor | |
mode | IRMode | IR mode |
return | System |
public EV3IRSensor ( BrickPortSensor port, IRMode mode, int timeout ) : System | ||
port | BrickPortSensor | Sensor port |
mode | IRMode | IR mode |
timeout | int | Period in millisecond to check sensor value changes |
return | System |