Skip to content

Commit ca31989

Browse files
committed
update hatchbot drive
1 parent beea8b9 commit ca31989

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

HatchbotTraditional/subsystems/drivesubsystem.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ def __init__(self) -> None:
2020
self.right1 = wpilib.PWMVictorSPX(constants.kRightMotor1Port)
2121
self.right2 = wpilib.PWMVictorSPX(constants.kRightMotor2Port)
2222

23+
self.left1.addFollower(self.left2)
24+
self.right1.addFollower(self.right2)
25+
2326
# The robot's drive
2427
self.drive = wpilib.drive.DifferentialDrive(
25-
wpilib.MotorControllerGroup(self.left1, self.left2),
26-
wpilib.MotorControllerGroup(self.right1, self.right2),
28+
self.left1,
29+
self.right1,
2730
)
2831

2932
# The left-side drive encoder

0 commit comments

Comments
 (0)