Warning stting up a camera in a robot (java)

what does it mean the warning “The method getinstance() from the type CameraServer is deprecated”?

It means the method is no longer supported. Depreciated methods have the @Depreciated tags on their method. The method should also be crossed out in IntelliJ I believe. You can still continue using the method but there is generally a better way.

2 Likes

In this particular case, the cause is that you’re using edu.wpi.first.wpilibj.CameraServer instead of edu.wpi.first.cameraserver.CameraServer. Just change the import and that should get rid of the warning.

1 Like

Thank you!!! It helped a lot

Thank youuu

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.