Package frc.robot.subsystems.vision
Class VisionReal
java.lang.Object
frc.robot.subsystems.vision.VisionReal
- All Implemented Interfaces:
VisionIO
- Direct Known Subclasses:
VisionSimPhoton
PhotonVision-attached implementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.subsystems.vision.VisionIO
VisionIO.CameraInputs, VisionIO.Empty
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVisionReal
(Constants.Vision.CameraConstants[] constants) PhotonVision-attached implementation -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createSettingsUploadThread
(String hostname) Create a thread to upload PV settings/April Tag fieldvoid
updateInputs
(VisionIO.CameraInputs[] inputs) boolean
uploadAprilTagMap
(String hostname) Upload current April Tags Field to PV Co-Processorsboolean
uploadSettings
(String hostname) Upload saved settings to PV Co-Processorsboolean
Check that PV has started on Co-Processor
-
Field Details
-
cameras
protected final org.photonvision.PhotonCamera[] cameras
-
-
Constructor Details
-
VisionReal
PhotonVision-attached implementation
-
-
Method Details
-
updateInputs
- Specified by:
updateInputs
in interfaceVisionIO
-
uploadAprilTagMap
Upload current April Tags Field to PV Co-Processors- Parameters:
hostname
- Hostname of Co-Processor- Returns:
- True when completed
- Throws:
IOException
- IOException for HTTP request
-
uploadSettings
Upload saved settings to PV Co-Processors- Parameters:
hostname
- Hostname of Co-Processor- Returns:
- True when completed
- Throws:
IOException
- IOException for HTTP request
-
waitForPV
Check that PV has started on Co-Processor- Parameters:
hostname
- Hostname of Co-Processor- Returns:
- True when completed
- Throws:
IOException
- IOException for HTTP request
-
createSettingsUploadThread
Create a thread to upload PV settings/April Tag field- Parameters:
hostname
- hostname of the PV Co-Processor
-