public class MustangCoprocessor
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
class  | 
MustangCoprocessor.VisionValue_PIDSource
Implements a VisionValue (vertical/horizontal angle) as a PIDSource 
 | 
class  | 
MustangCoprocessor.VisionValues
Represents a set of vision data received from the coprocessor containing an array of doubles in the form [hangle, vangle, timestamp] 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static double | 
HIGH_TARGET_HEIGHT  | 
static double | 
LOW_TARGET_HEIGHT  | 
| Constructor and Description | 
|---|
MustangCoprocessor()  | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
getAngleToWallTarget()  | 
double | 
getDistanceToWallTarget()  | 
MustangCoprocessor.VisionValue_PIDSource | 
getHAnglePIDSource()
Horizontal Angle to the vision target in degrees, as a PIDSource. 
 | 
double | 
getTimestamp()  | 
MustangCoprocessor.VisionValue_PIDSource | 
getVAnglePIDSource()
Vertical Angle to the vision target in degrees, as a PIDSource. 
 | 
double[] | 
getVisionValues()  | 
boolean | 
isBackCamera()  | 
void | 
setCamera(boolean back)
Sets which camera to use for vision (front/back) 
 | 
void | 
setTargetHeight(boolean lowTarget)
Sets the target for vision (must be set properly to get correct distance) 
 | 
void | 
turnOffBackLedRing()  | 
void | 
turnOnBackLedRing()  | 
void | 
useVision(boolean enabled)
Sets whether to use vision 
 | 
public static final double HIGH_TARGET_HEIGHT
public static final double LOW_TARGET_HEIGHT
public MustangCoprocessor.VisionValue_PIDSource getHAnglePIDSource()
public MustangCoprocessor.VisionValue_PIDSource getVAnglePIDSource()
public double getDistanceToWallTarget()
public double getTimestamp()
public double getAngleToWallTarget()
public double[] getVisionValues()
public boolean isBackCamera()
public void setCamera(boolean back)
back - true for back camera, false for frontpublic void useVision(boolean enabled)
enabled - true for vision, false for no visionpublic void setTargetHeight(boolean lowTarget)
lowTarget - true for low (everything but rocket ball), false for high (rocket ball)public void turnOnBackLedRing()
public void turnOffBackLedRing()