Skip to content

camerad: EXPTIME in msec when an exposure is stopped early - #504

Open
cfremling wants to merge 1 commit into
mainfrom
fix/camerad-exptime-units-on-stop
Open

cfremling wants to merge 1 commit into
mainfrom
fix/camerad-exptime-units-on-stop

Conversation

@cfremling

Copy link
Copy Markdown
Collaborator

EXPTIME is in msec everywhere in camerad (the exptime command; the per-frame write at the expose; ARC's exposure unit is fixed to msec), but stop_exposure overwrote it with the elapsed time in seconds, as a float. A frame stopped early (seq stop, an operator stop mid-exposure) therefore carried an EXPTIME 1000 times too small. It now writes the elapsed time in msec. do_modify_exptime already wrote msec; only its FITS comment said sec.

Applies to main on its own; rebuild and restart camerad. Test: stop an exposure mid-way (at least 5 s before its end); EXPTIME is the elapsed time in msec (about 138000 for a stop after 138 s), not about 138.

Jira: PAL-188. Not yet tested on sky.

🤖 Generated with Claude Code

EXPTIME is written in msec ("exptime" command, and per frame at the
expose), but stop_exposure overwrote it with the elapsed time in seconds,
so a frame stopped early carried EXPTIME 1000 times too small, as a
float. It now writes the elapsed time in msec. do_modify_exptime already
wrote msec; only its FITS comment said sec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T14:27:09.290354Z 2c29b4d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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