Skip to content
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

Correct swerve configuration #53

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Correct swerve configuration #53

merged 1 commit into from
Aug 2, 2024

Conversation

rutmanz
Copy link
Member

@rutmanz rutmanz commented Aug 1, 2024

No description provided.

@rutmanz rutmanz requested a review from a team as a code owner August 1, 2024 22:48
Copy link
Member

@mimizh2418 mimizh2418 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +60 to +77
switch (corner) {
case FRONT_LEFT:
invertTurn = false;
invertDrive = false;
break;
case FRONT_RIGHT:
invertTurn = true;
invertDrive = false;
break;
case BACK_LEFT:
invertTurn = true;
invertDrive = false;
break;
case BACK_RIGHT:
invertTurn = false;
invertDrive = true;
break;
}
Copy link
Member

Choose a reason for hiding this comment

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

ew.

Copy link
Member Author

Choose a reason for hiding this comment

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

would you prefer I use a hashmap

@mimizh2418
Copy link
Member

We should also look into updating the PIDF constants for the krakens

@rutmanz rutmanz merged commit 78f1e1a into main Aug 2, 2024
1 check passed
mimizh2418 added a commit that referenced this pull request Sep 23, 2024
* feat: update swerve config for krakens and adjusted inversion (#53)

* fix: dio ports

* feat: use new beam breaks

* feat: updated drivetrain constants

---------

Co-authored-by: Zach Rutman <zarutman+git@gmail.com>
Co-authored-by: Simon Weil <113215817+WeilSimon@users.noreply.github.com>
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.

2 participants