Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:panoptes/POCS into cem40v310-coo…
Browse files Browse the repository at this point in the history
…rds-fix
  • Loading branch information
wtgee committed Dec 8, 2023
2 parents 55f4859 + 081ac82 commit 53c5c60
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion scripts/install/install-pocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function system_deps() {

sudo apt-get -y -qq install \
ack \
astrometry-net \
astrometry.net \
astrometry-data-tycho2-10-19 \
byobu \
curl \
Expand Down
34 changes: 17 additions & 17 deletions src/panoptes/pocs/mount/ioptron/cem40.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ def search_for_home(self):
self.logger.trace(f'Searching for home position.')
time.sleep(1)

def set_target_coordinates(self, *args, **kwargs):
"""After setting target coordinates, check number of positions.
The CEM40 can determine if there are 0, 1, or 2 possible positions
for the given RA/Dec, with the latter being the case for the meridian
flip.
"""
target_set = super().set_target_coordinates(*args, **kwargs)
self.logger.debug(f'Checking number of possible positions for {self._target_coordinates}')
num_possible_positions = self.query('query_positions')
self.logger.debug(f'Number of possible positions: {num_possible_positions}')

if num_possible_positions == 0:
self.logger.warning(f'No possible positions for {self._target_coordinates}')
target_set = False

return target_set
# def set_target_coordinates(self, *args, **kwargs):
# """After setting target coordinates, check number of positions.

# The CEM40 can determine if there are 0, 1, or 2 possible positions
# for the given RA/Dec, with the latter being the case for the meridian
# flip.
# """
# target_set = super().set_target_coordinates(*args, **kwargs)
# self.logger.debug(f'Checking number of possible positions for {self._target_coordinates}')
# num_possible_positions = self.query('query_positions')
# self.logger.debug(f'Number of possible positions: {num_possible_positions}')

# if num_possible_positions == 0:
# self.logger.warning(f'No possible positions for {self._target_coordinates}')
# target_set = False

# return target_set

0 comments on commit 53c5c60

Please sign in to comment.