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