Package frc.robot.subsystems.shooter
Class TargetingState
java.lang.Object
frc.robot.subsystems.shooter.TargetingState
Computes desired shooting parameters from robot state.
-
Constructor Summary
ConstructorsConstructorDescriptionTargetingState(Supplier<Pose2d> poseSource, Supplier<ChassisSpeeds> speedSource, DoubleSupplier flywheelSource) constructor for targeting state -
Method Summary
-
Constructor Details
-
TargetingState
public TargetingState(Supplier<Pose2d> poseSource, Supplier<ChassisSpeeds> speedSource, DoubleSupplier flywheelSource) constructor for targeting state- Parameters:
poseSource- pose supplierspeedSource- bot chassis speeds supplierflywheelSource- flywheel velocity supplier
-
-
Method Details
-
setTrims
public void setTrims(double trimUp, double trimLeft) -
incTrims
public void incTrims(double incUp, double incLeft) -
getTrimUp
public double getTrimUp() -
getTrimLeft
public double getTrimLeft() -
updateTargeting
public void updateTargeting()Recompute targeting solution. Call once per loop. -
getDesiredFlywheelSpeed
public double getDesiredFlywheelSpeed() -
getDesiredHoodAngle
public double getDesiredHoodAngle() -
isOkayToShoot
public boolean isOkayToShoot() -
getDesiredTurretHeadingFieldRelative
-