Package frc.robot.subsystems.turret
Interface TurretIO
- All Known Implementing Classes:
TurretReal,TurretSim
public interface TurretIO
Hardware abstraction layer for the turret subsystem.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classContainer for all turret sensor inputs. -
Method Summary
Modifier and TypeMethodDescriptionvoidresetPosition(Angle angle) voidsetPID(PIDConstants constants) voidsetTargetAngle(Angle angle, AngularVelocity velocity) Commands the turret to move toward the specified target angle.voidsetTurretVoltage(Voltage volts) voidupdateInputs(TurretIO.TurretInputs inputs) Updates the providedTurretIO.TurretInputsstructure with the latest sensor values.
-
Method Details
-
setTurretVoltage
-
updateInputs
Updates the providedTurretIO.TurretInputsstructure with the latest sensor values. -
setTargetAngle
Commands the turret to move toward the specified target angle. -
resetPosition
-
setPID
-