Package frc.robot.subsystems.Climber
Class ClimberRealIO
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.Climber.Climber
frc.robot.subsystems.Climber.ClimberRealIO
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
-
Nested Class Summary
Nested classes/interfaces inherited from class frc.robot.subsystems.Climber.Climber
Climber.Commands -
Field Summary
FieldsModifier and TypeFieldDescriptioncom.revrobotics.CANSparkMaxedu.wpi.first.wpilibj.DigitalInputstatic ClimberRealIOcom.revrobotics.CANSparkMaxedu.wpi.first.wpilibj.DigitalInput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidperiodic()voidsetLeftMotor(double speed) voidsetRightMotor(double speed) voidMethods inherited from class frc.robot.subsystems.Climber.Climber
setLeftClimber, setRightClimberMethods 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, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, startEnd
-
Field Details
-
m_instance
-
l_switch
public edu.wpi.first.wpilibj.DigitalInput l_switch -
r_switch
public edu.wpi.first.wpilibj.DigitalInput r_switch -
l_motor
public com.revrobotics.CANSparkMax l_motor -
r_motor
public com.revrobotics.CANSparkMax r_motor
-
-
Constructor Details
-
ClimberRealIO
public ClimberRealIO()
-
-
Method Details
-
setLeftMotor
public void setLeftMotor(double speed) -
setRightMotor
public void setRightMotor(double speed) -
getLeftSwitch
public boolean getLeftSwitch() -
getRightSwitch
public boolean getRightSwitch() -
periodic
public void periodic() -
simulationPeriodic
public void simulationPeriodic()- Specified by:
simulationPeriodicin interfaceedu.wpi.first.wpilibj2.command.Subsystem- Overrides:
simulationPeriodicin classClimber
-