mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[examples] Invert Right Motor in Romi Java examples (#3828)
This commit is contained in:
@@ -32,6 +32,9 @@ public class RomiDrivetrain extends SubsystemBase {
|
||||
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);
|
||||
}
|
||||
|
||||
public void arcadeDrive(double xaxisSpeed, double zaxisRotate) {
|
||||
|
||||
@@ -31,6 +31,9 @@ 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);
|
||||
}
|
||||
|
||||
public void arcadeDrive(double xaxisSpeed, double zaxisRotate) {
|
||||
|
||||
Reference in New Issue
Block a user