2024-05-23 22:49:18 +00:00
|
|
|
import type { Arduino } from 'arduino';
|
|
|
|
import type { FilmOut } from 'filmout';
|
2024-05-24 03:36:51 +00:00
|
|
|
import type { Config } from 'cfg';
|
2024-05-23 23:54:42 +00:00
|
|
|
import type { WebContents } from 'electron';
|
2024-05-23 22:49:18 +00:00
|
|
|
interface CameraState {
|
|
|
|
pos: number;
|
|
|
|
dir: boolean;
|
|
|
|
capper: boolean;
|
|
|
|
}
|
|
|
|
/** class representing camera functions **/
|
|
|
|
export declare class Camera {
|
|
|
|
state: CameraState;
|
|
|
|
arduino: Arduino;
|
|
|
|
private intval;
|
|
|
|
private processing;
|
|
|
|
private log;
|
|
|
|
private cfg;
|
|
|
|
private filmout;
|
|
|
|
private ui;
|
|
|
|
private ipc;
|
|
|
|
private id;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
2024-05-24 03:36:51 +00:00
|
|
|
constructor(arduino: Arduino, cfg: Config, ui: WebContents, filmout: FilmOut, second?: boolean);
|
2024-05-23 22:49:18 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private init;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private listen;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
set(dir: boolean, id: string): Promise<number>;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
cap(state: boolean, id: string): Promise<number>;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
move(id: string): Promise<number>;
|
|
|
|
both(id: string): Promise<number>;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
exposure(exposure: number, id: string): Promise<number>;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private connectIntval;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private connectProcessing;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private listener;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private end;
|
|
|
|
}
|
2022-10-07 23:47:56 +00:00
|
|
|
export {};
|