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
Modifier and TypeFieldDescriptioncom.revrobotics.CANSparkMax
edu.wpi.first.wpilibj.DigitalInput
static ClimberRealIO
com.revrobotics.CANSparkMax
edu.wpi.first.wpilibj.DigitalInput
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
periodic()
void
setLeftMotor
(double speed) void
setRightMotor
(double speed) void
Methods inherited from class frc.robot.subsystems.Climber.Climber
setLeftClimber, setRightClimber
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, 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:
simulationPeriodic
in interfaceedu.wpi.first.wpilibj2.command.Subsystem
- Overrides:
simulationPeriodic
in classClimber
-