public class GyroSensor extends Sensor<ShefRobot.GyroSensorAction>
Sensor
Sensor.Port
Modifier and Type | Method and Description |
---|---|
float |
getAngle()
Measures the orientation of the sensor in respect to its start orientation.
|
float |
getRate()
Measures angular velocity of the sensor.
|
float[] |
getRateAndAngle()
Measures orientation and angular velocity of the sensor.
|
void |
reset()
Resets the Gyro sensor
The sensor must be still when this method is called, else it may become mis-calibrated
|
void |
run()
This method is for internal use, it exists due to Sensors and Motors both extending runnable.
|
getRawSample
public void reset()
public float getAngle()
public float getRate()
public float[] getRateAndAngle()