Commit 6e7719e0 authored by marc's avatar marc

telescope class needed tele.tele import

parent b1b9b089
...@@ -18,7 +18,7 @@ from ui.dtobswindow import Ui_mainWindow ...@@ -18,7 +18,7 @@ from ui.dtobswindow import Ui_mainWindow
from astropy import units as u from astropy import units as u
from astropy.coordinates import SkyCoord from astropy.coordinates import SkyCoord
from telescope import telescope from telescope.telescope import telescope
from measurements import Measurements from measurements import Measurements
from metadata import MetaData from metadata import MetaData
from backend import Backend from backend import Backend
...@@ -104,24 +104,24 @@ class DTObservationProgram(Ui_mainWindow): ...@@ -104,24 +104,24 @@ class DTObservationProgram(Ui_mainWindow):
if not self.demo: if not self.demo:
self.myDT = telescope(setmode='J2000', consoleHost=consoleHost) self.myDT = telescope(setmode='J2000', consoleHost=consoleHost)
''' '''
telescopeMode and telescopeOffser required for meta data telescopeMode and telescopeOffset required for meta data
''' '''
self.telescopeMode = 'J2000' self.telescopeMode = 'J2000'
self.telescopeOffset = Non self.telescopeOffset = None
''' '''
As part of the init the current setpoint will be loaded as a single shot measurement. As part of the init the current setpoint will be loaded as a single shot measurement.
This enables the operator to manually define the setpoint using the Console This enables the operator to manually define the setpoint using the Console
''' '''
self.myDT.setRaDec(self.myDT.getSetpoint_RaDec) #self.myDT.setRaDec(self.myDT.getSetpoint_RaDec)
self.radec = SkyCoord(self.myDT.getSetpoint_RaDec) #self.radec = SkyCoord(self.myDT.getSetpoint_RaDec)
(raStr, decStr) = self.radec.to_string('hmsdms').split() #(raStr, decStr) = self.radec.to_string('hmsdms').split()
self.tableWidgetPointings.insertRow(rowPosition) #self.tableWidgetPointings.insertRow(rowPosition)
self.tableWidgetPointings.setItem(rowPosition, 0, QTableWidgetItem(raStr)) #self.tableWidgetPointings.setItem(rowPosition, 0, QTableWidgetItem(raStr))
self.tableWidgetPointings.setItem(rowPosition, 1, QTableWidgetItem(decStr)) #self.tableWidgetPointings.setItem(rowPosition, 1, QTableWidgetItem(decStr))
self.tableWidgetPointings.setItem(rowPosition, 2, QTableWidgetItem("")) #self.tableWidgetPointings.setItem(rowPosition, 2, QTableWidgetItem(""))
self.tableWidgetPointings.setItem(rowPosition, 3, QTableWidgetItem("")) #self.tableWidgetPointings.setItem(rowPosition, 3, QTableWidgetItem(""))
else: else:
self.telescopeMode = None self.telescopeMode = None
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
LogLevel: INFO LogLevel: INFO
[TestConfig] [TestConfig]
#demo: False demo: False
demo: True #demo: True
[Console] [Console]
HostName: http://charon.camras.nl/consoledemo HostName: consoledemo.dmz.camras.nl
#HostName: console #HostName: console
0 10.02459429004687 40.769065 0 83.09576543345065 21.51446
1 10.684793 40.769065 1 83.633212 21.51446
2 10.684793 41.269065 2 83.633212 22.01446
3 10.019563557556424 41.269065 3 83.09388961896134 22.01446
4 83.09576543345065 21.51446
5 83.633212 21.51446
6 83.633212 22.01446
7 83.09388961896134 22.01446
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment