Merge branch 'autonPassDefenseCommandGroups' of challenge-bot.com:repos/3501/strongho...
authorCindy Zhang <cindyzyx9@gmail.com>
Fri, 12 Feb 2016 03:56:55 +0000 (19:56 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Fri, 12 Feb 2016 03:56:55 +0000 (19:56 -0800)
src/org/usfirst/frc/team3501/robot/commands/AlignToScore.java
src/org/usfirst/frc/team3501/robot/commands/DriveForTime.java
src/org/usfirst/frc/team3501/robot/commands/PassLowBar.java
src/org/usfirst/frc/team3501/robot/commands/PassMoat.java
src/org/usfirst/frc/team3501/robot/commands/PassRampart.java
src/org/usfirst/frc/team3501/robot/commands/PassRockWall.java
src/org/usfirst/frc/team3501/robot/commands/PassRoughTerrain.java

index 69da96f594dc2d6b61c860bd309fe1bca0d9e183..d51445670c6329931046a02b717ff8b1f3bc12e6 100755 (executable)
@@ -9,8 +9,11 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
  * 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()
+ * 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
index c44590af9252fa629476a28b7a8c7c8a9a0bbaf1..004b912e90caa0e37c1e464c6c8110130d9dd5c5 100755 (executable)
@@ -6,7 +6,15 @@ import edu.wpi.first.wpilibj.Timer;
 import edu.wpi.first.wpilibj.command.Command;\r
 \r
 /**\r
- * This command\r
+ * This command drives the robot for the specified time and specified speed. (If\r
+ * a speed is not specified, a default speed is used\r
+ *\r
+ *\r
+ * dependency on subsystems: drivetrain\r
+ *\r
+ * pre-condition: robot is on\r
+ *\r
+ * post condition: robot has driven for the specified amount of time\r
  */\r
 public class DriveForTime extends Command {\r
 \r
index fe7020425e2d15a8e41edda3dfa5034abf6c5659..3ab8ea024892e0301f4aae0c9005a85968945a3c 100755 (executable)
@@ -5,6 +5,10 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 /***
  * This command will drive the robot through the low bar.
  *
+ * dependency on sensors: encoders
+ * dependency on subsystems: drivetrain
+ * dependency on other commands: DriveForDist
+ * 
  * pre-condition: robot is flush against the ramp of the outerworks in front of
  * the low bar
  *
index 13c490a7d462f23679f425981cd0ee3a150d0a09..b54508f4109a4e2cb7098bb2087677f1e62c803e 100755 (executable)
@@ -10,6 +10,8 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
  *
  * dependency on subsystem: drivetrain
  *
+ * dependency on other commands: DriveForTime
+ *
  * pre-condition: robot is flush against the ramp of the outerworks in front of
  * the moat
  *
index 424f922627d4901d416fe75b31a10e36351853a4..431ba9a16c0a7b52a54fd0954f64cef382386610 100755 (executable)
@@ -5,6 +5,10 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 /***
  * This command will drive the robot through the rampart.
  *
+ * dependency on subsystems: drivetrain
+ *
+ * dependency on other commands: DriveForTime
+ *
  * pre-condition: robot is flush against the ramp of the outerworks in front of
  * the rampart
  *
index 4250e534e314efbb8212f52d6e198414dd4e82c6..9e1eb2eb072592227a5f1a2704eba641887bd157 100755 (executable)
@@ -5,6 +5,10 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 /***
  * This command will drive the robot through the rock wall.
  *
+ * dependency on subsystems: drivetrain
+ *
+ * dependency on other commands: DriveForTime
+ *
  * pre-condition: robot is flush against the ramp of the outerworks in front of
  * the rock wall
  *
@@ -14,9 +18,6 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
  *
  */
 
-/**
- *
- */
 public class PassRockWall extends CommandGroup {
 
   private final double BEG_TIME = 0;
index 1d5d401dd33f17e608d2411ca8f328f71fa20e7a..1f21dfd35789894f223b823d3e320263d10744b5 100755 (executable)
@@ -5,6 +5,10 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 /***
  * This command will drive the robot through the rough terrain.
  *
+ * dependency on subsytems: drivetrain
+ *
+ * dependency on other commands: DriveForTime
+ *
  * pre-condition: robot is flush against the ramp of the outerworks in front of
  * the rough terrain
  *