Class TransportRealIO

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.Transport.Transport
frc.robot.subsystems.Transport.TransportRealIO
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem

public class TransportRealIO extends Transport
  • Field Details

    • l_wheel

      public com.revrobotics.CANSparkMax l_wheel
    • r_wheel

      public com.revrobotics.CANSparkMax r_wheel
    • m_belt

      public com.revrobotics.CANSparkMax m_belt
    • m_color_sensor

      public com.revrobotics.ColorSensorV3 m_color_sensor
    • m_limit

      public edu.wpi.first.wpilibj.DigitalInput m_limit
  • Constructor Details

    • TransportRealIO

      public TransportRealIO()
      Creates a new ExampleSubsystem.
  • Method Details

    • setWheels

      public void setWheels(double volts)
    • setBelt

      public void setBelt(double volts)
    • getSwitchPressed

      public boolean getSwitchPressed()
    • readColorProx

      public double readColorProx()
    • periodic

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

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