-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_skyscanner.py
36 lines (26 loc) · 1.04 KB
/
test_skyscanner.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
import sys
import logging
import signal
import scipy
import numpy
from time import sleep
from datetime import datetime, timedelta
from config import config, skyscan_config
from schedule import observations
import utilities.time_helper
from utilities.image_taker import Image_Helper
from components.camera import getCamera
from components.lasershutter.shutter import LaserShutter
from components.sky_scanner import SkyScanner
from components.skyalert import SkyAlert
from components.powercontrol import PowerControl
# from filterwheel import FilterWheel
powerControl = PowerControl()
# powerControl.turnOn(config['SkyScannerPowerPort'])
# print("turned on SkyScanner")
skyscanner = SkyScanner(skyscan_config['max_steps'], skyscan_config['azi_offset'], skyscan_config['zeni_offset'], skyscan_config['azi_world'], skyscan_config['zeni_world'], skyscan_config['number_of_steps'], skyscan_config['port_location'])
# skyscanner.go_home()
print("finished going home")
# skyscanner.jog(30,30,.3,.3,50)
# powerControl.turnOff(config['SkyScannerPowerPort'])