fix ToggleCameraFeed command
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / accessories / ToggleCameraFeed.java
1 package org.usfirst.frc.team3501.robot.commands.accessories;
2
3 import org.usfirst.frc.team3501.robot.CameraFeeds;
4 import org.usfirst.frc.team3501.robot.Robot;
5
6 import edu.wpi.first.wpilibj.command.Command;
7
8 public class ToggleCameraFeed extends Command {
9
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 }
23
24 }