Package frc.robot.subsystems.turret
Class TurretReal
java.lang.Object
frc.robot.subsystems.turret.TurretReal
- All Implemented Interfaces:
TurretIO
turret hardware
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.subsystems.turret.TurretIO
TurretIO.TurretInputs -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidresetPosition(Angle angle) voidsetTargetAngle(Angle angle) 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.
-
Field Details
-
mmVoltage
public final com.ctre.phoenix6.controls.MotionMagicVoltage mmVoltage
-
-
Constructor Details
-
TurretReal
public TurretReal()Real Turret Implementation
-
-
Method Details
-
setTurretVoltage
- Specified by:
setTurretVoltagein interfaceTurretIO
-
updateInputs
Description copied from interface:TurretIOUpdates the providedTurretIO.TurretInputsstructure with the latest sensor values.- Specified by:
updateInputsin interfaceTurretIO
-
setTargetAngle
Description copied from interface:TurretIOCommands the turret to move toward the specified target angle.- Specified by:
setTargetAnglein interfaceTurretIO
-
resetPosition
- Specified by:
resetPositionin interfaceTurretIO
-