Advertisement
Guest User

Untitled

a guest
Feb 17th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package org.usfirst.frc.team7024.robot.commands;
  2.  
  3. import edu.wpi.first.wpilibj.command.Command;
  4. import edu.wpi.first.wpilibj.command.CommandGroup;
  5. import org.usfirst.frc.team7024.robot.Robot;
  6.  
  7. import edu.wpi.first.wpilibj.DriverStation;
  8.  
  9.  
  10. /**
  11.  * Drive over the auto line and drop power cube in either the switch or scale
  12.  */
  13.  
  14. public class Test extends CommandGroup {
  15.     public Test() {
  16.        
  17.         addSequential(new DriveStraight());
  18.        
  19.         /*
  20.         String gameData;
  21.         gameData = DriverStation.getInstance().getGameSpecificMessage();
  22.         boolean switchLeft = gameData.charAt(0) =='L';
  23.         boolean scaleLeft = gameData.charAt(1) == 'L';
  24.         boolean switchRight = gameData.charAt(0) == 'R';
  25.         boolean scaleRight = gameData.charAt(1) == 'R';
  26.         */
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement