panoptes / POCS

An Observatory Control System for the PANOPTES citizen-science project designed to help find transiting exoplanets! :telescope: :stars:
https://pocs.readthedocs.io/en/latest/
MIT License
80 stars 49 forks source link

DSLR camera initialization errors #1251

Closed wtgee closed 7 months ago

wtgee commented 7 months ago

Certain models of the Canon cameras are failing the initialization procedure because of the hard-coded indexes here: https://github.com/panoptes/POCS/blob/b93d547cd0a30f92bf411d39f72e8d2a62235daa/src/panoptes/pocs/camera/gphoto/canon.py#L51-L60

This appears in the logs as:

PAN007 | gphoto2 error: "\n*** Error ***              \nChoice 9 not found within list of choices.\n*** Error (-2: 'Bad parameters') ***       \n\n"
PAN007 | gphoto2 error: "\n*** Error ***              \n/main not found in configuration tree.\n*** Error (-1: 'Unspecified error') ***       \n\n"