We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beea8b9 commit ca31989Copy full SHA for ca31989
HatchbotTraditional/subsystems/drivesubsystem.py
@@ -20,10 +20,13 @@ def __init__(self) -> None:
20
self.right1 = wpilib.PWMVictorSPX(constants.kRightMotor1Port)
21
self.right2 = wpilib.PWMVictorSPX(constants.kRightMotor2Port)
22
23
+ self.left1.addFollower(self.left2)
24
+ self.right1.addFollower(self.right2)
25
+
26
# The robot's drive
27
self.drive = wpilib.drive.DifferentialDrive(
- wpilib.MotorControllerGroup(self.left1, self.left2),
- wpilib.MotorControllerGroup(self.right1, self.right2),
28
+ self.left1,
29
+ self.right1,
30
)
31
32
# The left-side drive encoder
0 commit comments