You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 ism_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 usingsetInverted
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
The text was updated successfully, but these errors were encountered: