diff --git a/app/lib/cam/index.js b/app/lib/cam/index.js index 18074ee..e73c9f2 100644 --- a/app/lib/cam/index.js +++ b/app/lib/cam/index.js @@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const intval_1 = require("intval"); const processing_1 = require("processing"); +const delay_1 = require("delay"); /** class representing camera functions **/ class Camera { /** @@ -157,11 +158,34 @@ class Camera { /** * **/ - exposure(exposure, id) { - let cmd = 'E'; - this.intval.setExposure(this.id, exposure, (ms) => { - this.end(cmd, id, ms); - }); + async exposure(exposure, id) { + const cmd = this.cfg.arduino.cmd.camera_exposure; + const str = `${exposure}`; + let ms; + if (this.intval) { + return this.intval.setExposure(this.id, exposure, (ms) => { + return this.end(cmd, id, ms); + }); + } + else if (this.arduino.hasState[id]) { + try { + ms = await this.arduino.send(this.id, cmd); + } + catch (err) { + this.log.error('Error sending camera exposure command', err); + } + await delay_1.delay(1); + try { + this.arduino.sendString(this.id, str); + } + catch (err) { + this.log.error('Error sending camera exposure string', err); + } + await delay_1.delay(1); + await ms; + return await this.end(cmd, id, ms); + } + return 0; } /** * @@ -274,9 +298,13 @@ class Camera { else if (cmd === this.cfg.arduino.cmd.camerass) { message += 'Cameras both MOVED 1 frame each'; } + else if (cmd === this.cfg.arduino.camera_exposure) { + message += 'Camera set exposure'; + } message += ` ${ms}ms`; this.log.info(message); this.ui.send(this.id, { cmd: cmd, id: id, ms: ms }); + return ms; } } module.exports = function (arduino, cfg, ui, filmout, second) { diff --git a/app/lib/cam/index.js.map b/app/lib/cam/index.js.map index 2a2fb57..e6f7822 100644 --- a/app/lib/cam/index.js.map +++ b/app/lib/cam/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cam/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,mCAAgC;AAChC,2CAAwC;AAGxC,2CAA2C;AAE3C,MAAM,MAAM;IAeX;;QAEI;IACJ,YAAa,OAAiB,EAAE,GAAS,EAAE,EAAQ,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tB;aAAM,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YACjD,OAAO,IAAI,iCAAiC,CAAC;SAC7C;aAAM,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE;YACpD,OAAO,IAAI,qBAAqB,CAAC;SACjC;QACD,OAAO,IAAI,IAAI,EAAE,IAAI,CAAA;QACrB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,CAAC,CAAC;QACnD,OAAO,EAAE,CAAC;IACX,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,UAAU,OAAiB,EAAE,GAAS,EAAE,EAAQ,EAAE,OAAa,EAAE,MAAgB;IACjG,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC,CAAA"} \ No newline at end of file diff --git a/app/lib/cmd/index.js b/app/lib/cmd/index.js index 20d4ff9..d3212c5 100644 --- a/app/lib/cmd/index.js +++ b/app/lib/cmd/index.js @@ -627,6 +627,16 @@ class Commands { } return ms; } + async camera_exposure(cmd) { + let ms; + try { + ms = await this.cam.exposure(cmd.light); + } + catch (err) { + throw err; + } + return ms; + } } module.exports = function (cfg, proj, cam, light, alert, cam2, proj2, capper) { return new Commands(cfg, proj, cam, light, alert, cam2, proj2, capper); diff --git a/app/lib/cmd/index.js.map b/app/lib/cmd/index.js.map index 3a20f1f..b5cebf6 100644 --- a/app/lib/cmd/index.js.map +++ b/app/lib/cmd/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cmd/index.ts"],"names":[],"mapp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,IAAI;YACH,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,kBAAkB;SAC7D;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QACD,OAAO,EAAE,CAAC;IACX,CAAC;IAGD;;;;QAII;IAEG,KAAK,CAAC,KAAK,CAAE,GAAS;QAC5B,IAAI,EAAW,CAAC;QAChB,IAAI;YACH,EAAE,GAAG,MAAM,aAAK,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,qBAAqB;SACzD;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QACD,OAAO,EAAE,CAAC;IACX,CAAC;IAEM,KAAK,CAAC,eAAe,CAAE,GAAS;QACtC,IAAI,EAAW,CAAC;QAChB,IAAI;YACH,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACxC;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,UAAU,GAAS,EAAE,IAAU,EAAE,GAAS,EAAE,KAAW,EAAE,KAAW,EAAE,IAAU,EAAE,KAAW,EAAE,MAAY;IAC3H,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACxE,CAAC,CAAA"} \ No newline at end of file diff --git a/app/lib/ui/cam.js b/app/lib/ui/cam.js index 1927a7d..7a43e18 100644 --- a/app/lib/ui/cam.js +++ b/app/lib/ui/cam.js @@ -90,6 +90,18 @@ cam.end = function (c, id, ms) { cam.lock = false; } }; + +cam.exposure = function (exposure, callback) { + var obj = { + id : uuid(), + exposure + } + ipcRenderer.sendSync(cam.id) + if (typeof callback !== 'undefined') { + callback(); + } +} + cam.listen = function () { 'use strict'; ipcRenderer.on(cam.id, function (event, arg) { diff --git a/src/cam/index.ts b/src/cam/index.ts index 5861dfd..0199d15 100644 --- a/src/cam/index.ts +++ b/src/cam/index.ts @@ -161,11 +161,31 @@ class Camera { /** * **/ - public exposure (exposure : number, id : string) { - let cmd : string = 'E'; - this.intval.setExposure(this.id, exposure, (ms : number) => { - this.end(cmd, id, ms); - }); + public async exposure (exposure : number, id : string) { + const cmd : string = this.cfg.arduino.cmd.camera_exposure; + const str : string = `${exposure}`; + let ms : any; + if (this.intval) { + return this.intval.setExposure(this.id, exposure, (ms : number) => { + return this.end(cmd, id, ms); + }); + } else if (this.arduino.hasState[id]) { + try { + ms = await this.arduino.send(this.id, cmd); + } catch (err) { + this.log.error('Error sending camera exposure command', err); + } + await delay(1); + try { + this.arduino.sendString(this.id, str); + } catch (err) { + this.log.error('Error sending camera exposure string', err); + } + await delay(1); + await ms; + return await this.end(cmd, id, ms); + } + return 0; } /** @@ -230,6 +250,12 @@ class Camera { } catch (err) { this.log.error(err) } + } else if (typeof arg.exposure !== 'undefined') { + try { + await this.exposure(arg.exposure, arg.id); + } catch (err) { + this.log.error(err); + } } event.returnValue = true } @@ -265,10 +291,13 @@ class Camera { message += ' 1 frame'; } else if (cmd === this.cfg.arduino.cmd.camerass) { message += 'Cameras both MOVED 1 frame each'; + } else if (cmd === this.cfg.arduino.camera_exposure) { + message += 'Camera set exposure'; } message += ` ${ms}ms` this.log.info(message); this.ui.send(this.id, {cmd: cmd, id : id, ms: ms}); + return ms; } } diff --git a/src/cmd/index.ts b/src/cmd/index.ts index cab9b23..38b8709 100644 --- a/src/cmd/index.ts +++ b/src/cmd/index.ts @@ -636,6 +636,16 @@ class Commands { } return ms; } + + public async camera_exposure (cmd : any) { + let ms : number; + try { + ms = await this.cam.exposure(cmd.light); + } catch (err) { + throw err; + } + return ms; + } } module.exports = function (cfg : any, proj : any, cam : any, light : any, alert : any, cam2 : any, proj2 : any, capper : any) { diff --git a/src/globals.d.ts b/src/globals.d.ts index f50ad60..80861f1 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -19,6 +19,7 @@ interface Device { } interface Arduino { + hasState : any; send (id : string, cmd : string) : number; sendString (id : string, str : string) : any; enumerate () : any;