From 029dd628b6b6995d3b16ca35962eab28ea795ffc Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Wed, 13 Mar 2019 15:28:17 -0400 Subject: [PATCH] Add comments to cmd --- app/lib/ui/cmd.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/lib/ui/cmd.js b/app/lib/ui/cmd.js index 604d41c..59c4a65 100644 --- a/app/lib/ui/cmd.js +++ b/app/lib/ui/cmd.js @@ -1,5 +1,10 @@ const cmd = {}; +/** + * Move the projector one frame forward + * + * @param {function} callback Function to call after projector moves one frame + **/ cmd.proj_forward = function (callback) { 'use strict'; var res = function (ms) { @@ -20,6 +25,11 @@ cmd.proj_forward = function (callback) { }, mcopy.cfg.arduino.serialDelay); } }; +/** + * Move the projector one frame backward + * + * @param {function} callback Function to call after projector moves one frame + **/ cmd.proj_backward = function (callback) { 'use strict'; var res = function (ms) { @@ -40,6 +50,11 @@ cmd.proj_backward = function (callback) { }, mcopy.cfg.arduino.serialDelay); } }; +/** + * Move the camera one frame forward + * + * @param {function} callback Function to call after camera moves one frame + **/ cmd.cam_forward = function (rgb, callback) { 'use strict'; var off = [0, 0, 0];