From b15b59be789dd165c553c4a37109c8ec1a1483ca Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Sat, 10 Nov 2018 20:04:42 +0000 Subject: [PATCH] Updated TODO --- openflexure_microscope/api/static/main_v1.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openflexure_microscope/api/static/main_v1.js b/openflexure_microscope/api/static/main_v1.js index 919bf6a8..06dfd47d 100644 --- a/openflexure_microscope/api/static/main_v1.js +++ b/openflexure_microscope/api/static/main_v1.js @@ -56,6 +56,8 @@ function getStagePositions() { safeRequest("GET", baseURI+"/position", null, updatePositionCallback) } +// TODO: Combine setStagePositions and moveStagePositions, with bool argument for 'absolute' + function setStagePositions(x_abs, y_abs, z_abs) { // Make a position request function absMoveCallback(response, status) { @@ -132,6 +134,7 @@ addEventListener("keydown", function (e) { // If not currently in an input box if (!(e.target instanceof HTMLInputElement)) { + // TODO: Remove this if condition? Pointless? // If stage movement keys are pressed if ((leftKeyID in keysDown) || (rightKeyID in keysDown) || (upKeyID in keysDown) || (downKeyID in keysDown) || (pgupKeyID in keysDown) || (pgdnKeyID in keysDown)) { // Calculate movement array