- Implemented camera control settings with auto/manual modes and integrate with CameraControls component
This commit is contained in:
@@ -66,6 +66,20 @@ export type CameraSettings = {
|
||||
cameraMode: number;
|
||||
mode: number;
|
||||
imageSize: { width: number; height: number };
|
||||
cameraControls: {
|
||||
cameraControlMode: "auto" | "manual";
|
||||
auto: {
|
||||
minShutter: string;
|
||||
maxShutter: string;
|
||||
maxGain: string;
|
||||
exposureCompensation: string;
|
||||
};
|
||||
manual: {
|
||||
fixShutter: string;
|
||||
fixGain: string;
|
||||
fixIris: string;
|
||||
};
|
||||
};
|
||||
regionPainter: {
|
||||
paintmode: "painter" | "eraser";
|
||||
paintedCells: Map<string, PaintedCell>;
|
||||
@@ -90,7 +104,11 @@ export type CameraSettingsAction =
|
||||
type: "SET_REGION_PAINTMODE";
|
||||
payload: "painter" | "eraser";
|
||||
}
|
||||
| { type: "SET_SELECTED_REGION_INDEX"; payload: number };
|
||||
| { type: "SET_SELECTED_REGION_INDEX"; payload: number }
|
||||
| {
|
||||
type: "SET_CAMERA_CONTROLS";
|
||||
payload: CameraSettings["cameraControls"];
|
||||
};
|
||||
|
||||
export type CameraStatus = {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user