Team-OKC-Robotics / FRC-2023

The FRC team #2718 Team OKC Robotics code for the 2023 season
Other
2 stars 0 forks source link

Feat/field oriented drive #57

Closed danielbrownmsm closed 1 year ago

danielbrownmsm commented 1 year ago

Makes the teleop swerve drive code be field-oriented for a better driving experience. First driver has tested it and says it is a definite improvement. I've tested it and it works, although we haven't taken any hits yet. Could use some tuning

danielbrownmsm commented 1 year ago

Also note we fixed the cosine error limit thing (although I'm not really sure how well it works) and temporarily disabled inverting the wheels whenever error >100 degrees for testing, need to add that back in