-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 position objective changer #83
Conversation
software/control/gui_hcs.py
Outdated
@@ -482,6 +492,14 @@ def setupHardware(self): | |||
if SQUID_FILTERWHEEL_HOMING_ENABLED: | |||
self.squid_filter_wheel.homing() | |||
|
|||
if USE_XERYON: | |||
self.objective_changer.homing() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be home
instead of homing
software/control/gui_hcs.py
Outdated
if DEFAULT_OBJECTIVE == XERYON_OBJECTIVE_SWITCHER_POS_1: | ||
self.objective_changer.moveToPosition1() | ||
elif DEFAULT_OBJECTIVE == XERYON_OBJECTIVE_SWITCHER_POS_2: | ||
self.objective_changer.moveToPosition2() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make XERYON_OBJECTIVE_SWITCHER_POS_x
a list. E.g. XERYON_OBJECTIVE_SWITCHER_POS_1 = ['4x','10x']
, XERYON_OBJECTIVE_SWITCHER_POS_2 = ['25x','40x','60x']
.
self.position1 = -19 | ||
self.position2 = 19 | ||
|
||
self.current_position = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it should be None
def stopScan(self): | ||
self.axisX.stopScan() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The objective changer does not need stopScan
|
||
def homing(self): | ||
self.axisX.findIndex() | ||
self.axisX.stopScan() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is stopScan
needed here?
import time | ||
import serial | ||
|
||
from control.Xeryon import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Alpaca233 we should avoid import *
Xeryon objective switcher implementation. Tested with hardware