Package me.wobblyyyy.pathfinder.robot
Interface Gyroscope
public interface Gyroscope
Interface used for interacting with gyroscopes.
- Since:
- 0.1.0
- Author:
- Colin Robertson
-
Method Summary
Modifier and Type Method Description double
getAngle()
Gets the angle at which the gyroscope is pointing.
-
Method Details
-
getAngle
double getAngle()Gets the angle at which the gyroscope is pointing.This angle should be in DEGREES, not RADIANS, otherwise some pathfinding math (or more specifically, drivetrain math) may be slightly messed up. Or significantly messed up, I'm not really sure. In addition to returning an angle that's notated in degrees, the angle should (preferably) be within the range of (0) to (360).
- Returns:
- the gyroscope's angle.
-