Skip to content

Commit a4f5107

Browse files
committed
removed redundant comment and whitespace missed
1 parent d4bd21c commit a4f5107

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

DifferentialDriveBot/drivetrain.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ def __init__(self):
5454

5555
self.gyro.reset()
5656

57-
# We need to invert one side of the drivetrain so that positive voltages
58-
# result in both sides moving forward. Depending on how your robot's
59-
# gearbox is constructed, you might have to invert the left side instead.
60-
6157
# Set the distance per pulse for the drive encoders. We can simply use the
6258
# distance traveled for one rotation of the wheel divided by the encoder
6359
# resolution.
@@ -93,7 +89,6 @@ def setSpeeds(self, speeds: wpimath.kinematics.DifferentialDriveWheelSpeeds):
9389
self.leftLeader.setVoltage(leftOutput + leftFeedforward)
9490
self.rightLeader.setVoltage(rightOutput + rightFeedforward)
9591

96-
9792
def drive(self, xSpeed, rot):
9893
"""Drives the robot with the given linear velocity and angular velocity."""
9994
wheelSpeeds = self.kinematics.toWheelSpeeds(

0 commit comments

Comments
 (0)