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(); | |
cee76158 | 13 | // System.out.println(cf.getCurrentCamName()); |
9ea6a533 | 14 | cf.toggleCamera(); |
9ea6a533 ME |
15 | } |
16 | ||
17 | @Override | |
18 | protected boolean isFinished() { | |
19 | return true; | |
20 | } | |
c14614aa AEE |
21 | |
22 | } |