Package frc.robot.Subsystems.Elevator
Class ElevatorSimIO
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.Subsystems.Elevator.Elevator
frc.robot.Subsystems.Elevator.ElevatorSimIO
- 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.Elevator.Elevator
Elevator.TargetState -
Field Summary
Fields inherited from class frc.robot.Subsystems.Elevator.Elevator
instance, m_current_state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleandoublebooleanedu.wpi.first.math.geometry.Rotation2dedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandvoidperiodic()protected voidrunEleMotionMagic(double setpoint) doublerunElevator(double speed) voidrunIntake(double speed) voidrunShooter(double speed) doublerunWrist(double speed) protected voidrunWristMotionMagic(double setpoint) voidvoidvoidMethods inherited from class frc.robot.Subsystems.Elevator.Elevator
atTarget, atTarget, setElevatorSetpoint, setState, setStateCmd, setWristSetpointMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
ElevatorSimIO
protected ElevatorSimIO()
-
-
Method Details
-
runElevator
public double runElevator(double speed) - Specified by:
runElevatorin classElevator
-
runWrist
public double runWrist(double speed) -
runEleMotionMagic
protected void runEleMotionMagic(double setpoint) - Specified by:
runEleMotionMagicin classElevator
-
stopElevator
public void stopElevator()- Specified by:
stopElevatorin classElevator
-
runWristMotionMagic
protected void runWristMotionMagic(double setpoint) - Specified by:
runWristMotionMagicin classElevator
-
stopWrist
public void stopWrist() -
runIntake
public void runIntake(double speed) -
runShooter
public void runShooter(double speed) - Specified by:
runShooterin classElevator
-
getElevatorHeight
public double getElevatorHeight()- Specified by:
getElevatorHeightin classElevator
-
getWristAngle
public edu.wpi.first.math.geometry.Rotation2d getWristAngle()- Specified by:
getWristAnglein classElevator
-
intakeCoralCmd
public edu.wpi.first.wpilibj2.command.Command intakeCoralCmd()- Specified by:
intakeCoralCmdin classElevator
-
intakeAlgaeCmd
public edu.wpi.first.wpilibj2.command.Command intakeAlgaeCmd()- Specified by:
intakeAlgaeCmdin classElevator
-
intakeCoralSequence
public edu.wpi.first.wpilibj2.command.Command intakeCoralSequence()- Specified by:
intakeCoralSequencein classElevator
-
zeroWrist
public void zeroWrist() -
getCoralStored
public boolean getCoralStored()- Specified by:
getCoralStoredin classElevator
-
getElevatorZeroed
public boolean getElevatorZeroed()- Specified by:
getElevatorZeroedin classElevator
-
atSetpoint
public boolean atSetpoint()- Specified by:
atSetpointin classElevator
-
periodic
public void periodic()
-