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

Inverting one side of the drivetrain #1

Open
Owen-Chiu opened this issue Jan 15, 2022 · 0 comments
Open

Inverting one side of the drivetrain #1

Owen-Chiu opened this issue Jan 15, 2022 · 0 comments
Assignees

Comments

@Owen-Chiu
Copy link

I noticed that in the Auto-Driving branch, line 30 of driveCMD.java is m_dDrivetrain.drivepower(-this.m_OI.getXboxLeftY(), this.m_OI.getXboxRightY());. Similaraly, Line 40 of CrashCMD.java is m_dDriveTrain.drivepower(0.15,-0.15);. Both of these seem to be making one of the powers negative in order to drive the robot straight. Instead of doing this, I would recommend using setInverted on one side of the drivetrain so we can use positive powers everywhere.

See the Major Changes section of the WPILib 2022 docs for a quick explanation

@Adrianamm @Copperplate-1 @nicolelopez004 @lexm2

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

No branches or pull requests

5 participants