Skip to content

Conversation

hava709
Copy link
Contributor

@hava709 hava709 commented Feb 17, 2025

No description provided.

@hava709 hava709 requested a review from billknopfjr February 17, 2025 17:14
@billknopfjr
Copy link
Contributor

Vihaan - the code needs to be changed so the inverted is integrated with the existing calls to drive, not added to the existing methods

For example, try the following instead ...
invertedCoeff = Robot.pigeon.get360Heading() > 90 && Robot.pigeon.get360Heading() < 270) ? -1 : 1;

Robot.swerveDrive.drive( invertedCoeff * 0.2, 0, 0.0 );

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.

3 participants