public class MustangSensors
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
NAVX_ERROR_CODE |
static double |
ULTRASONIC_ERROR_CODE |
Constructor and Description |
---|
MustangSensors() |
Modifier and Type | Method and Description |
---|---|
double |
getAdjustedBackUltrasonicDistance() |
double |
getAngle()
Gets fieldcentric angle of navX
|
double |
getAngleToTarget() |
double |
getBackLeftUltrasonicDistance() |
double |
getBackLeftUltrasonicUnadjustedDistance() |
double |
getBackRightUltrasonicDistance() |
double |
getBackRightUltrasonicUnadjustedDistance() |
double |
getFieldCentricYaw() |
double |
getFrontUltrasonicDistance() |
double |
getFrontUltrasonicUnadjustedDistance() |
boolean |
getIntakeBeamBreakOutput() |
boolean |
getIntakeIROutput()
Returns true if object is within threshold and false if not
|
NavX.NavX_Pitch_PIDSource |
getNavXPitchPIDSource()
Returns a PIDSource with the NavX pitch.
|
double |
getPitchDouble() |
Rotation |
getRotationAngle()
Gets the Rotation for the Pure Pursuit drive.
|
double |
getYawDouble()
Returns the yaw of the robot as a double in accordance with its adjustment based on Robot starting position.
|
double |
getYawDoubleForPathfinder()
Gets the yaw for Pathfinder since it needs it mirrored from the normal way.
|
double |
getYawRateDegreesPerSecond()
Returns the rate of change of the yaw angle in degrees per second.
|
NavX.ZeroableNavX_Yaw_PIDSource |
getZeroableNavXPIDSource()
Returns a PIDSource with the NavX Yaw corresponding to the last zero (not field centric).
|
boolean |
isIntakeBeamBreakNull() |
boolean |
isIntakeIRSensorNull()
Returns the intake IR sensor
|
boolean |
isNavXNull() |
void |
resetNavX()
Resets the NavX.
|
void |
sendBreamBreakDataToDashboard() |
void |
sendUltrasonicDataToDashboard() |
void |
zeroYaw()
Adds a "user-offset" variable to the NavX, effectively zeroing the value you will receive at this point.
|
public static final double NAVX_ERROR_CODE
public static final double ULTRASONIC_ERROR_CODE
public double getFrontUltrasonicUnadjustedDistance()
public double getFrontUltrasonicDistance()
public double getBackRightUltrasonicUnadjustedDistance()
public double getBackRightUltrasonicDistance()
public double getBackLeftUltrasonicUnadjustedDistance()
public double getBackLeftUltrasonicDistance()
public double getAdjustedBackUltrasonicDistance()
public Rotation getRotationAngle()
public void resetNavX()
public double getYawRateDegreesPerSecond()
public double getYawDouble()
public double getPitchDouble()
public double getYawDoubleForPathfinder()
public void zeroYaw()
public double getFieldCentricYaw()
public double getAngle()
public double getAngleToTarget()
public NavX.ZeroableNavX_Yaw_PIDSource getZeroableNavXPIDSource()
public NavX.NavX_Pitch_PIDSource getNavXPitchPIDSource()
public boolean getIntakeIROutput()
public boolean getIntakeBeamBreakOutput()
public boolean isIntakeIRSensorNull()
public boolean isIntakeBeamBreakNull()
public boolean isNavXNull()
public void sendUltrasonicDataToDashboard()
public void sendBreamBreakDataToDashboard()