Skip to content

Commit

Permalink
Fix half stow override and force TeleopDriveController max velocity t…
Browse files Browse the repository at this point in the history
…o 1 when not in demo mode
  • Loading branch information
harnwalN committed Jun 13, 2024
1 parent b3610a7 commit 529c9c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ private void configureButtonBindings(boolean demo) {
TeleopDriveController.setVelocityScalar(demoSpeedChooser.get());
previousDemoSpeed.value = demoSpeedChooser.get();
}));
} else {
TeleopDriveController.setVelocityScalar(1.0);
}

// ------------- Driver Controls -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void setOverrides(
private double getStowAngle() {
if (DriverStation.isTeleopEnabled()
&& RobotState.getInstance().inCloseShootingZone()
&& halfStowSupplier.getAsBoolean()) {
&& !halfStowSupplier.getAsBoolean()) {
return MathUtil.clamp(
setpointState.position,
minAngle.getRadians(),
Expand Down

0 comments on commit 529c9c6

Please sign in to comment.