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

public class ClimberRealIO extends Climber
  • Field Details

    • m_instance

      public static ClimberRealIO 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()
      Specified by:
      periodic in interface edu.wpi.first.wpilibj2.command.Subsystem
      Overrides:
      periodic in class Climber
    • simulationPeriodic

      public void simulationPeriodic()
      Specified by:
      simulationPeriodic in interface edu.wpi.first.wpilibj2.command.Subsystem
      Overrides:
      simulationPeriodic in class Climber