Skip to content

feat: scale plan segments by exposure length - #328

Merged
chvvkumar merged 2 commits into
mainfrom
dev
Oct 13, 2026
Merged

chvvkumar merged 2 commits into
mainfrom
dev

Conversation

@chvvkumar

@chvvkumar chvvkumar commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Imaging plan segments now scale their length based on each image's exposure time, rather than a fixed unit. The dashboard's image-forward display also shows the total exposure length, offering a more accurate visualization of the imaging sequence.

Changes

  • The dashboard's image-forward display now shows the total exposure length in seconds, stacked above the elapsed time.
  • Sub bar and sub ring segments in the plan visualization now scale their length based on each image's exposure time, providing a more accurate representation.
  • The nina_plan_item_t structure includes a new field to store the exposure time in seconds for each plan item.
  • The nina_seg_t structure stores the segment's span in seconds, used for proportional drawing.
  • A new host test verifies the segment scaling behavior with example exposure times.

Analyzed 2 commit(s) | Updated: 2026-10-13T02:06:59.747Z | Generated by GitHub Actions

…ts by exposure seconds

Image-forward (square) bottom-right field now stacks "/ 420s" in Hanken 28
above the elapsed digits, right aligned in the same fixed box sized to
"9999s" at 64, painted in the counter's text colour. The value band grows
upward by that line; everything else is bottom-aligned and does not move.

Sub bar and sub ring segments are drawn proportional to each image's
exposure length instead of one unit per image: nina_plan_item_t gains
exposure_s (Smart Exposure ExposureTime), nina_seg_t gains span (seconds,
1 when unknown so demo mode and plan-less sources draw as before). weight
stays the image count for the fill maths. Row flex grow scales the widest
span to 255; ring angles use span directly; the rebuild fingerprint
includes it. Applies to every layout that draws segments on both families.

Host test d2 added with the live astromele1 shape (L 240 s x 2, Ha 420 s
x 1); 25/25 host tests pass.
feat: scale plan segments by exposure length
@github-actions github-actions Bot changed the title Dev feat: scale plan segments by exposure length Oct 13, 2026
@chvvkumar
chvvkumar merged commit 5d7cfdd into main Oct 13, 2026
6 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.

1 participant