public class GyroRateSensor extends Sensor
Constructor and Description |
---|
GyroRateSensor()
Creates a sensor instance connected to port S1.
|
GyroRateSensor(SensorPort port)
Creates a sensor instance connected to the given port.
|
Modifier and Type | Method and Description |
---|---|
lejos.hardware.sensor.EV3GyroSensor |
getLejosSensor()
Returns the reference of the the underlying
lejos.hardware.sensor.EV3GyroSensor.
|
int |
getValue()
Returns the angular velocity.
|
getLejosPort
public GyroRateSensor(SensorPort port)
port
- the port where the sensor is plugged-inpublic GyroRateSensor()
public lejos.hardware.sensor.EV3GyroSensor getLejosSensor()
public int getValue()