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

NOTE vision #15

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

NOTE vision #15

wants to merge 6 commits into from

Conversation

Alextopher
Copy link
Member

No description provided.

Copy link
Member Author

@Alextopher Alextopher left a comment

Choose a reason for hiding this comment

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

src/main/java/frc/robot/subsystems/SwerveSubsystem.java Outdated Show resolved Hide resolved

return yaw;
} else {
return 360;
Copy link
Member Author

@Alextopher Alextopher May 15, 2024

Choose a reason for hiding this comment

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

I don't feel good about 360 here. Are you sure this function is returning degrees or radians? Just to be safe I would return 0.

@Alextopher
Copy link
Member Author

My biggest concerns is we should look at the units of all of the angles being used here. Using Rotation2d everywhere would be safer in that sense.

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