mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[templates] romieducational: Invert drivetrain and disable motor safety (#3869)
This commit is contained in:
@@ -31,6 +31,12 @@ public class RomiDrivetrain {
|
||||
m_leftEncoder.setDistancePerPulse((Math.PI * kWheelDiameterInch) / kCountsPerRevolution);
|
||||
m_rightEncoder.setDistancePerPulse((Math.PI * kWheelDiameterInch) / kCountsPerRevolution);
|
||||
resetEncoders();
|
||||
|
||||
// Invert right side since motor is flipped
|
||||
m_rightMotor.setInverted(true);
|
||||
|
||||
// Disable motor safety
|
||||
m_diffDrive.setSafetyEnabled(false);
|
||||
}
|
||||
|
||||
public void arcadeDrive(double xaxisSpeed, double zaxisRotate) {
|
||||
|
||||
Reference in New Issue
Block a user