Package frc.robot.subsystems.coral
Class CoralScoring
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.coral.CoralScoring
Coral Scoring Subsystem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get intake beambreak statusboolean
Get outtake beambreak statusvoid
periodic()
Runs Pre Scoring MotorSets motor speed to score.void
setCoralPower
(double power) Set motor powerMethods 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, simulationPeriodic, startEnd, startRun
-
Field Details
-
coralAtIntake
-
coralAtOuttake
-
-
Constructor Details
-
CoralScoring
Coral Scoring subsystem
-
-
Method Details
-
getOuttakeBeamBreakStatus
public boolean getOuttakeBeamBreakStatus()Get outtake beambreak status- Returns:
- Status of beambreak at outtake
-
getIntakeBeamBreakStatus
public boolean getIntakeBeamBreakStatus()Get intake beambreak status- Returns:
- Status of beambreak at intake
-
periodic
public void periodic() -
setCoralPower
public void setCoralPower(double power) Set motor power- Parameters:
power
- power to apply to motor
-
runCoralIntake
Runs Pre Scoring Motor- Returns:
- Command
-
runCoralOuttake
Sets motor speed to score.- Returns:
- Command
-