Skip to content

Conversation

elanaku
Copy link
Contributor

@elanaku elanaku commented Oct 29, 2024

No description provided.

@elanaku elanaku requested a review from edennihy October 29, 2024 16:52
"""Abstract method to set the instrument. Change the filter
and start tracking.
"""
# slew to desired field
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment should be removed, no slew is happening here.

default: True
position_telescope:
description: If True, position telescope relative to the sun. \
If False, assume the telescope is in correct position.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really, really don't like this idea. We can't rely on the users to avoid a dangerous scenario. When this flag is False, could the users start taking images when the telescope is pointed due West at an elevation of 20 degrees? We need some protection against that.

If we are not going to slew the telescope, we should still assume that we have telescope telemetry and that we can check that the telescope position is not pointed at the sun and raise an exception if it is too close.

)

async def setup_instrument(self, az, el):
"""Abstract method to set the instrument. Change the filter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you want to put the start_tracking in the setup_instrument method...it's misleading. You could either rename this method and it's purpose or (an even better option) split the two.

if comp in self.camera.components_attr:
self.log.debug(f"Ignoring Camera component {comp}.")
setattr(self.camera.check, comp, False)
elif comp in self.tcs.components_attr:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also kind of scary, because the use case is that we really should only ignore the MTDome and MTDomeTrajectory. We should never ignore the MTCS for example, but it is allowed with the way this is configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants