Toggle cameras only once.
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / accessories / ToggleCameraFeed.java
CommitLineData
c14614aa
AEE
1package org.usfirst.frc.team3501.robot.commands.accessories;
2
3import org.usfirst.frc.team3501.robot.CameraFeeds;
9ea6a533 4import org.usfirst.frc.team3501.robot.Robot;
c14614aa
AEE
5
6import edu.wpi.first.wpilibj.command.Command;
7
8public 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}