add constants and sequentials for position 1: low bar
authorMeryem Esa <meresa14@gmail.com>
Thu, 11 Feb 2016 02:57:48 +0000 (18:57 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Tue, 16 Feb 2016 19:37:02 +0000 (11:37 -0800)
src/org/usfirst/frc/team3501/robot/commands/AlignToScore.java

index 0c27e908a6f77d420933faf60e7257532330d53b..5a137ace5e4319ff369bda5193f7719bfefdf77f 100755 (executable)
@@ -14,13 +14,31 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
  *
  */
 public class AlignToScore extends CommandGroup {
+  private final double DEFAULT_SPEED = 0.5;
+  // constants for position 1: low bar
+
+  private final double POS1_DIST1 = 0;
+  private final double POS1_TURN1 = 0;
+  private final double POS1_DIST2 = 0;
+
+  // constants for position 2
+
+  // constants for position 3
+
+  // constants for position 4
+
+  // constants for position 5
 
   public AlignToScore(int position) {
 
     switch (position) {
+
+    // position 1 is always the low bar
     case 1:
 
-      addSequential();
+      addSequential(new DriveForDistance(POS1_DIST1, DEFAULT_SPEED));
+      addSequential(new TurnForAngle(POS1_TURN1));
+      addSequential(new DriveForDistance(POS1_DIST2, DEFAULT_SPEED));
 
     case 2: