Skip to content

Conversation

@BenBerol
Copy link
Contributor

No description provided.

@MyaTaheri MyaTaheri requested a review from ArchdukeTim March 21, 2024 19:14
SwerveModuleState[] moduleStates = kinematics.toSwerveModuleStates(speeds);
ChassisSpeeds newSpeeds = speeds;
if (robotContainer.getAuto()) {
newSpeeds = speeds.minus(new ChassisSpeeds(speeds.vxMetersPerSecond*2, 0, 0));
Copy link
Member

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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants