public abstract class RotatingSubsystem extends Subsystem implements TunableSubsystem
| Constructor and Description |
|---|
RotatingSubsystem(TalonSRX rotatorTalon,
double arbitraryFeedForwardConstant,
int forwardSoftLimit,
int reverseSoftLimit,
boolean timeout,
int quadEncoderMin,
int quadEncoderMax,
int continuousCurrentLimit,
int peakCurrentLimit,
int offsetFromEncoderZero) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSetpoint()
Removes the setpoint for the talon on this subsystem
|
void |
enableBrakeMode() |
void |
enableCoastMode() |
abstract double |
getAngleInDegrees() |
double |
getMotionMagicSetpoint() |
boolean |
getTimeout()
Gets the boolean to decide whether or not to pulse or stall the motor
|
void |
moveByPercentOutput(double output)
Rotates the talon at a certain percent output
|
abstract void |
setMotionMagicSetpointAngle(double angle)
Sets the setpoint for motion magic (in ticks)
|
void |
stop()
Puts the main talon in percent output mode
|
void |
updateArbitraryFeedForward()
Updates the arbitrary feed forward on this subsystem
|
public RotatingSubsystem(TalonSRX rotatorTalon,
double arbitraryFeedForwardConstant,
int forwardSoftLimit,
int reverseSoftLimit,
boolean timeout,
int quadEncoderMin,
int quadEncoderMax,
int continuousCurrentLimit,
int peakCurrentLimit,
int offsetFromEncoderZero)
public boolean getTimeout()
getTimeout in interface TunableSubsystempublic void enableCoastMode()
public void enableBrakeMode()
public void stop()
stop in interface TunableSubsystempublic void clearSetpoint()
public void moveByPercentOutput(double output)
moveByPercentOutput in interface TunableSubsystempublic void updateArbitraryFeedForward()
public double getMotionMagicSetpoint()
public abstract void setMotionMagicSetpointAngle(double angle)
public abstract double getAngleInDegrees()