Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
OnPropertyChanged ( string name ) : void | ||
Reset ( ) : void |
Reset the sensor
|
|
StopTimerInternal ( ) : void |
public EV3GyroSensor ( BrickPortSensor port ) : BrickPi.Extensions | ||
port | BrickPortSensor | Sensor port |
return | BrickPi.Extensions |
public EV3GyroSensor ( BrickPortSensor port, GyroMode mode ) : BrickPi.Extensions | ||
port | BrickPortSensor | Sensor port |
mode | GyroMode | Gyro mode |
return | BrickPi.Extensions |
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 |
return | BrickPi.Extensions |