mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
32 lines
935 B
Java
32 lines
935 B
Java
package com.chameleonvision.classabstraction.config;
|
|
|
|
import com.chameleonvision.classabstraction.camera.USBCameraProperties;
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
public class CameraConfig {
|
|
public final double fov;
|
|
public final String path;
|
|
public final String name;
|
|
public final String nickname;
|
|
|
|
@JsonCreator
|
|
public CameraConfig(
|
|
@JsonProperty("fov") double fov,
|
|
@JsonProperty("path") String path,
|
|
@JsonProperty("name") String name,
|
|
@JsonProperty("nickname") String nickname) {
|
|
this.fov = fov;
|
|
this.path = path;
|
|
this.name = name;
|
|
this.nickname = nickname;
|
|
}
|
|
|
|
public CameraConfig(String path, String name) {
|
|
this.fov = USBCameraProperties.DEFAULT_FOV;
|
|
this.path = path;
|
|
this.name = name;
|
|
this.nickname = name;
|
|
}
|
|
}
|