Package frc.robot.subsystems
Class Climber
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.Climber
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,edu.wpi.first.wpilibj2.command.Subsystem
public class Climber
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.revrobotics.CANSparkMax[]
double
double
double
double
void
periodic()
void
setSpeed
(double leftSpeed, double rightSpeed) void
setSpeedLeft
(double leftSpeed) void
setSpeedRight
(double rightSpeed) Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd
-
Constructor Details
-
Climber
public Climber()Creates a new Climber.
-
-
Method Details
-
setSpeed
public void setSpeed(double leftSpeed, double rightSpeed) -
getSpeedRight
public double getSpeedRight() -
getSpeedLeft
public double getSpeedLeft() -
setSpeedLeft
public void setSpeedLeft(double leftSpeed) -
setSpeedRight
public void setSpeedRight(double rightSpeed) -
getPositionRightMotor
public double getPositionRightMotor() -
getPositionLeftMotor
public double getPositionLeftMotor() -
periodic
public void periodic() -
getMotors
public com.revrobotics.CANSparkMax[] getMotors()
-