RobotCasserole1736 / RobotCasserole2022

RobotCasserole team 1736 Rapid React 2022 software
MIT License
4 stars 2 forks source link

Add basic "drive forward" trajectory for Autonomous #21

Closed gerth2 closed 2 years ago

gerth2 commented 2 years ago

Add a new auto mode for "drive forward"

Create this trajectory using PathWeaver - it will produce a .json file describing the points of the path. Save the project to the repo with appropriate gitignore's as needed. Set up the project to generate .json files to an appropriate folder.

Add logic in build.gradle to ensure the .json's get copied to the deploy folder.

Add a single auto event for following a trajectory which drives the robot forward by five feet. This should be done by using our .json path loader class, and just loading in the deployed .json

Add logic within the json path loader class to pass setpoints to the drivetrain at each step of the trajectory

https://docs.wpilib.org/en/stable/docs/software/advanced-controls/trajectories/index.html has more info about trajectories in general

https://docs.wpilib.org/en/stable/docs/software/pathplanning/pathweaver/introduction.html has more info on pathweaver

gerth2 commented 2 years ago

This will lay the groundwork for more complex or generated autonomous paths

gerth2 commented 2 years ago

Instead of pathweaver - https://github.com/mjansen4857/pathplanner some folks recommended we might wanna look into this tool. Maybe take a peek at it too?