Team-OKC-Robotics / FRC-2023

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

Field Oriented Drive #53

Closed jkleiber closed 1 year ago

jkleiber commented 1 year ago

Summary The whole point of swerve is to use field oriented driving, so we should do that

This should be as simple as rotating the wheels based on the robot's current heading from the navX. However, it may get a little tricky given the idea that we shouldn't rotate our wheels more than 90 degrees. Ultimately, we want to apply the driver command in the field's reference frame rather than relative to the robot

Work to do