Package frc.robot.subsystems.shooter
Class ShooterKinematics
java.lang.Object
frc.robot.subsystems.shooter.ShooterKinematics
Calculates optimal shooter settings based on the distance to the target.
Uses InterpolatingDoubleTreeMap to interpolate between known good shooter states
(flywheel speed and hood angle) for specific distances, ensuring smooth transitions as the robot
moves.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Shooter.ShooterStatecalculateShooterState(Distance distanceToTarget) Calculates the optimalShooter.ShooterStatefor a given distance to the target.
-
Constructor Details
-
ShooterKinematics
public ShooterKinematics()
-
-
Method Details
-
calculateShooterState
Calculates the optimalShooter.ShooterStatefor a given distance to the target.- Parameters:
distanceToTarget- The distance from the shooter to the target.- Returns:
- The calculated ShooterState containing target flywheel speed and hood angle.
-