fix misc. comments
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / AlignToScore.java
index 97b8ad2cf541d52f7a25c9295d278cac5c1e829e..d51445670c6329931046a02b717ff8b1f3bc12e6 100755 (executable)
@@ -6,7 +6,14 @@ 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 +106,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();