Class PhotonConfiguration
java.lang.Object
org.photonvision.common.configuration.PhotonConfiguration
-
Constructor Summary
ConstructorDescriptionPhotonConfiguration
(HardwareConfig hardwareConfig, HardwareSettings hardwareSettings, NetworkConfig networkConfig, AprilTagFieldLayout atfl) PhotonConfiguration
(HardwareConfig hardwareConfig, HardwareSettings hardwareSettings, NetworkConfig networkConfig, AprilTagFieldLayout atfl, HashMap<String, CameraConfiguration> cameraConfigurations) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCameraConfig
(String name, CameraConfiguration config) void
addCameraConfig
(CameraConfiguration config) void
addCameraConfigs
(Collection<VisionSource> sources) boolean
removeCameraConfig
(String name) Delete a camera by its unique namevoid
void
setNetworkConfig
(NetworkConfig networkConfig) toString()
-
Constructor Details
-
PhotonConfiguration
public PhotonConfiguration(HardwareConfig hardwareConfig, HardwareSettings hardwareSettings, NetworkConfig networkConfig, AprilTagFieldLayout atfl) -
PhotonConfiguration
public PhotonConfiguration(HardwareConfig hardwareConfig, HardwareSettings hardwareSettings, NetworkConfig networkConfig, AprilTagFieldLayout atfl, HashMap<String, CameraConfiguration> cameraConfigurations) -
PhotonConfiguration
public PhotonConfiguration()
-
-
Method Details
-
getHardwareConfig
-
getNetworkConfig
-
getHardwareSettings
-
getApriltagFieldLayout
-
setApriltagFieldLayout
-
setNetworkConfig
-
getCameraConfigurations
-
addCameraConfigs
-
addCameraConfig
-
addCameraConfig
-
removeCameraConfig
Delete a camera by its unique name- Parameters:
name
- The camera name (usually unique name)- Returns:
- True if the camera configuration was removed
-
toString
-