Skip to content
This repository was archived by the owner on Oct 31, 2019. It is now read-only.
This repository was archived by the owner on Oct 31, 2019. It is now read-only.

Take out is camera reachable in production #100

@oconnelc

Description

@oconnelc

In the Vision System API, there's a call: "if(!OpenCVUtils.isIpReachable(aType.getCameraIP())) {" We need to take this out before competition. Recommend creating a new JSON flag: "USE_LOCAL_IF_UNAVAILABLE" that will run the above check if true. Otherwise the code should return the VisionSystem for the camera.

The reason for this is that we suspect that there is a delay between when the code starts up and when the camera starts up. Also the AxisCamera has reconnect capabilities that are not being used. We may need to make sure the code doesn't hang while the camera is down.

To test:

  1. Start up the vision system for the alignment camera, with the alignment camera unplugged.
  2. Make sure the code doesn't hang and that the connection happens on a background thread.
    3)Plug/turn on the camera.
  3. Ensure that the AxisCameraConnection is able to connect to the camera and the image feeds start up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions