Version 5 (modified by 6 years ago) (diff) | ,
---|
Camera Feed Display
Cameras are crucial to competitions due to their ability to
- Open FRC VSCode
- Create a new FRC project.
- Type the following into Robot.java
import edu.wpi.first.cameraserver.CameraServer;
- Inside robotInit(), configure the camera with:
CameraServer.getInstance().startAutomaticCapture();
- 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.
- To display the camera open up Shuffleboard and read:
https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/831042-displaying-camera-streams