Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Mar 14, 2024
2 parents 2929fde + 5915cf7 commit 9922869
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* Copyright (C) 2024 Team 334. All Rights Reserved.*/
package frc.robot;

import edu.wpi.first.cameraserver.CameraServer;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
Expand Down Expand Up @@ -34,6 +35,8 @@ public void robotInit() {
// FIRST THING THAT HAPPENS
addPeriodic(() -> AllianceHelper.getInstance().updateAlliance(DriverStation.getAlliance()), 0.5);

CameraServer.startAutomaticCapture();

// Instantiate our RobotContainer. This will perform all our button bindings,
// and put our
// autonomous chooser on the dashboard.
Expand All @@ -59,6 +62,8 @@ public void robotPeriodic() {
// robot's periodic
// block in order for anything in the Command-based framework to work.
CommandScheduler.getInstance().run();

CameraServer.putVideo("INTAKE CAM", 1080, 920);
}

/** This function is called once each time the robot enters Disabled mode. */
Expand Down

0 comments on commit 9922869

Please sign in to comment.