Class HoodIOServo
java.lang.Object
frc.robot.subsystems.shooter.hood.HoodIOServo
- All Implemented Interfaces:
HoodIO
Real IO implementation for the shooter hood using a PWM servo.
This implementation maps the desired hood length to a servo position, and models the servo's
movement in updateInputs(HoodIOInputs) to provide realistic feedback for simulation and
logging.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.subsystems.shooter.hood.HoodIO
HoodIO.HoodIOInputs -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new HoodIOServo and configures the servo PWM bounds. -
Method Summary
Modifier and TypeMethodDescriptionvoidCommands the servo to a specific position corresponding to a desired hood length.voidupdateInputs(HoodIO.HoodIOInputs inputs) Updates inputs by modeling the servo movement over time.
-
Constructor Details
-
HoodIOServo
public HoodIOServo()Creates a new HoodIOServo and configures the servo PWM bounds.
-
-
Method Details
-
updateInputs
Updates inputs by modeling the servo movement over time.- Specified by:
updateInputsin interfaceHoodIO- Parameters:
inputs- The inputs object to update.
-
setLength
Commands the servo to a specific position corresponding to a desired hood length.
-