Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
telescope
Commits
a81b705d
Commit
a81b705d
authored
Jan 07, 2018
by
Tammo Jan Dijkema
Browse files
Remove separate trace2port host
parent
0ef6faee
Changes
2
Hide whitespace changes
Inline
Side-by-side
telescope/telescope.ini
View file @
a81b705d
...
...
@@ -4,7 +4,4 @@ Port_Read_J2000 : 11030
Port_Write_J2000
:
11031
Port_Write_AzEl
:
11041
Port_Write_Offset:
11011
[Trace2Port]
HostName:
consoledemo.dmz.camras.nl
Port:
11042
Port_Trace2Port
:
11042
telescope/telescope.py
View file @
a81b705d
...
...
@@ -19,7 +19,7 @@ logging.basicConfig(level=logging.DEBUG)
_telescope__num_instances
=
0
class
telescope
():
def
__init__
(
self
,
setmode
=
None
,
consoleHost
=
None
,
trace2portHost
=
None
):
def
__init__
(
self
,
setmode
=
None
,
consoleHost
=
None
):
'''
Initializes a telescope instance. The mode for writing can be
'J2000' or 'AZEL'.
...
...
@@ -37,8 +37,6 @@ class telescope():
logging
.
warning
(
"You are using the actual console, not a demo!"
)
else
:
raise
ValueError
(
"Talking to the actual console can only be done from mercurius"
)
if
trace2portHost
is
None
:
trace2portHost
=
config
.
get
(
'Trace2Port'
,
'HostName'
)
self
.
dist_az
=
None
self
.
dist_el
=
None
...
...
@@ -85,8 +83,8 @@ class telescope():
self
.
_event_traces
=
threading
.
Event
()
thread_read_traces
=
threading
.
Thread
(
target
=
self
.
_readtraces
,
args
=
(
con
fig
.
get
(
'Trace2Port'
,
'Hostname'
)
,
config
.
getint
(
'
Trace2Port'
,
'
Port'
)))
con
soleHost
,
config
.
getint
(
'
Console'
,
'Port_Trace2
Port'
)))
thread_read_traces
.
daemon
=
True
thread_read_traces
.
start
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment