mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
Fix offset model
This commit is contained in:
@@ -254,20 +254,21 @@ public class RobotContainer {
|
||||
|
||||
// IF the driver is holding the aim button, aim the robot towards the hub and shooter ready
|
||||
new Trigger(() -> getDeadbandedDriverController().getRightTriggerAxis() >= 0.5)
|
||||
.whileTrue(new RunCommand(() -> m_robotSwerveDrive.driveFacingPosition(
|
||||
getDeadbandedDriverController().getLeft(),
|
||||
FieldPositions.HUB_POSITION,
|
||||
ShooterConstants.AIM_LEAD_TIME.get()
|
||||
), m_robotSwerveDrive)
|
||||
// () -> {
|
||||
// m_robotSwerveDrive.driveFacingVelocity(
|
||||
// getDeadbandedDriverController().getLeft(),
|
||||
.whileTrue(new RunCommand(
|
||||
// () -> m_robotSwerveDrive.driveFacingPosition(
|
||||
// getDeadbandedDriverController().getLeft(),
|
||||
// FieldPositions.HUB_POSITION,
|
||||
// ShooterConstants.AIM_LEAD_TIME.get(),
|
||||
// m_robotShooter.getBallVelocity(),
|
||||
// m_robotShooter.getDistanceToHub()
|
||||
// );
|
||||
// }, m_robotSwerveDrive)
|
||||
// ShooterConstants.AIM_LEAD_TIME.get()
|
||||
// ), m_robotSwerveDrive)
|
||||
() -> {
|
||||
m_robotSwerveDrive.driveFacingVelocity(
|
||||
getDeadbandedDriverController().getLeft(),
|
||||
FieldPositions.HUB_POSITION,
|
||||
ShooterConstants.AIM_LEAD_TIME.get(),
|
||||
m_robotShooter.getBallVelocity(),
|
||||
m_robotShooter.getDistanceToHub()
|
||||
);
|
||||
}, m_robotSwerveDrive)
|
||||
);
|
||||
|
||||
// D-PAD fine alignment
|
||||
|
||||
Reference in New Issue
Block a user