Class VisionModule

java.lang.Object
org.photonvision.vision.processes.VisionModule

public class VisionModule extends Object
This is the God Class

VisionModule has a pipeline manager, vision runner, and data providers. The data providers provide info on settings changes. VisionModuleManager holds a list of all current vision modules.

  • Field Details

    • pipelineManager

      protected final PipelineManager pipelineManager
    • visionSource

      protected final VisionSource visionSource
    • moduleIndex

      protected final int moduleIndex
    • cameraQuirks

      protected final QuirkyCamera cameraQuirks
    • lastPipelineResultBestTarget

      protected TrackedTarget lastPipelineResultBestTarget
  • Constructor Details

  • Method Details

    • start

      public void start()
    • setFov

      public void setFov(double fov)
    • getChangeSubscriber

      public VisionModuleChangeSubscriber getChangeSubscriber()
    • startCalibration

      public void startCalibration(UICalibrationData data)
    • saveInputSnapshot

      public void saveInputSnapshot()
    • saveOutputSnapshot

      public void saveOutputSnapshot()
    • takeCalibrationSnapshot

      public void takeCalibrationSnapshot()
    • endCalibration

      public CameraCalibrationCoefficients endCalibration()
    • saveModule

      public void saveModule()
    • setCameraNickname

      public void setCameraNickname(String newName)
    • toUICameraConfig

      public UICameraConfiguration toUICameraConfig()
    • getStateAsCameraConfig

      public CameraConfiguration getStateAsCameraConfig()
    • addResultConsumer

      public void addResultConsumer(CVPipelineResultConsumer dataConsumer)
    • setTargetModel

      public void setTargetModel(TargetModel targetModel)
    • addCalibrationToConfig

      public void addCalibrationToConfig(CameraCalibrationCoefficients newCalibration)
    • changeCameraQuirks

      public void changeCameraQuirks(HashMap<CameraQuirk,Boolean> quirksToChange)
      Add/remove quirks from the camera we're controlling
      Parameters:
      quirksToChange - map of true/false for quirks we should change