mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Upgrade to wpilib alpha-6 (#2434)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ryanforce08 <rradtke1208@gmail.com> Co-authored-by: PJ Reiniger <pj.reiniger@gmail.com> Co-authored-by: Jade Turner <spacey-sooty@proton.me> Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com>
This commit is contained in:
@@ -59,7 +59,7 @@ public class CscoreExtrasTest {
|
||||
|
||||
UsbCamera camera = CameraServer.startAutomaticCapture(2);
|
||||
|
||||
camera.setVideoMode(PixelFormat.kMJPEG, 1280, 720, 30);
|
||||
camera.setVideoMode(PixelFormat.MJPEG, 1280, 720, 30);
|
||||
var cameraMode = camera.getVideoMode();
|
||||
|
||||
CvSink cvSink = CameraServer.getVideo(camera);
|
||||
@@ -74,7 +74,7 @@ public class CscoreExtrasTest {
|
||||
cameraMode.height,
|
||||
// hard-coded 3 channel
|
||||
cameraMode.width * 3,
|
||||
PixelFormat.kBGR);
|
||||
PixelFormat.BGR);
|
||||
final double CSCORE_DEFAULT_FRAME_TIMEOUT = 1.0 / 4.0;
|
||||
long time =
|
||||
CscoreExtras.grabRawSinkFrameTimeoutLastTime(
|
||||
|
||||
Reference in New Issue
Block a user