From 7741134917d6e99eb2ef8829ac8227ef041cd2de Mon Sep 17 00:00:00 2001 From: mattmcw Date: Tue, 28 Feb 2023 14:30:17 -0500 Subject: [PATCH 1/2] Create the Timing class --- app/js/app.js | 1 + app/lib/delay/index.d.ts | 8 ----- app/lib/ui/devices.js | 2 ++ app/lib/ui/devices.js.map | 2 +- app/lib/ui/seq.js | 1 + app/lib/ui/seq.js.map | 2 +- app/lib/ui/timing.js | 54 ++++++++++++++++++++++++++++++++ app/lib/ui/timing.js.map | 1 + app/main.js | 44 +++++++++++++------------- app/src/index.js | 1 + app/src/lib/ui/devices.ts | 2 ++ app/src/lib/ui/seq.ts | 2 +- app/src/lib/ui/timing.ts | 65 +++++++++++++++++++++++++++++++++++++++ 13 files changed, 152 insertions(+), 33 deletions(-) create mode 100644 app/lib/ui/timing.js create mode 100644 app/lib/ui/timing.js.map create mode 100644 app/src/lib/ui/timing.ts diff --git a/app/js/app.js b/app/js/app.js index 752de0a..be86b17 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -2497,6 +2497,7 @@ const devices = require('./lib/ui/devices.js'); const filmout = require('./lib/ui/filmout.js'); const mse = require('./lib/ui/mscript.js'); const capper = require('./lib/ui/capper.js'); +const timing = require('./lib/ui/timing.js'); const Mscript = require('./lib/mscript'); const { delay } = require('./lib/delay'); const alertObj = require('./lib/ui/alert.js'); diff --git a/app/lib/delay/index.d.ts b/app/lib/delay/index.d.ts index 62d586e..e69de29 100644 --- a/app/lib/delay/index.d.ts +++ b/app/lib/delay/index.d.ts @@ -1,8 +0,0 @@ -/** - * Delay in an async/await function - * - * @param {integer} ms Milliseconds to delay for - * - * @returns {Promise} Promise to resolve after timeout - **/ -declare function delay(ms: number): Promise; diff --git a/app/lib/ui/devices.js b/app/lib/ui/devices.js index c9fde1d..115591b 100644 --- a/app/lib/ui/devices.js +++ b/app/lib/ui/devices.js @@ -83,6 +83,7 @@ class Devices { else { light.enable(); } + timing.reset(p); //devices.profile(arg.profile) } if (arg.projector_second) { @@ -128,6 +129,7 @@ class Devices { for (let key of keys) { cfg[key] = keys[key]; } + timing.reset(p); if (typeof p.light !== 'undefined' && p.light === false) { light.disable(); } diff --git a/app/lib/ui/devices.js.map b/app/lib/ui/devices.js.map index 818060d..f11a604 100644 --- a/app/lib/ui/devices.js.map +++ b/app/lib/ui/devices.js.map @@ -1 +1 @@ -{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/lib/ui/devices.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;AAEb,qCAAqC;AAGrC,IAAI,OAAiB,CAAC;AAEtB,MAAM,OAAO;IAEZ;QADQ,OAAE,GAAY,SAAS,CAAC;IAGhC,CAAC;IACD,IAAI;QACH,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,mCAAmC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM;QACL,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,WAAW,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3D,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEK,KAAK,CAAE,KAAW,EAAE,GAAS;;YAClC,kBAAkB;YAClB,IAAI,GAAS,CAAC;YACd,IAAI,IAAI,GAAW,EAAE,CAAC;YACtB,IAAI,MAAM,GAAY,eAAe,CAAC;YACtC,IAAI,CAA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AAC,CAAC;SACvC;IACF,CAAC;IAED,YAAY;QACX,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED,UAAU;QACT,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;QACjD,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,4DAA4D,CAAC,CAAC;IACjF,CAAC;CACD;AAED,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/app/lib/ui/seq.js b/app/lib/ui/seq.js index adf701e..c2be2e9 100644 --- a/app/lib/ui/seq.js +++ b/app/lib/ui/seq.js @@ -173,6 +173,7 @@ class Sequence { } return true; }); + console.dir(cfg); //timing for (let step of this.grid) { if (!step) diff --git a/app/lib/ui/seq.js.map b/app/lib/ui/seq.js.map index e4c4529..5ffabff 100644 --- a/app/lib/ui/seq.js.map +++ b/app/lib/ui/seq.js.map @@ -1 +1 @@ -{"version":3,"file":"seq.js","sourceRoot":"","sources":["../../src/lib/ui/seq.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AA2BZ,IAAI,GAAG,GAAS,EAAE,CAAC;AAGnB,MAAM,QAAQ;IASb;QARQ,OAAE,GAAY,UAAU,CAAC;QAC1B,SAAI,GAAW,EAAE,CAAC;QAClB,cAAS,GAAY,CAAC,CAAC;QACvB,QAAG,GAAW,EAAE,CAAC;QACjB,UAAK,GAAY,CAAC,CAAC;QACnB,SAAI,GAAY,EAAE,CAAC;QAClB,SAAI,GAAY,CAAC,CAAC;QAClB,YAAO,GAAa,KAAK,CAAC;IAGlC,CAAC;IACM,IAAI;QACV,IAAI,CAAC,MAAM,EAAE,CAAC;IACf,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QACxE,CAAC,CAAC,2BAA2B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;QAE3E,OAAO;QACP,CAAC,CAAC,4BAA4B,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QACzE,OAAO,EAAE,CAAC;IACX,CAAC;IAEM,KAAK;QACX,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,CAAC;IAEM,MAAM;QACZ,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;CACD;AAED,GAAG,GAAG,IAAI,QAAQ,EAAE,CAAC;AAErB,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC"} \ No newline at end of file diff --git a/app/lib/ui/timing.js b/app/lib/ui/timing.js new file mode 100644 index 0000000..1386c0c --- /dev/null +++ b/app/lib/ui/timing.js @@ -0,0 +1,54 @@ +'use strict'; +let timing; +class Timing { + constructor() { + this.data = {}; + } + reset(profile) { + const keys = Object.keys(profile); + const cmds = Object.keys(cfg.cmd); + let cam; + let proj; + for (let key of keys) { + if (key === 'label') { + continue; + } + else if (key === 'cam') { + cam = 0; + cam += profile[key].time; + cam += profile[key].delay; + for (let cmd of cmds) { + if (cmd.indexOf('camera') !== -1 || cmd.indexOf('black') !== -1) { + this.data[cfg.cmd[cmd]] = cam; + } + } + } + else if (key === 'proj') { + proj = 0; + proj += profile[key].time; + proj += profile[key].delay; + for (let cmd of cmds) { + if (cmd.indexOf('projector') !== -1) { + this.data[cfg.cmd[cmd]] = proj; + } + } + } + } + } + //update with rolling average + update(cmd, ms) { + if (typeof this.data[cmd] !== 'undefined') { + this.data[cmd] = (this.data[cmd] + ms) / 2; + } + } + //get current value + get(cmd) { + if (typeof this.data[cmd] !== 'undefined') { + return this.data[cmd]; + } + return 0; + } +} +timing = new Timing(); +module.exports = timing; +//# sourceMappingURL=timing.js.map \ No newline at end of file diff --git a/app/lib/ui/timing.js.map b/app/lib/ui/timing.js.map new file mode 100644 index 0000000..7d9fec0 --- /dev/null +++ b/app/lib/ui/timing.js.map @@ -0,0 +1 @@ +{"version":3,"file":"timing.js","sourceRoot":"","sources":["../../src/lib/ui/timing.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,IAAI,MAAe,CAAC;AAMpB,MAAM,MAAM;IAIX;QAHQ,SAAI,GAAgB,EAE3B,CAAA;IAGD,CAAC;IAEM,KAAK,CAAE,OAAa;QAC1B,MAAM,IAAI,GAAc,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAc,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,GAAY,CAAC;QACjB,IAAI,IAAa,CAAC;QAClB,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;YACrB,IAAI,GAAG,KAAK,OAAO,EAAE;gBACpB,SAAQ;aACR;iBAAM,IAAI,GAAG,KAAK,KAAK,EAAE;gBACzB,GAAG,GAAG,CAAC,CAAC;gBACR,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACzB,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;gBAC1B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;oBACrB,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE;wBAChE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;qBAC9B;iBACD;aACD;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBAC1B,IAAI,GAAG,CAAC,CAAC;gBACT,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBAC1B,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;gBAC3B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;oBACrB,IAAI,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE;wBACpC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;qBAC/B;iBACD;aACD;SACD;IACF,CAAC;IAED,6BAA6B;IACtB,MAAM,CAAE,GAAY,EAAE,EAAW;QACvC,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,WAAW,EAAE;YAC1C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;SAC3C;IACF,CAAC;IAED,mBAAmB;IACZ,GAAG,CAAE,GAAY;QACvB,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,WAAW,EAAE;YAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACtB;QACD,OAAO,CAAC,CAAC;IACV,CAAC;CACD;AAED,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;AAEtB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/app/main.js b/app/main.js index 3cdf215..2c488b4 100644 --- a/app/main.js +++ b/app/main.js @@ -20,26 +20,26 @@ const { delay } = require('delay') //Objects const mcopy = {} -let SYSTEM; -let log; -let mainWindow; -let arduino; -let menu; -let display; -let ffmpeg; -let ffprobe; -let cam; -let cam2; -let proj; -let proj2; -let light; -let filmout; -let dev; -let cmd; -let seq; -let capper; -let alert; -let server; +let SYSTEM +let log +let mainWindow +let arduino +let menu +let display +let ffmpeg +let ffprobe +let cam +let cam2 +let proj +let proj2 +let light +let filmout +let dev +let cmd +let seq +let capper +let alert +let server const cfg = require('./data/cfg.json') @@ -142,12 +142,12 @@ var init = async function () { app.on('ready', init) app.on('window-all-closed', () => { - app.quit(); + app.quit() }); app.on('activate', () => { if (mainWindow === null) { - createWindow(); + createWindow() } }); diff --git a/app/src/index.js b/app/src/index.js index cb52140..f25f52a 100644 --- a/app/src/index.js +++ b/app/src/index.js @@ -23,6 +23,7 @@ const devices = require('./lib/ui/devices.js'); const filmout = require('./lib/ui/filmout.js'); const mse = require('./lib/ui/mscript.js'); const capper = require('./lib/ui/capper.js'); +const timing = require('./lib/ui/timing.js'); const Mscript = require('./lib/mscript'); const { delay } = require('./lib/delay'); const alertObj = require('./lib/ui/alert.js'); diff --git a/app/src/lib/ui/devices.ts b/app/src/lib/ui/devices.ts index 1fa510c..d2d1b82 100644 --- a/app/src/lib/ui/devices.ts +++ b/app/src/lib/ui/devices.ts @@ -79,6 +79,7 @@ class Devices { } else { light.enable(); } + timing.reset(p); //devices.profile(arg.profile) } @@ -128,6 +129,7 @@ class Devices { for (let key of keys) { cfg[key] = keys[key] } + timing.reset(p); if (typeof p.light !== 'undefined' && p.light === false) { light.disable(); } else { diff --git a/app/src/lib/ui/seq.ts b/app/src/lib/ui/seq.ts index 5e4d91e..1241f10 100644 --- a/app/src/lib/ui/seq.ts +++ b/app/src/lib/ui/seq.ts @@ -207,7 +207,7 @@ class Sequence { } return true; }); - + console.dir(cfg); //timing for (let step of this.grid) { if (!step) continue diff --git a/app/src/lib/ui/timing.ts b/app/src/lib/ui/timing.ts new file mode 100644 index 0000000..571f9c2 --- /dev/null +++ b/app/src/lib/ui/timing.ts @@ -0,0 +1,65 @@ +'use strict'; + +let timing : Timing; + +interface TimingData { + [key: string]: number; +} + +class Timing { + private data : TimingData = { + + } + constructor () { + + } + + public reset (profile : any) { + const keys : string[] = Object.keys(profile); + const cmds : string[] = Object.keys(cfg.cmd); + let cam : number; + let proj : number; + for (let key of keys) { + if (key === 'label') { + continue + } else if (key === 'cam') { + cam = 0; + cam += profile[key].time; + cam += profile[key].delay; + for (let cmd of cmds) { + if (cmd.indexOf('camera') !== -1 || cmd.indexOf('black') !== -1) { + this.data[cfg.cmd[cmd]] = cam; + } + } + } else if (key === 'proj') { + proj = 0; + proj += profile[key].time; + proj += profile[key].delay; + for (let cmd of cmds) { + if (cmd.indexOf('projector') !== -1) { + this.data[cfg.cmd[cmd]] = proj; + } + } + } + } + } + + //update with rolling average + public update (cmd : string, ms : number) { + if (typeof this.data[cmd] !== 'undefined') { + this.data[cmd] = (this.data[cmd] + ms) / 2; + } + } + + //get current value + public get (cmd : string) { + if (typeof this.data[cmd] !== 'undefined') { + return this.data[cmd]; + } + return 0; + } +} + +timing = new Timing(); + +module.exports = timing; \ No newline at end of file -- 2.40.1 From 5db5d477e484b1925eaf32d098be6b634e71b4f0 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Tue, 28 Feb 2023 15:55:02 -0500 Subject: [PATCH 2/2] Timing is now updated via rolling average on all projector and camera actions. This data is reset when profile is changed. This data is stored in the settings.json and loaded on start so estimates will improve the more it is used. --- app/lib/devices/index.js | 16 +++++-- app/lib/devices/index.js.map | 2 +- app/lib/settings/index.js | 3 +- app/lib/settings/index.js.map | 2 +- app/lib/ui/cam.js | 2 + app/lib/ui/devices.js | 4 ++ app/lib/ui/devices.js.map | 2 +- app/lib/ui/proj.js | 1 + app/lib/ui/seq.js | 22 ++-------- app/lib/ui/seq.js.map | 2 +- app/lib/ui/timing.js | 70 ++++++++++++++++++++++++------- app/lib/ui/timing.js.map | 2 +- app/src/lib/ui/devices.ts | 7 +++- app/src/lib/ui/seq.ts | 23 +++-------- app/src/lib/ui/timing.ts | 78 ++++++++++++++++++++++++++++------- src/devices/index.ts | 18 ++++++-- src/settings/index.ts | 3 +- 17 files changed, 177 insertions(+), 80 deletions(-) diff --git a/app/lib/devices/index.js b/app/lib/devices/index.js index 2ace91e..008d4a5 100644 --- a/app/lib/devices/index.js +++ b/app/lib/devices/index.js @@ -41,9 +41,16 @@ class Devices { * local settings object. **/ listener(event, arg) { - this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); - this.settings.update('profile', arg.profile); - this.settings.save(); + if (typeof arg.profile !== 'undefined') { + this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); + this.settings.update('profile', arg.profile); + this.settings.save(); + } + if (typeof arg.timing !== 'undefined') { + this.log.info(`Saving timing info`, 'SETTINGS', false, false); + this.settings.update('timing', arg.timing); + this.settings.save(); + } } /** * @@ -510,6 +517,9 @@ class Devices { light, profile: this.settings.state.profile }; + if (this.settings.state.timing) { + args.timing = this.settings.state.timing; + } if (projector_second && projector_second.arduino) { args.projector_second = projector_second; this.settings.update('projector_second', projector_second); diff --git a/app/lib/devices/index.js.map b/app/lib/devices/index.js.map index 45eac8b..b6c6588 100644 --- a/app/lib/devices/index.js.map +++ b/app/lib/devices/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/devices/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,iCAA8B;AAC9B,2BAA4B;AAE5B;;;;IAII;AAEJ,MAAM,OAAO;IAYZ;;;QAGI;IACJ,YAAa,OAAiB,EAAE,QAAc,EAAE,UAAgB,EAAE,GAAS;QAbpE,cAAS,GAAS,EAAE,CAAA;QAc1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,GA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AAC,OAAO,EAAE;gBACjD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;aACjC;iBAAM;gBACN,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;aACjC;SACD;QAED,IAAI,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE;YAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;YACpB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YACjC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;SACtC;QAED,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QACtC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;QAC5C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAGpC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA;QAEpB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAE3B,OAAO,IAAI,CAAA;IACZ,CAAC;CAMD;AAED,MAAM,CAAC,OAAO,GAAG,UAAU,OAAiB,EAAE,QAAc,EAAE,UAAgB,EAAE,GAAS;IACxF,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,CAAA;AACvD,CAAC,CAAA"} \ No newline at end of file diff --git a/app/lib/settings/index.js b/app/lib/settings/index.js index c52b69d..a85940a 100644 --- a/app/lib/settings/index.js +++ b/app/lib/settings/index.js @@ -19,7 +19,8 @@ class Settings { camera: {}, projector: {}, light: {}, - capper: {} + capper: {}, + timing: {} }; this.state = this.freshState(); } diff --git a/app/lib/settings/index.js.map b/app/lib/settings/index.js.map index 0903e4c..f803b0c 100644 --- a/app/lib/settings/index.js.map +++ b/app/lib/settings/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,yBAA0B;AAC1B,6BAA8B;AAC9B,+BAAgC;AAEhC,MAAM,QAAQ;IAeb;;QAEI;IACJ;QAjBQ,SAAI,GAAW,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,uBAAuB,CAAC,CAAC;QAChE,iBAAY,GAAS;YAC5B,MAAM,EAAG;gBACR,IAAI,EAAG,IAAI;gBACX,OAAO,EAAG,IAAI;aACd;YACD,OAAO,EAAG,EAAE;YACZ,OAAO,EAAG,OAAO;YACjB,MAAM,EAAG,EAAE;YACX,SAAS,EAAG,EAAE;YACd,KAAK,EAAG,EAAE;YACV,MAAM,EAAG,EAAE;SACX,CAAA;QAMA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;IAChC,CAAC;IAEO,UAAU;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IACtD,CAAC;IACD;;QAEI;IACI,KAAK,CAAC,QAAQ;QACrB,MAAM,GAAG,GAAY,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;QACxD,MAAM,MAAM,GAAa,MAAM,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,EAAE;YACZ,IAAI;gBACH,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aACpB;YAAC,OAAO,GAAG,EAAE;gBACb,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ;oBAAE,OAAO,IAAI,CAAA;gBACtC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aACnB;SAC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,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEpC,IAAI,MAAM,EAAE;YACX,GAAG,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAC3C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7B,yBAAyB;SACzB;aAAM;YACN,IAAI,CAAC,IAAI,EAAE,CAAC;SACZ;IACF,CAAC;IACD;;QAEI;IACG,KAAK,CAAC,KAAK;QACjB,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,MAAM,EAAE;YACX,IAAI;gBACH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC3B;YAAC,OAAO,GAAG,EAAE;gBACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aACnB;SACD;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;IAChB,CAAC;IAAA,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,QAAQ,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/ui/cam.js b/app/lib/ui/cam.js index 4317c7b..1927a7d 100644 --- a/app/lib/ui/cam.js +++ b/app/lib/ui/cam.js @@ -80,6 +80,7 @@ cam.end = function (c, id, ms) { } gui.counterUpdate('cam2', cam.second.pos); } + timing.update(c, ms); gui.counterUpdate('cam', cam.pos) if (typeof cam.queue[id] !== 'undefined') { if (typeof cam.queue[id].callback !== 'undefined') { @@ -182,6 +183,7 @@ cam.second.end = function (c, id, ms) { cam.second.pos -= 1; } } + timing.update(c, ms); gui.counterUpdate('cam2', cam.second.pos) if (typeof cam.second.queue[id] !== 'undefined') { if (typeof cam.queue[id].callback !== 'undefined') { diff --git a/app/lib/ui/devices.js b/app/lib/ui/devices.js index 115591b..cda59d6 100644 --- a/app/lib/ui/devices.js +++ b/app/lib/ui/devices.js @@ -86,6 +86,9 @@ class Devices { timing.reset(p); //devices.profile(arg.profile) } + if (arg && arg.timing) { + timing.restore(arg.timing); + } if (arg.projector_second) { //add second row of projector pads to grid proj.second.enable(); @@ -137,6 +140,7 @@ class Devices { light.enable(); } ipcRenderer.send('profile', { profile }); + timing.store(); } intval() { const url = $('#intval').val(); diff --git a/app/lib/ui/devices.js.map b/app/lib/ui/devices.js.map index f11a604..f7f75a5 100644 --- a/app/lib/ui/devices.js.map +++ b/app/lib/ui/devices.js.map @@ -1 +1 @@ -{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/lib/ui/devices.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;AAEb,qCAAqC;AAGrC,IAAI,OAAiB,CAAC;AAEtB,MAAM,OAAO;IAEZ;QADQ,OAAE,GAAY,SAAS,CAAC;IAGhC,CAAC;IACD,IAAI;QACH,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,mCAAmC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM;QACL,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,WAAW,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3D,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,I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CAAC,oDAAoD,GAAG,GAAG,CAAC,CAAC;SAC9E;aAAM;YACN,KAAK,CAAC,8CAA8C,CAAC,CAAC;SACtD;QAED,IAAI,OAAO,EAAE;YACZ,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,8BAA8B,GAAG,EAAE,CAAC,CAAC;YACvD,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;SACpC;aAAM;YACN,CAAC,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YACrD,CAAC,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SACvC;IACF,CAAC;IAED,YAAY;QACX,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED,UAAU;QACT,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;QACjD,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,4DAA4D,CAAC,CAAC;IACjF,CAAC;CACD;AAED,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/app/lib/ui/proj.js b/app/lib/ui/proj.js index f1fb145..9f6657b 100644 --- a/app/lib/ui/proj.js +++ b/app/lib/ui/proj.js @@ -173,6 +173,7 @@ proj.second.end = function (c, id, ms) { proj.second.pos -= 1; } } + timing.update(c, ms); gui.counterUpdate('proj2', proj.second.pos); if (typeof proj.second.queue[id] !== 'undefined') { if (typeof proj.second.queue[id].callback !== 'undefined') { diff --git a/app/lib/ui/seq.js b/app/lib/ui/seq.js index c2be2e9..4a75649 100644 --- a/app/lib/ui/seq.js +++ b/app/lib/ui/seq.js @@ -51,6 +51,8 @@ class Sequence { $('#cmd_capper_off').addClass('active'); $('#cmd_capper_on').removeClass('active'); } + this.stats(); + timing.store(); } } return event.returnValue = true; @@ -173,29 +175,13 @@ class Sequence { } return true; }); - console.dir(cfg); //timing for (let step of this.grid) { if (!step) continue; c = step.cmd; - if (c === cfg.cmd.camera_forward || c === cfg.cmd.camera_backward) { - ms += cfg.arduino.cam.time; - ms += cfg.arduino.cam.delay; - ms += cfg.arduino.serialDelay; - } - if (c === cfg.cmd.projector_forward || c === cfg.cmd.projector_backward) { - ms += cfg.arduino.proj.time; - ms += cfg.arduino.proj.delay; - ms += cfg.arduino.serialDelay; - } - if (c === cfg.cmd.black_forward || c === cfg.cmd.black_backward) { - ms += cfg.arduino.black.before; - ms += cfg.arduino.black.after; - ms += cfg.arduino.cam.time; - ms += cfg.arduino.cam.delay; - ms += cfg.arduino.serialDelay; - } + ms += timing.get(c); + ms += cfg.arduino.serialDelay; ms += cfg.arduino.sequenceDelay; if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) { cam_total++; diff --git a/app/lib/ui/seq.js.map b/app/lib/ui/seq.js.map index 5ffabff..6432517 100644 --- a/app/lib/ui/seq.js.map +++ b/app/lib/ui/seq.js.map @@ -1 +1 @@ -{"version":3,"file":"seq.js","sourceRoot":"","sources":["../../src/lib/ui/seq.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AA2BZ,IAAI,GAAG,GAAS,EAAE,CAAC;AAGnB,MAAM,QAAQ;IASb;QARQ,OAAE,GAAY,UAAU,CAAC;QAC1B,SAAI,GAAW,EAAE,CAAC;QAClB,cAAS,GAAY,CAAC,CAAC;QACvB,QAAG,GAAW,EAAE,CAAC;QACjB,UAAK,GAAY,CAAC,CAAC;QACnB,SAAI,GAAY,EAAE,CAAC;QAClB,SAAI,GAAY,CAAC,CAAC;QAClB,YAAO,GAAa,KAAK,CAAC;IAGl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13 +3,44 @@ let timing; class Timing { constructor() { this.data = {}; + this.fromArduino = { + 'c': 'cam', + '3': 'cam2', + '4': 'cams', + 'b': 'black', + 'p': 'proj', + 'w': 'proj2', + 'x': 'projs' + }; + this.fromCmd = { + 'CF': 'cam', + 'CB': 'cam', + 'BF': 'black', + 'BB': 'black', + 'C2F': 'cam2', + 'C2B': 'cam2', + 'CCF': 'cams', + 'CCB': 'cams', + 'CFCB': 'cams', + 'CBCF': 'cams', + 'PF': 'proj', + 'PB': 'proj', + 'P2F': 'proj2', + 'P2B': 'proj2', + 'PPF': 'projs', + 'PPB': 'projs', + 'PFPB': 'projs', + 'PBPF': 'projs' + }; } reset(profile) { const keys = Object.keys(profile); const cmds = Object.keys(cfg.cmd); let cam; let proj; + let pad; for (let key of keys) { + console.log(key); if (key === 'label') { continue; } @@ -17,37 +48,48 @@ class Timing { cam = 0; cam += profile[key].time; cam += profile[key].delay; - for (let cmd of cmds) { - if (cmd.indexOf('camera') !== -1 || cmd.indexOf('black') !== -1) { - this.data[cfg.cmd[cmd]] = cam; - } + cam += profile[key].momentary; + pad = 0; + if (typeof profile['black'] !== 'undefined' && typeof profile['black'].before !== 'undefined' && typeof profile['black'].after !== 'undefined') { + pad = (profile['black'].before + profile['black'].after); } + this.data['cam'] = cam; + this.data['cam2'] = cam; + this.data['cams'] = cam; + this.data['black'] = cam + pad; } else if (key === 'proj') { proj = 0; proj += profile[key].time; proj += profile[key].delay; - for (let cmd of cmds) { - if (cmd.indexOf('projector') !== -1) { - this.data[cfg.cmd[cmd]] = proj; - } - } + proj += profile[key].momentary; + this.data['proj'] = proj; + this.data['proj2'] = proj; + this.data['projs'] = proj; } } } + restore(timing) { + this.data = timing; + } //update with rolling average - update(cmd, ms) { - if (typeof this.data[cmd] !== 'undefined') { - this.data[cmd] = (this.data[cmd] + ms) / 2; + update(c, ms) { + let cmd = this.fromArduino[c]; + if (typeof cmd !== 'undefined' && typeof this.data[cmd] !== 'undefined') { + this.data[cmd] = Math.round((this.data[cmd] + ms) / 2); } } //get current value - get(cmd) { - if (typeof this.data[cmd] !== 'undefined') { + get(c) { + const cmd = this.fromCmd[c]; + if (typeof cmd !== 'undefined' && typeof this.data[cmd] !== 'undefined') { return this.data[cmd]; } return 0; } + store() { + ipcRenderer.send('profile', { timing: this.data }); + } } timing = new Timing(); module.exports = timing; diff --git a/app/lib/ui/timing.js.map b/app/lib/ui/timing.js.map index 7d9fec0..704a8be 100644 --- a/app/lib/ui/timing.js.map +++ b/app/lib/ui/timing.js.map @@ -1 +1 @@ -{"version":3,"file":"timing.js","sourceRoot":"","sources":["../../src/lib/ui/timing.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,IAAI,MAAe,CAAC;AAMpB,MAAM,MAAM;IAIX;QAHQ,SAAI,GAAgB,EAE3B,CAAA;IAGD,CAAC;IAEM,KAAK,CAAE,OAAa;QAC1B,MAAM,IAAI,GAAc,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAc,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,GAAY,CAAC;QACjB,IAAI,IAAa,CAAC;QAClB,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;YACrB,IAAI,GAAG,KAAK,OAAO,EAAE;gBACpB,SAAQ;aACR;iBAAM,IAAI,GAAG,KAAK,KAAK,EAAE;gBACzB,GAAG,GAAG,CAAC,CAAC;gBACR,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACzB,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;gBAC1B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;oBACrB,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE;wBAChE,IAAI,CAAC,IAAI,CAA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B,CAAC;IAED,6BAA6B;IACtB,MAAM,CAAE,CAAU,EAAE,EAAW;QACrC,IAAI,GAAG,GAAY,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACvC,IAAI,OAAO,GAAG,KAAK,WAAW,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,WAAW,EAAE;YACxE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;SACvD;IACF,CAAC;IAED,mBAAmB;IACZ,GAAG,CAAE,CAAU;QACrB,MAAM,GAAG,GAAY,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACrC,IAAI,OAAO,GAAG,KAAK,WAAW,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,WAAW,EAAE;YACxE,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACtB;QACD,OAAO,CAAC,CAAC;IACV,CAAC;IAEM,KAAK;QACX,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,EAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IACpD,CAAC;CACD;AAED,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;AAEtB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/app/src/lib/ui/devices.ts b/app/src/lib/ui/devices.ts index d2d1b82..5e14574 100644 --- a/app/src/lib/ui/devices.ts +++ b/app/src/lib/ui/devices.ts @@ -82,6 +82,9 @@ class Devices { timing.reset(p); //devices.profile(arg.profile) } + if (arg && arg.timing) { + timing.restore(arg.timing); + } if (arg.projector_second) { //add second row of projector pads to grid @@ -127,7 +130,7 @@ class Devices { const p : any = cfg.profiles[profile]; const keys : any[] = Object.keys(p); for (let key of keys) { - cfg[key] = keys[key] + cfg[key] = keys[key]; } timing.reset(p); if (typeof p.light !== 'undefined' && p.light === false) { @@ -136,6 +139,8 @@ class Devices { light.enable(); } ipcRenderer.send('profile', { profile }) + timing.store(); + } intval () { diff --git a/app/src/lib/ui/seq.ts b/app/src/lib/ui/seq.ts index 1241f10..b943f1e 100644 --- a/app/src/lib/ui/seq.ts +++ b/app/src/lib/ui/seq.ts @@ -75,6 +75,8 @@ class Sequence { $('#cmd_capper_off').addClass('active'); $('#cmd_capper_on').removeClass('active'); } + this.stats(); + timing.store(); } } return event.returnValue = true; @@ -207,28 +209,13 @@ class Sequence { } return true; }); - console.dir(cfg); + //timing for (let step of this.grid) { if (!step) continue c = step.cmd; - if (c === cfg.cmd.camera_forward || c === cfg.cmd.camera_backward){ - ms += cfg.arduino.cam.time; - ms += cfg.arduino.cam.delay; - ms += cfg.arduino.serialDelay; - } - if (c === cfg.cmd.projector_forward || c === cfg.cmd.projector_backward){ - ms += cfg.arduino.proj.time; - ms += cfg.arduino.proj.delay; - ms += cfg.arduino.serialDelay; - } - if (c === cfg.cmd.black_forward || c === cfg.cmd.black_backward){ - ms += cfg.arduino.black.before; - ms += cfg.arduino.black.after; - ms += cfg.arduino.cam.time; - ms += cfg.arduino.cam.delay; - ms += cfg.arduino.serialDelay; - } + ms += timing.get(c); + ms += cfg.arduino.serialDelay; ms += cfg.arduino.sequenceDelay; if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) { diff --git a/app/src/lib/ui/timing.ts b/app/src/lib/ui/timing.ts index 571f9c2..b37be80 100644 --- a/app/src/lib/ui/timing.ts +++ b/app/src/lib/ui/timing.ts @@ -7,9 +7,41 @@ interface TimingData { } class Timing { - private data : TimingData = { + public data : TimingData = { } + + private fromArduino : any = { + 'c' : 'cam', + '3' : 'cam2', + '4' : 'cams', + 'b' : 'black', + 'p' : 'proj', + 'w' : 'proj2', + 'x' : 'projs' + } + + private fromCmd : any = { + 'CF' : 'cam', + 'CB' : 'cam', + 'BF' : 'black', + 'BB' : 'black', + 'C2F': 'cam2', + 'C2B': 'cam2', + 'CCF' : 'cams', + 'CCB' : 'cams', + 'CFCB': 'cams', + 'CBCF': 'cams', + 'PF' : 'proj', + 'PB' : 'proj', + 'P2F' : 'proj2', + 'P2B' : 'proj2', + 'PPF' : 'projs', + 'PPB' : 'projs', + 'PFPB' : 'projs', + 'PBPF' : 'projs' + } + constructor () { } @@ -19,6 +51,7 @@ class Timing { const cmds : string[] = Object.keys(cfg.cmd); let cam : number; let proj : number; + let pad : number; for (let key of keys) { if (key === 'label') { continue @@ -26,38 +59,53 @@ class Timing { cam = 0; cam += profile[key].time; cam += profile[key].delay; - for (let cmd of cmds) { - if (cmd.indexOf('camera') !== -1 || cmd.indexOf('black') !== -1) { - this.data[cfg.cmd[cmd]] = cam; - } + cam += profile[key].momentary; + pad = 0; + + if (typeof profile['black'] !== 'undefined' && typeof profile['black'].before !== 'undefined' && typeof profile['black'].after !== 'undefined') { + pad = (profile['black'].before + profile['black'].after); } + + this.data['cam'] = cam + this.data['cam2'] = cam + this.data['cams'] = cam + this.data['black'] = cam + pad } else if (key === 'proj') { proj = 0; proj += profile[key].time; proj += profile[key].delay; - for (let cmd of cmds) { - if (cmd.indexOf('projector') !== -1) { - this.data[cfg.cmd[cmd]] = proj; - } - } + proj += profile[key].momentary; + this.data['proj'] = proj; + this.data['proj2'] = proj; + this.data['projs'] = proj; } } } + public restore (timing : TimingData) { + this.data = timing; + } + //update with rolling average - public update (cmd : string, ms : number) { - if (typeof this.data[cmd] !== 'undefined') { - this.data[cmd] = (this.data[cmd] + ms) / 2; + public update (c : string, ms : number) { + let cmd : string = this.fromArduino[c]; + if (typeof cmd !== 'undefined' && typeof this.data[cmd] !== 'undefined') { + this.data[cmd] = Math.round((this.data[cmd] + ms) / 2); } } //get current value - public get (cmd : string) { - if (typeof this.data[cmd] !== 'undefined') { + public get (c : string) : number { + const cmd : string = this.fromCmd[c]; + if (typeof cmd !== 'undefined' && typeof this.data[cmd] !== 'undefined') { return this.data[cmd]; } return 0; } + + public store () { + ipcRenderer.send('profile', { timing : this.data }) + } } timing = new Timing(); diff --git a/src/devices/index.ts b/src/devices/index.ts index 1fc5263..5fe811d 100644 --- a/src/devices/index.ts +++ b/src/devices/index.ts @@ -53,9 +53,16 @@ class Devices { * local settings object. **/ private listener (event : any, arg : any){ - this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); - this.settings.update('profile', arg.profile); - this.settings.save(); + if (typeof arg.profile !== 'undefined') { + this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); + this.settings.update('profile', arg.profile); + this.settings.save(); + } + if (typeof arg.timing !== 'undefined') { + this.log.info(`Saving timing info`, 'SETTINGS', false, false); + this.settings.update('timing', arg.timing); + this.settings.save(); + } } /** * @@ -501,7 +508,10 @@ class Devices { camera, projector, light, - profile: this.settings.state.profile + profile: this.settings.state.profile + } + if (this.settings.state.timing) { + args.timing = this.settings.state.timing } if (projector_second && projector_second.arduino) { diff --git a/src/settings/index.ts b/src/settings/index.ts index c462654..0543c53 100644 --- a/src/settings/index.ts +++ b/src/settings/index.ts @@ -16,7 +16,8 @@ class Settings { camera : {}, projector : {}, light : {}, - capper : {} + capper : {}, + timing : {} } public state : any; /** -- 2.40.1