Package robot.subsystems
Class ClimberSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
robot.subsystems.MotorSubsystem
robot.subsystems.ClimberSubsystem
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doubleFields inherited from class robot.subsystems.MotorSubsystem
backwardVoltage, forwardVoltage, motors -
Constructor Summary
ConstructorsConstructorDescriptionClimberSubsystem(SmartMotorController motor, LinearDutyCycleEncoder encoder) -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.Commandc_down()edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandc_gotoHeight(double height) edu.wpi.first.wpilibj2.command.Commandc_gotoUp()edu.wpi.first.wpilibj2.command.Commandc_up()doublevoidsetVoltage(double voltage) voidsetVoltage(double voltage, boolean bypassSoftwareStop) Methods inherited from class robot.subsystems.MotorSubsystem
c_backward, c_controlVoltage, c_DEBUG_tunePIDkG, c_forward, c_holdVoltage, c_stop, setMotorBrake, stopMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
kP
public static final double kP- See Also:
-
kI
public static final double kI- See Also:
-
kD
public static final double kD- See Also:
-
MAX_VOLTAGE
public static final double MAX_VOLTAGE- See Also:
-
-
Constructor Details
-
ClimberSubsystem
- Parameters:
motor- :it's the motorencoder- :there is only one encoder, what do you think it's for?
-
-
Method Details
-
c_up
public edu.wpi.first.wpilibj2.command.Command c_up() -
c_down
public edu.wpi.first.wpilibj2.command.Command c_down() -
getHeight
public double getHeight() -
c_gotoUp
public edu.wpi.first.wpilibj2.command.Command c_gotoUp() -
c_gotoDown
public edu.wpi.first.wpilibj2.command.Command c_gotoDown() -
c_gotoHeight
public edu.wpi.first.wpilibj2.command.Command c_gotoHeight(double height) -
setVoltage
public void setVoltage(double voltage) - Overrides:
setVoltagein classMotorSubsystem
-
setVoltage
public void setVoltage(double voltage, boolean bypassSoftwareStop)
-