From: Eric Sandoval Date: Sat, 4 Feb 2017 21:41:04 +0000 (-0800) Subject: update code X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=1479f285832099cf44de840cde1cb51e7508577e update code --- diff --git a/src/org/usfirst/frc/team3501/robot/Robot.java b/src/org/usfirst/frc/team3501/robot/Robot.java index 6dd5950..8829ed1 100644 --- a/src/org/usfirst/frc/team3501/robot/Robot.java +++ b/src/org/usfirst/frc/team3501/robot/Robot.java @@ -79,6 +79,7 @@ public class Robot extends IterativeRobot { driveTrain.getDriveController().setConstants(driveP, driveI, driveD); driveTrain.getGyroController().setConstants(gyroP, gyroI, gyroD); + } @Override diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index 40227f6..725dd35 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -16,7 +16,9 @@ import edu.wpi.first.wpilibj.command.Subsystem; public class DriveTrain extends Subsystem { public static double driveP, driveI, driveD; + public static double turnP, turnI, turnD; + public static double driveStraightGyroP = 0.01; public static final double WHEEL_DIAMETER = 6; // inches