Class ShooterSim
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.stuypulse.robot.subsystems.shooter.Shooter
com.stuypulse.robot.subsystems.shooter.ShooterSim
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stuypulse.robot.subsystems.shooter.Shooter
Shooter.ShooterState -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.ctre.phoenix6.controls.VelocityTorqueCurrentFOCprivate final com.ctre.phoenix6.controls.Followerprivate final TalonFXSimulationprivate final TalonFXSimulationprivate final TalonFXSimulationprivate final edu.wpi.first.wpilibj.simulation.FlywheelSimprivate Optional<edu.wpi.first.units.measure.Voltage> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.units.measure.AngularVelocityprivate com.ctre.phoenix6.controls.ControlRequestedu.wpi.first.wpilibj2.command.sysid.SysIdRoutinevoidperiodic()voidsetVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) protected voidMethods inherited from class com.stuypulse.robot.subsystems.shooter.Shooter
addToBonusVelocity, getInstance, getState, logMotor, resetBonusVelocity, setState, shooterSpunUpMethods 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, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
shooterSim
-
shooterMotorLeft
-
shooterMotorCenter
-
shooterMotorRight
-
shooterController
-
shooterFollowerController
-
voltageOverride
-
-
Constructor Details
-
ShooterSim
public ShooterSim()
-
-
Method Details
-
getCurrentAngularVelocity
- Specified by:
getCurrentAngularVelocityin classShooter
-
stopMotors
- Specified by:
stopMotorsin classShooter
-
setVoltageOverride
- Specified by:
setVoltageOverridein classShooter
-
getShooterControl
-
periodic
-
getShooterSysIdRoutine
- Specified by:
getShooterSysIdRoutinein classShooter
-