Merge branch 'master' of https://gitlab.com/openflexure/openflexure-microscope-software
This commit is contained in:
commit
49331d36a8
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ function getStagePositions() {
|
||||||
safeRequest("GET", baseURI+"/position", null, updatePositionCallback, false)
|
safeRequest("GET", baseURI+"/position", null, updatePositionCallback, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Combine setStagePositions and moveStagePositions, with bool argument for 'absolute'
|
||||||
|
|
||||||
function setStagePositions(x_abs, y_abs, z_abs) {
|
function setStagePositions(x_abs, y_abs, z_abs) {
|
||||||
// Make a position request
|
// Make a position request
|
||||||
function absMoveCallback(response, status) {
|
function absMoveCallback(response, status) {
|
||||||
|
|
@ -145,6 +147,7 @@ addEventListener("keydown", function (e) {
|
||||||
// If not currently in an input box
|
// If not currently in an input box
|
||||||
if (!(e.target instanceof HTMLInputElement)) {
|
if (!(e.target instanceof HTMLInputElement)) {
|
||||||
|
|
||||||
|
// TODO: Remove this if condition? Pointless?
|
||||||
// If stage movement keys are pressed
|
// 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)) {
|
if ((leftKeyID in keysDown) || (rightKeyID in keysDown) || (upKeyID in keysDown) || (downKeyID in keysDown) || (pgupKeyID in keysDown) || (pgdnKeyID in keysDown)) {
|
||||||
// Calculate movement array
|
// Calculate movement array
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue