Package org.team1540.rooster.wrappers
Class NavX
- java.lang.Object
-
- org.team1540.rooster.wrappers.NavX
-
public class NavX extends Object
-
-
Constructor Summary
Constructors Constructor Description NavX(edu.wpi.first.wpilibj.SPI.Port port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAccelX()
double
getAccelY()
double
getAngleRadians()
double
getRawPitchDegrees()
This is bad.double
getYawRadians()
-
-
-
Method Detail
-
getYawRadians
public double getYawRadians()
- Returns:
- NavX yaw counter-clockwise in radians, from -pi to pi. This method does NOT continue past pi or -pi and is thus the one you probably want to use most of the time.
-
getAngleRadians
public double getAngleRadians()
- Returns:
- NavX angle counter-clockwise in radians. This method continues past pi and -pi and is thus the one you don't want to use (most of the time).
-
getAccelX
public double getAccelX()
-
getAccelY
public double getAccelY()
-
getRawPitchDegrees
public double getRawPitchDegrees()
This is bad. Do NOT use this. Re-tune your PID if you have to.- Returns:
- NavX raw pitch clockwise in degrees
-
-