Package frc.robot.subsystems.Transport
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
-
Field Summary
Modifier and TypeFieldDescriptioncom.revrobotics.CANSparkMax
com.revrobotics.CANSparkMax
com.revrobotics.ColorSensorV3
edu.wpi.first.wpilibj.DigitalInput
com.revrobotics.CANSparkMax
Fields inherited from class frc.robot.subsystems.Transport.Transport
color_refresh, note_stored, prox
-
Constructor Summary
-
Method Summary
Methods inherited from class frc.robot.subsystems.Transport.Transport
outtake, transportOff, transportOn
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
-
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() -
simulationPeriodic
public void simulationPeriodic()- Specified by:
simulationPeriodic
in interfaceedu.wpi.first.wpilibj2.command.Subsystem
- Overrides:
simulationPeriodic
in classTransport
-