Skip to content

Commit 5c70589

Browse files
Merge pull request #891 from zacsimile/flip-docs
Add stage flip flag documentation
2 parents 9c718f3 + cea3632 commit 5c70589

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

docs/source/user_guide/software_configuration.rst

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,15 @@ specifies joystick-controlled axes.
9494
microscopes:
9595
microscope1:
9696
stage:
97-
hardware:
98-
-
97+
hardware:
98+
-
9999
name: stage
100100
type: ASI
101101
serial_number: 123456789
102102
axes: [x, y, z, f] # Software
103103
axes_mapping: [M, Y, X, Z] # M Shear axis mapping
104104
105-
106-
-
105+
-
107106
name: stage
108107
type: SyntheticStage
109108
serial_number: 987654321
@@ -127,6 +126,11 @@ specifies joystick-controlled axes.
127126
theta_offset: 0
128127
f_offset: 0
129128
129+
flip_x: False
130+
flip_y: False
131+
flip_z: False
132+
flip_f: False
133+
130134
131135
132136
First, we set the axes controlled by each piece of hardware and a mapping from the
@@ -140,12 +144,27 @@ that axes should be defined as a ``SyntheticStage``, as shown above for ``Theta`
140144
Below this, we specify that only ``X``, ``Y`` and ``Z`` axes may be controlled by a
141145
joystick and we set the stage bounds for each of the axes.
142146

143-
Finally, we set the offset for each stage axis. This is an offset relative to other
147+
Below this, we set the minimum and maximum values for each axis. This can be used to
148+
set boundaries that prevent the stage from crashing into the sides of a chamber.
149+
150+
Below this, we set the offset for each stage axis. This is an offset relative to other
144151
microscopes (e.g. ``microscope2``) specified in ``configuration.yaml``. In this case,
145152
``microscope1`` is the reference microscope. Additional microscopes may ask the stage
146153
to move to a different offset in order to observe the sample at the same position as
147154
``microscope1``.
148155

156+
Finally, we set the flip flags. These are important for getting
157+
:ref:`multiposition <user_guide/gui_walkthrough:multiposition>` acquisitions to
158+
run properly. We set a convention in the software to expect that increasing value along
159+
an axis brings the sample further into our field of view. That is, increasing the
160+
x-axis position should bring the sample further to the right in the frame (in the case
161+
:ref:`Flip XY <user_guide/gui_walkthrough:LUT>` is toggled on) and increasing the
162+
y-axis position should bring the sample down. Increasing the z-position should bring
163+
the sample closer to the objective. If the stage behaves the opposite of any of these
164+
ways, it is prudent to set the flip flag. If set properly, the calculations for moving
165+
through multiple positions will be performed correctly. These only need to be
166+
configured once when setting up the microscope.
167+
149168
-----------------
150169

151170
Stage Axes Definition

0 commit comments

Comments
 (0)