Commit | Line | Data |
---|---|---|
f56e6ebf CZ |
1 | package org.usfirst.frc.team3501.robot.commands.driving; |
2 | ||
3 | import org.usfirst.frc.team3501.robot.Robot; | |
4 | import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; | |
5 | ||
6 | import edu.wpi.first.wpilibj.command.Command; | |
7 | ||
8 | /** | |
9 | * | |
10 | */ | |
11 | public class CoastCANTalons extends Command { | |
12 | private DriveTrain driveTrain = Robot.getDriveTrain(); | |
13 | ||
14 | public CoastCANTalons() { | |
15 | requires(driveTrain); | |
16 | } | |
17 | ||
18 | @Override | |
19 | protected void initialize() { | |
20 | driveTrain.setCANTalonsBrakeMode(driveTrain.DRIVE_COAST_MODE); | |
21 | } | |
22 | ||
23 | @Override | |
24 | protected void execute() { | |
25 | } | |
26 | ||
27 | @Override | |
28 | protected boolean isFinished() { | |
29 | return true; | |
30 | } | |
31 | ||
32 | @Override | |
33 | protected void end() { | |
34 | } | |
35 | ||
36 | @Override | |
37 | protected void interrupted() { | |
38 | } | |
39 | } |