Package lejos.robotics
Interface Gyroscope
-
- All Known Implementing Classes:
GyroscopeAdapter
public interface GyroscopeAbstraction for Gyroscope defines minimal implementation- Author:
- Kirk P. Thompson 4/7/2011
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAngle()floatgetAngularVelocity()Implementor must calculate and return the angular velocity in degrees per second.voidrecalibrateOffset()Implementor must calculate and set the offset/bias value for use ingetAngularVelocity().voidreset()
-
-
-
Method Detail
-
getAngularVelocity
float getAngularVelocity()
Implementor must calculate and return the angular velocity in degrees per second.- Returns:
- Angular velocity in degrees/second
-
recalibrateOffset
void recalibrateOffset()
Implementor must calculate and set the offset/bias value for use ingetAngularVelocity().
-
getAngle
int getAngle()
-
reset
void reset()
-
-