public class Wrist extends BaseWrist
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSED_LOOP_ALLOWABLE_ERROR |
static int |
FORWARD_SOFT_LIMIT |
static double |
MAX_WRIST_OUTPUT |
static int |
QUAD_ENCODER_MAX |
static int |
QUAD_ENCODER_MIN |
static int |
REVERSE_SOFT_LIMIT |
static int |
TICKS_PER_ROTATION |
| Constructor and Description |
|---|
Wrist() |
| Modifier and Type | Method and Description |
|---|---|
void |
disableCurrentLimit() |
void |
enableCurrentLimit() |
double |
getAngleInDegrees() |
double |
getArbitraryFeedForwardAngleMultiplier()
Gets the multiplier for updating the arbitrary feed forward based on angle and subsystem
|
double |
getForwardSoftLimitAngle() |
double |
getReverseSoftLimitAngle() |
int |
getWristPulseWidth() |
void |
initDefaultCommand() |
boolean |
isForwardLimitPressed() |
boolean |
isReverseLimitPressed() |
void |
sendDataToDashboard() |
void |
setMotionMagicSetpointAngle(double angle)
Sets the setpoint for motion magic (in ticks)
|
void |
setOutput(double output) |
void |
setQuadratureEncoder(double encoderValue)
Sets the SensorCollection encoder value to encoderValue (use this to reset the encoder when at a known position)
|
void |
updateArbitraryFeedForward()
Updates the arbitrary feed forward on this subsystem
|
clearSetpoint, enableBrakeMode, enableCoastMode, getMotionMagicSetpoint, getTimeout, moveByPercentOutput, stoppublic static final int FORWARD_SOFT_LIMIT
public static final int REVERSE_SOFT_LIMIT
public static final int CLOSED_LOOP_ALLOWABLE_ERROR
public static final int QUAD_ENCODER_MAX
public static final int QUAD_ENCODER_MIN
public static final double MAX_WRIST_OUTPUT
public static final int TICKS_PER_ROTATION
public void enableCurrentLimit()
public void disableCurrentLimit()
public void setOutput(double output)
public double getAngleInDegrees()
getAngleInDegrees in interface WristInterfacegetAngleInDegrees in class RotatingSubsystempublic void initDefaultCommand()
initDefaultCommand in interface WristInterfaceinitDefaultCommand in class BaseWristpublic boolean isForwardLimitPressed()
public boolean isReverseLimitPressed()
public void setQuadratureEncoder(double encoderValue)
WristInterfacepublic double getArbitraryFeedForwardAngleMultiplier()
RotatingSubsystempublic int getWristPulseWidth()
public double getForwardSoftLimitAngle()
getForwardSoftLimitAngle in class BaseWristpublic double getReverseSoftLimitAngle()
getReverseSoftLimitAngle in class BaseWristpublic void sendDataToDashboard()
public void updateArbitraryFeedForward()
updateArbitraryFeedForward in class RotatingSubsystempublic void setMotionMagicSetpointAngle(double angle)
RotatingSubsystemsetMotionMagicSetpointAngle in class RotatingSubsystem