Skip to content

Commit

Permalink
Fixes for losmandy mount
Browse files Browse the repository at this point in the history
  • Loading branch information
gnthibault committed Sep 5, 2023
1 parent e848896 commit c6da635
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Mount/IndiG11.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def set_time_config(self):
Losmandy Gemini.TIME_UTC.OFFSET=2
:return:
"""
utc_time_str = self.serv_time.get_astropy_time_from_utc().value.strftime("%Y-%m-%dT%H:%M:%S")
utc_time_str = self.serv_time.get_astropy_time_from_utc().value.strftime("%Y-%d-%mT%H:%M:%S")
utc_offset_value = self.serv_time.timezone.localize(self.serv_time.get_astropy_time_from_utc().value).utcoffset().total_seconds()/60/60
self.set_text("TIME_UTC", {"UTC": utc_time_str}, sync=True)
self.set_number('TIME_UTC', {'OFFSET': utc_offset_value}, sync=True)
Expand Down
4 changes: 3 additions & 1 deletion Service/SceneVizualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,7 @@ def stop(self):
try:
self.join()
self.logger.debug(f"Vizualization thread successfully stopped")
except RuntimeError as e: # cannot join thread before it is started
# threads can only be started once
super().__init__(name="observatory_control_scene_vizualization")
except Exception as e: # cannot join thread before it is started
self.logger.debug(f"Most likely thread was not started: {e}")
2 changes: 1 addition & 1 deletion conf_files/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Remote observatory
observatory:
module: Observatory
investigator: gnthibault
latitude: 43.93447527626349 # Degrees
latitude: 45.93447527626349 # Degrees
longitude: 5.710523353974106 # Degrees
elevation: 650.0 # Meters
timezone: Europe/Paris #This is not mandatory, just speeds up startup
Expand Down
2 changes: 1 addition & 1 deletion conf_files/config_backyard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Remote observatory
observatory:
module: Observatory
investigator: gnthibault
latitude: 43.934807501800606 # Degrees
latitude: 45.934807501800606 # Degrees
longitude: 5.710652100000001 # Degrees
elevation: 650.0 # Meters
timezone: Europe/Paris #This is not mandatory, just speeds up startup
Expand Down
4 changes: 2 additions & 2 deletions conf_files/spectral_targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ targets :
gain: 150
offset: 30
exp_time_sec: 5
"Mizar":
"Kochab":
priority: 0
count: 2
temperature: 15
gain: 150
offset: 30
exp_time_sec: 5
"Alioth":
"Pherkad":
priority: 0
count: 2
temperature: 15
Expand Down

0 comments on commit c6da635

Please sign in to comment.