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

Ability to move while aiming at the target #45

Open
varun7654 opened this issue Apr 11, 2021 · 0 comments
Open

Ability to move while aiming at the target #45

varun7654 opened this issue Apr 11, 2021 · 0 comments
Assignees
Labels
2021 robot enhancement New feature or request help wanted Extra attention is needed

Comments

@varun7654
Copy link
Contributor

Make a new method in the drive class that will take the movement from the controller and then adds a rotation to aim the robot.

  1. You will need to construct a ChassisSpeed (use field relative one) object that will be passed to the swerveDrive method.
  2. Your method should use a PID controller to aim the robot. The output should be put into the omegaRadiansPerSecond value in the ChassisSpeeds method. (Look at the updateTurn method to figure out how to use PID)
  3. The controller inputs should be passed for the vx and vy values.
@varun7654 varun7654 added 2021 robot enhancement New feature or request help wanted Extra attention is needed labels Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2021 robot enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants