diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-03-12 12:08:01 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-03-12 12:08:01 -0400 |
commit | 680a2292554f18f287859a5045e2921cb354ec44 (patch) | |
tree | 73d5a0c923f0fa9e3367d0a7aa2918226598d378 /src/org/usfirst/frc/team4272/robot2017/HwRobot.java | |
parent | 0018460337ece50b16263bdd62311e8cda11dbd2 (diff) |
move the axleWidth constant from Autonomous to HwRobot.
Diffstat (limited to 'src/org/usfirst/frc/team4272/robot2017/HwRobot.java')
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2017/HwRobot.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2017/HwRobot.java b/src/org/usfirst/frc/team4272/robot2017/HwRobot.java index a72ae44..23d98b3 100644 --- a/src/org/usfirst/frc/team4272/robot2017/HwRobot.java +++ b/src/org/usfirst/frc/team4272/robot2017/HwRobot.java @@ -80,9 +80,8 @@ public class HwRobot { public DoubleSolenoid shifter = new DoubleSolenoid(/*PCM*/4, /*PCM*/5), ged = new DoubleSolenoid(/*PCM*/6, /*PCM*/7); - - private double maxRate = 0; - private double minBatt = 20; + + public final double axleWidth = 2.0; // in feet public HwRobot() { lDriveE.setDistancePerPulse(10.0/*feet*/ / 1865.75/*pulses*/); @@ -96,6 +95,9 @@ public class HwRobot { rRate = new RollingAvg(5, rDriveE); } + private double maxRate = 0; + private double minBatt = 20; + public void run(Control c) { lDriveM.pidWrite(c.lDrive); rDriveM.pidWrite(-c.rDrive); |