Add comments to cmd
This commit is contained in:
parent
cf6e4f9de9
commit
029dd628b6
|
@ -1,5 +1,10 @@
|
||||||
const cmd = {};
|
const cmd = {};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move the projector one frame forward
|
||||||
|
*
|
||||||
|
* @param {function} callback Function to call after projector moves one frame
|
||||||
|
**/
|
||||||
cmd.proj_forward = function (callback) {
|
cmd.proj_forward = function (callback) {
|
||||||
'use strict';
|
'use strict';
|
||||||
var res = function (ms) {
|
var res = function (ms) {
|
||||||
|
@ -20,6 +25,11 @@ cmd.proj_forward = function (callback) {
|
||||||
}, mcopy.cfg.arduino.serialDelay);
|
}, 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) {
|
cmd.proj_backward = function (callback) {
|
||||||
'use strict';
|
'use strict';
|
||||||
var res = function (ms) {
|
var res = function (ms) {
|
||||||
|
@ -40,6 +50,11 @@ cmd.proj_backward = function (callback) {
|
||||||
}, mcopy.cfg.arduino.serialDelay);
|
}, 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) {
|
cmd.cam_forward = function (rgb, callback) {
|
||||||
'use strict';
|
'use strict';
|
||||||
var off = [0, 0, 0];
|
var off = [0, 0, 0];
|
||||||
|
|
Loading…
Reference in New Issue