Team612 / 612-2017

Chantilly Robotics Team 612 robot code repository for 2017 game FIRST Steamworks
GNU General Public License v3.0
4 stars 4 forks source link

Set Distance Per Pulse for drivetrain encoders #45

Closed Jeffrey-Wang closed 7 years ago

Jeffrey-Wang commented 7 years ago

Drivetrain now uses SetDistancePerPulse(dist) on its encoders in Drivetrain::Init(). This is needed for command DriveDistance() to function properly.

Jeffrey-Wang commented 7 years ago

image

Line 68 is pretty straightforward, just finding the circumference of the wheel. 2pir = pidiameter Line 69 and 70 are accounted for in the picture.