Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
slight auto change and robot oriented amp
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSkylake committed Mar 30, 2024
1 parent 37cf62e commit 070bbc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/deploy/pathplanner/paths/source get podium.path
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
},
{
"anchor": {
"x": 2.5202357965343594,
"y": 4.075371117931965
"x": 2.5670791427174855,
"y": 4.098792791023527
},
"prevControl": {
"x": 1.5202357965343594,
"y": 4.075371117931965
"x": 1.5670791427174855,
"y": 4.098792791023527
},
"nextControl": null,
"isLocked": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void execute() {
* SwerveDrive.kMaxAngularSpeedRadiansPerSecond;
}

var sign = fieldRelative || RobotContainer.arm.isAtState(ArmState.kAmp) ? 1 : -1;
var sign = fieldRelative || RobotContainer.arm.rotationSetpoint == ArmState.kAmp.rotations ? 1 : -1;
RobotContainer.swerveDrive.drive(-xSpeed*sign, -ySpeed*sign, rot, fieldRelative);
}

Expand Down

0 comments on commit 070bbc0

Please sign in to comment.