big refactor of command/commandbase/commandgroup. also add auton read from file.
[ozzloy@gmail.com/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / DriveWithJoysticks.java
index 980214781095e3710b79dcb625ada930be0c2a3a..cf5446ad825a7fa3307e632d7243ec45759fcc7d 100644 (file)
@@ -1,6 +1,6 @@
 package org.usfirst.frc.team3501.robot.commands;
 
-public class DriveWithJoysticks extends CommandBase {
+public class DriveWithJoysticks extends Command {
 
     public DriveWithJoysticks() {
         super("DriveWithJoysticks");
@@ -11,6 +11,7 @@ public class DriveWithJoysticks extends CommandBase {
         double forward = oi.getForwardR();
         double twist   = oi.getTwistR();
 
+        // option to lock twist for alignment
         if (oi.getRightPressed(3, 4, 5, 6))
             twist = 0;