Commit | Line | Data |
---|---|---|
c14614aa AEE |
1 | package org.usfirst.frc.team3501.robot.commands.accessories; |
2 | ||
3 | import org.usfirst.frc.team3501.robot.CameraFeeds; | |
9ea6a533 | 4 | import org.usfirst.frc.team3501.robot.Robot; |
c14614aa AEE |
5 | |
6 | import edu.wpi.first.wpilibj.command.Command; | |
7 | ||
8 | public class ToggleCameraFeed extends Command { | |
9 | ||
9ea6a533 ME |
10 | @Override |
11 | protected void execute() { | |
12 | CameraFeeds cf = Robot.getCameraFeeds(); | |
13 | System.out.println(cf.getCurrentCamName()); | |
14 | cf.toggleCamera(); | |
15 | System.out.println(cf.getCurrentCamName()); | |
16 | ||
17 | } | |
18 | ||
19 | @Override | |
20 | protected boolean isFinished() { | |
21 | return true; | |
22 | } | |
c14614aa AEE |
23 | |
24 | } |