Skip to content
GitLab
Menu
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
31d4af94
Commit
31d4af94
authored
Apr 17, 2018
by
Tammo Jan Dijkema
Browse files
Add switches to getJ2000
parent
61ad69e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
telescope.py
View file @
31d4af94
...
...
@@ -317,16 +317,18 @@ class Telescope:
def
getJ2000
(
self
):
"""
Generates dicts with 'radec' and 'setpoint_radec',
containing radec and setpoint_radec, at whichever
speed the console is outputting them (probably once a second).
:return: Generates a dict with keys ('radec', 'setpoint_radec', 'tracking_enabled',
'refraction_enabled', 'model_enabled') at the speed of output of the console (once a second)
"""
self
.
_event_traces
.
clear
()
while
True
:
self
.
_event_j2000
.
wait
()
self
.
_event_j2000
.
clear
()
yield
({
'radec'
:
self
.
radec
,
'setpoint_radec'
:
self
.
setpoint_radec
})
'setpoint_radec'
:
self
.
setpoint_radec
,
'tracking_enabled'
:
self
.
tracking_enabled
,
'refraction_enabled'
:
self
.
refraction_enabled
,
'model_enabled'
:
self
.
model_enabled
})
def
getTraces
(
self
):
"""
...
...
@@ -345,4 +347,4 @@ class Telescope:
class
telescope
(
Telescope
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
Telescope
,
self
).
__init__
(
*
args
,
**
kwargs
)
logging
.
warning
(
"Please use the new class name Telescope (with capital T)"
)
\ No newline at end of file
logging
.
warning
(
"Please use the new class name Telescope (with capital T)"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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