summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc/team4272/robot2015/commands/ExampleCommand.java
blob: 42ddd450e20ef45c46ff707f7cdcf2808e985431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

package org.usfirst.frc.team4272.robot2015.commands;

import edu.wpi.first.wpilibj.command.Command;

import org.usfirst.frc.team4272.robot2015.Robot;

/**
 *
 */
public class ExampleCommand extends Command {

    public ExampleCommand() {
        // Use requires() here to declare subsystem dependencies
        requires(Robot.exampleSubsystem);
    }

    // Called just before this Command runs the first time
    protected void initialize() {
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
    }

    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return false;
    }

    // Called once after isFinished returns true
    protected void end() {
    }

    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
    }
}