From: Meryem Esa Date: Thu, 11 Feb 2016 04:09:11 +0000 (-0800) Subject: add more comments explaining AlignToScore command group X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=10ca638d3b42e973915400bee493a6ffb237e6b5 add more comments explaining AlignToScore command group --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/AlignToScore.java b/src/org/usfirst/frc/team3501/robot/commands/AlignToScore.java index 97b8ad2c..69da96f5 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/AlignToScore.java +++ b/src/org/usfirst/frc/team3501/robot/commands/AlignToScore.java @@ -6,7 +6,11 @@ import edu.wpi.first.wpilibj.command.CommandGroup; /** * This command group will be used in autonomous. Based on what position the - * robot is in, the robot will align with the goal + * robot is in, the robot will align with the goal. In the Software 2015-2016 + * Google folder is a picture explaining each of the cases. + * + * dependency on sensors: lidars, encoders, gyro dependency on subsystems: + * drivetrain dependency on other commands: TurnForAngle(), DriveForDistance() * * pre-condition: robot is flush against a defense at the specified position in * the opponent's courtyard @@ -99,7 +103,7 @@ public class AlignToScore extends CommandGroup { } } - public static double calculatePath(int position, + public static double calculateAngleToTurn(int position, double horizontalDistToGoal) { double leftDist = Robot.driveTrain.getLeftLidarDistance(); double rightDist = Robot.driveTrain.getRightLidarDistance();