From: Michael Wang Date: Sat, 4 Feb 2017 23:22:39 +0000 (-0800) Subject: add Setpoint and Speed values to Robot.java X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=664dae74167a27b57577bbf371a0af41fdbedf2e add Setpoint and Speed values to Robot.java --- diff --git a/src/org/usfirst/frc/team3501/robot/Robot.java b/src/org/usfirst/frc/team3501/robot/Robot.java index c24279b..cde55dc 100644 --- a/src/org/usfirst/frc/team3501/robot/Robot.java +++ b/src/org/usfirst/frc/team3501/robot/Robot.java @@ -76,6 +76,11 @@ public class Robot extends IterativeRobot { driveD); // new DriveDistance(SETPOINT, SPEED).start(); + double Setpoint = SmartDashboard.getNumber( + Constants.DriveTrain.DRIVE_TARGET_DIST, Constants.DriveTrain.PID_ERROR); + double Speed = SmartDashboard.getNumber( + Constants.DriveTrain.DRIVE_MOTOR_VAL, Constants.DriveTrain.PID_ERROR); + } @Override