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, stop
public 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 WristInterface
getAngleInDegrees
in class RotatingSubsystem
public void initDefaultCommand()
initDefaultCommand
in interface WristInterface
initDefaultCommand
in class BaseWrist
public boolean isForwardLimitPressed()
public boolean isReverseLimitPressed()
public void setQuadratureEncoder(double encoderValue)
WristInterface
public double getArbitraryFeedForwardAngleMultiplier()
RotatingSubsystem
public int getWristPulseWidth()
public double getForwardSoftLimitAngle()
getForwardSoftLimitAngle
in class BaseWrist
public double getReverseSoftLimitAngle()
getReverseSoftLimitAngle
in class BaseWrist
public void sendDataToDashboard()
public void updateArbitraryFeedForward()
updateArbitraryFeedForward
in class RotatingSubsystem
public void setMotionMagicSetpointAngle(double angle)
RotatingSubsystem
setMotionMagicSetpointAngle
in class RotatingSubsystem