Esempio n. 1
0
# -*- coding: utf-8 -*-
# Forces the motors to move the window to the center position of the FoV

import scanconfig
import scansupport as sws

#### START EXECUTION ######

if (scanconfig.cte_disable_motors_first):
    sws.disableMotors()

print("Check initial motor positions")
sws.motorPositions()

if (scanconfig.cte_enable_motors_first):
    sws.enableMotors()

# Calculate the center position of the window over the FoV
lsx = 0.0
lsy = 0.0

print("lsx: " + str(lsx))
print("lsy: " + str(lsy))

sws.commandMotor(lsx, lsy)

print("Check motor positions after resets")
sws.motorPositions()

sws.motorClose()
Esempio n. 2
0
# Forces ONLY the X and Y motors to move the window to the center of the FoV.  Comp is not commanded.

import scanconfig
import scansupport as sws

#### START EXECUTION ######

if (scanconfig.cte_disable_motors_first):
    sws.disableMotors()

print("Check initial motor positions")
sws.motorPositions()

if (scanconfig.cte_enable_motors_first):
    sws.enableMotors()

# Calculate the center position of the window over the FoV
lsx = 0.0
lsy = 0.0

print("lsx: "+str(lsx))
print("lsy: "+str(lsy))

sws.commandMotorWindow(lsx, lsy)

print("Check motor positions after resets")
sws.motorPositions()

sws.motorClose()