Skip to content

fix: slicecam guiding flag reads wrong field#456

Merged
astronomerdave merged 1 commit into
mainfrom
DH/fix-guiding-freshness
Jun 24, 2026
Merged

fix: slicecam guiding flag reads wrong field#456
astronomerdave merged 1 commit into
mainfrom
DH/fix-guiding-freshness

Conversation

@astronomerdave

Copy link
Copy Markdown
Contributor

Problem:
"Put on slit" intermittently fails when acam guiding is off (telescope doesn't move and command silently does nothing).

Cause:
If acam is not guiding then slicecam can send offsets directly to the TCS. But if it is guiding, then it changes acam's goal.
I was reading the is_acam_guiding state by looking at the message key Key::Acamd::IS_ACQUIRED but that is true (and stays true) after an acquisition, whether or not we are currently guiding. So it could read "guiding" when actually not guiding. The intermittent part is the occasional acquired-but-not-guiding window.

Fix:
populate the flag from Key::Acamd::ACQUIRE_MODE which contains { standby acquire guiding }

This replaces PR #450. That applied a band-aid which masked the true problem.

(the target can be acquired but not necessarily guiding)

@scizen9 scizen9 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approve.

@astronomerdave astronomerdave merged commit 9443a8e into main Jun 24, 2026
2 checks passed
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.

3 participants