-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update auto pathing to work #21
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 68d9da6.
SwerveModuleState[] moduleStates = kinematics.toSwerveModuleStates(speeds); | ||
ChassisSpeeds newSpeeds = speeds; | ||
if (robotContainer.getAuto()) { | ||
newSpeeds = speeds.minus(new ChassisSpeeds(speeds.vxMetersPerSecond*2, 0, 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of this? This will drive it in reverse? (vx - 2*vx = -vx)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this was my janky solution to reverse auto on only one axis 😅 And thanks for the command I wasnt sure how to do that
No description provided.