package org.usfirst.frc.team3501.robot.commands.accessories;
import org.usfirst.frc.team3501.robot.CameraFeeds;
+import org.usfirst.frc.team3501.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
public class ToggleCameraFeed extends Command {
- public void init() {
- CameraFeeds cf = CameraFeeds.getCameraFeeds();
-
- cf.toggleCamera();
- }
-
- @Override
- protected boolean isFinished() {
- return true;
- }
+ @Override
+ protected void execute() {
+ CameraFeeds cf = Robot.getCameraFeeds();
+ System.out.println(cf.getCurrentCamName());
+ cf.toggleCamera();
+ System.out.println(cf.getCurrentCamName());
+
+ }
+
+ @Override
+ protected boolean isFinished() {
+ return true;
+ }
}