Commit | Line | Data |
---|---|---|
1dbaafe2 T |
1 | package org.usfirst.frc.team3501.robot.commands.driving; |
2 | ||
3 | import org.usfirst.frc.team3501.robot.Robot; | |
4 | ||
5 | import edu.wpi.first.wpilibj.command.Command; | |
6 | ||
7 | /** | |
8 | * | |
9 | */ | |
10 | public class InitTestCommand extends Command { | |
11 | ||
12 | public InitTestCommand() { | |
13 | // Use requires() here to declare subsystem dependencies | |
14 | // eg. requires(chassis); | |
15 | } | |
16 | ||
17 | // Called just before this Command runs the first time | |
18 | @Override | |
19 | protected void initialize() { | |
20 | Robot.getDriveTrain().setMotorValues(0.35, 0.35); | |
21 | } | |
22 | ||
23 | // Called repeatedly when this Command is scheduled to run | |
24 | @Override | |
25 | protected void execute() { | |
26 | } | |
27 | ||
28 | // Make this return true when this Command no longer needs to run execute() | |
29 | @Override | |
30 | protected boolean isFinished() { | |
31 | return false; | |
32 | } | |
33 | ||
34 | // Called once after isFinished returns true | |
35 | @Override | |
36 | protected void end() { | |
37 | } | |
38 | ||
39 | // Called when another command which requires one or more of the same | |
40 | // subsystems is scheduled to run | |
41 | @Override | |
42 | protected void interrupted() { | |
43 | } | |
44 | } |