public class NavX
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
NavX.NavX_Pitch_PIDSource |
class |
NavX.ZeroableNavX_Yaw_PIDSource |
Constructor and Description |
---|
NavX(SerialPort.Port port) |
NavX(SPI.Port spi_port_id) |
Modifier and Type | Method and Description |
---|---|
double |
getAngle() |
AHRS |
getFieldCentricNavXPIDSource()
Gets the NavX object itself so be careful with it and don't reset it.
|
NavX.NavX_Pitch_PIDSource |
getNavXPitchPIDSource()
Gets the NavX's pitch as a PIDSource
|
double |
getPitch()
Gets the pitch of the NavX
|
double |
getRawAccelX() |
double |
getYawDouble()
Gets the yaw with offset taken into account.
|
double |
getYawFieldCentric()
Gets the field centric yaw (0 degrees is forward for the robot from its starting position),
|
double |
getYawRateDegreesPerSec()
The rate of change of the NavX angle in degrees per second.
|
double |
getYawRateRadiansPerSec()
The rate of change of the NavX angle in radians per second.
|
NavX.ZeroableNavX_Yaw_PIDSource |
getZeroableNavXYawPIDSource()
Gets the NavX as a PIDSource that responds to the NavX being zeroed.
|
void |
reset()
Resets and recalibrates the NavX (yaw will go back to zero and offset cleared).
|
void |
zeroYaw()
Zeroes the yaw for getYawDouble()
|
public void reset()
public void zeroYaw()
public double getYawDouble()
public double getAngle()
public double getYawRateDegreesPerSec()
public double getYawRateRadiansPerSec()
public double getRawAccelX()
public NavX.ZeroableNavX_Yaw_PIDSource getZeroableNavXYawPIDSource()
public NavX.NavX_Pitch_PIDSource getNavXPitchPIDSource()
public AHRS getFieldCentricNavXPIDSource()
public double getYawFieldCentric()
public double getPitch()