Package frc.robot.Subsystems.Elevator
Class ElevatorRealIO
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.Subsystems.Elevator.Elevator
frc.robot.Subsystems.Elevator.ElevatorRealIO
- 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
FieldsModifier and TypeFieldDescriptionprotected com.ctre.phoenix6.hardware.TalonFXprotected com.ctre.phoenix6.hardware.TalonFXFields inherited from class frc.robot.Subsystems.Elevator.Elevator
instance, m_current_state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidchangeWristSetpoint(double rate) booleandoublebooleanList<com.ctre.phoenix6.hardware.TalonFX>edu.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
-
Field Details
-
ele_motor
protected com.ctre.phoenix6.hardware.TalonFX ele_motor -
wrist_motor
protected com.ctre.phoenix6.hardware.TalonFX wrist_motor
-
-
Constructor Details
-
ElevatorRealIO
protected ElevatorRealIO()
-
-
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() -
changeWristSetpoint
public void changeWristSetpoint(double rate) -
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
-
zeroWrist
public void zeroWrist() -
atSetpoint
public boolean atSetpoint()- Specified by:
atSetpointin classElevator
-
intakeCoralCmd
public edu.wpi.first.wpilibj2.command.Command intakeCoralCmd()- Specified by:
intakeCoralCmdin classElevator
-
intakeCoralSequence
public edu.wpi.first.wpilibj2.command.Command intakeCoralSequence()- Specified by:
intakeCoralSequencein classElevator
-
intakeAlgaeCmd
public edu.wpi.first.wpilibj2.command.Command intakeAlgaeCmd()- Specified by:
intakeAlgaeCmdin classElevator
-
getTalons
-
getCoralStored
public boolean getCoralStored()- Specified by:
getCoralStoredin classElevator
-
getElevatorZeroed
public boolean getElevatorZeroed()- Specified by:
getElevatorZeroedin classElevator
-
periodic
public void periodic()
-