diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-20 16:33:00 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-20 16:33:00 -0500 |
commit | 51061e1fe24e759f5931f721bf4faf194cc26b2d (patch) | |
tree | 382a79fe23d466e144007c26214e3e6adb1f2366 | |
parent | 02934ebd8a7a94704602f7b30862bd399f69c7a5 (diff) |
calibrate encoders
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2016/HwRobot.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2016/HwRobot.java b/src/org/usfirst/frc/team4272/robot2016/HwRobot.java index 8f2515e..54265a1 100644 --- a/src/org/usfirst/frc/team4272/robot2016/HwRobot.java +++ b/src/org/usfirst/frc/team4272/robot2016/HwRobot.java @@ -51,6 +51,9 @@ public class HwRobot { public Solenoid PCM4 = new Solenoid(7); public HwRobot() { + lDriveE.setDistancePerPulse(10.0/*feet*/ / 1865.75/*pulses*/); + rDriveE.setDistancePerPulse(10.0/*feet*/ / 1865.75/*pulses*/); + lDriveE.setPIDSourceType(PIDSourceType.kRate); rDriveE.setPIDSourceType(PIDSourceType.kRate); //PDP.initTable(NetworkTable.getTable("PDP")); |