wiki:ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras

Version 5 (modified by Eileen Wang, 6 years ago) (diff)

--

Camera Feed Display

Cameras are crucial to competitions due to their ability to

  1. Open FRC VSCode
  2. Create a new FRC project.
  3. Type the following into Robot.java
import edu.wpi.first.cameraserver.CameraServer;
  1. Inside robotInit(), configure the camera with:
CameraServer.getInstance().startAutomaticCapture();
  1. To display the camera feed, we'll need shuffleboard. Read about it here:

https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/814689-tour-of-shuffleboard

Smartdashboard and shuffleboard can be used interchangeably, however,shuffleboard is far more user friendly and visually appealing.

  1. To display the camera open up Shuffleboard and read:

https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/831042-displaying-camera-streams