Action button to invert z axis in stage coordinates
This commit is contained in:
parent
c7dd269c01
commit
5edf15ca7a
1 changed files with 53 additions and 7 deletions
|
|
@ -1,20 +1,66 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="stageSettings" class="uk-width-large">
|
<div id="stageSettings" class="uk-width-large" v-observe-visibility="visibilityChanged">
|
||||||
The microscope stage is a <b>{{ stageType }}</b
|
The microscope stage is a <b>{{ stageType }}</b>
|
||||||
>. There are no settings to adjust here: to set the geometry of your stage
|
<div>
|
||||||
(i.e. switch between delta and cartesian), you will need to adjust the
|
<div class="uk-margin">
|
||||||
configuration of your microscope, which cannot be done while it is running.
|
<p>
|
||||||
|
<br>
|
||||||
|
Your z motor is currently {{ this.z_inverted }} inverted.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
If you notice that moving in +z moves your objective down,
|
||||||
|
or causes your exposed z gear to turn clockwise,
|
||||||
|
this is backwards.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
Click the button below to switch.
|
||||||
|
</p>
|
||||||
|
<div class="uk-margin">
|
||||||
|
<div class="uk-margin">
|
||||||
|
<action-button
|
||||||
|
class="uk-width-1-2"
|
||||||
|
thing="stage"
|
||||||
|
action="invert_axis_direction"
|
||||||
|
:submit-data="{ axis: 'z' }"
|
||||||
|
submit-label="Invert z"
|
||||||
|
@response=readAxis()
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import ActionButton from "../../labThingsComponents/actionButton.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "StageSettings",
|
name: "StageSettings",
|
||||||
|
|
||||||
components: {},
|
components: {
|
||||||
|
ActionButton,
|
||||||
|
},
|
||||||
|
|
||||||
data: function() {
|
data: function() {
|
||||||
return {};
|
return {
|
||||||
|
z_inverted: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
methods:{
|
||||||
|
visibilityChanged(isVisible) {
|
||||||
|
if (isVisible) {
|
||||||
|
this.readAxis();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async readAxis() {
|
||||||
|
let axes_inverted = await this.readThingProperty(
|
||||||
|
"stage",
|
||||||
|
"axis_inverted"
|
||||||
|
);
|
||||||
|
this.z_inverted = axes_inverted['z'] ? "" : "not ";
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue