Skip to content
This repository was archived by the owner on May 19, 2024. It is now read-only.

Commit d2fdf81

Browse files
committed
fix(swerve): Deadband omega.
1 parent 5815b70 commit d2fdf81

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: simgui-ds.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@
9898
],
9999
"robotJoysticks": [
100100
{
101+
"guid": "78696e70757401000000000000000000",
101102
"useGamepad": true
102103
},
103104
{
104-
"guid": "78696e70757401000000000000000000",
105105
"useGamepad": true
106106
}
107107
]

Diff for: src/main/java/frc/robot/swerve/DriveRequest.java

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public boolean isDrifting() {
9696
}
9797

9898
public Rotation2d omega() {
99+
if (Math.abs(this.rotation().getY()) < 0.1) return new Rotation2d();
100+
99101
return SwerveConstants.MAXIMUM_ROTATION_SPEED.times(this.rotation().getY() * 0.75);
100102
}
101103

0 commit comments

Comments
 (0)