From: Meryem Esa Date: Sat, 14 Jan 2017 19:24:45 +0000 (-0800) Subject: add comments and parameters for DriveDistance command X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=9b9d6bed9e6e6d0ef16d34d692bc93d3ae9be197 add comments and parameters for DriveDistance command --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java index ecf27f5..becaa3a 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java @@ -2,14 +2,21 @@ package org.usfirst.frc.team3501.robot.commands.driving; import org.usfirst.frc.team3501.robot.Robot; +import edu.wpi.first.wpilibj.Relay.Direction; import edu.wpi.first.wpilibj.command.Command; /** + * This command turns the robot for a specified angle in specified direction - + * either left or right + * + * parameters: + * angle the robot will turn - in degrees + * direction the robot will turn - either right or left * */ public class TurnForAngle extends Command { - public TurnForAngle() { + public TurnForAngle(double angle, Direction direction) { requires(Robot.getDriveTrain()); }