Repository navigation
Conversation
Replace the ASIC mailbox (0x1674-0x1678) with the firmware sensor I2C command on XU unit 3, selector 2. High/low register pairs are written in a single transaction and no longer poll for completion. Move auto exposure from the 0x1673 workaround register to bit 0 of 0x8100, and fix the AE readback unpacking asic_read in the wrong order.
Throttle updates to every 50 ms during a drag now that sensor writes are fast. Render camera controls without a nested component so store updates mid-drag no longer remount the slider.
|
Preview build: curl -s https://raw.githubusercontent.com/DeepWaterExploration/dweOS/main/install.sh | sudo bash -s preview-pr-638Rebuilt on every push. Closing this pull request deletes the preview. |
Firmware with the older auto exposure workaround only changes AE when 0x1673 is written, so set it alongside bit 0 of 0x8100.
Update settings in memory immediately and write the file from a background thread at most once per second, so bursts of control changes (e.g. dragging a slider) become a single write. Pending saves are flushed on cleanup.
Live slider updates made this log on every change.
3 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switches stellarHD sensor reads/writes from the ASIC mailbox workaround (
0x1674–0x1678) to the firmware sensor I2C command (XU unit 3, selector 2, 64-byte payload).Shutter, ISO and strobe width write their high/low registers in one 2-byte transaction instead of two mailbox writes, and no longer poll
REG_TRIGfor completion (which could block up to 5 s).The sensor slave id is read from
0x8601, falling back to0x60.Auto exposure now uses bit 0 of
0x8100(0x61on /0x60off), set by changing only that bit. The legacy0x1673register is still written alongside it, because firmware with the older workaround only changes AE through that register. Removes the mislabelledREG_STROBE_ENABLED.Fixes the AE readback unpacking
asic_read's(ret, val)in the wrong order.Since writes are now fast, integer sliders send their value every 50 ms while dragging, and the +/− buttons send immediately. Camera controls are no longer rendered through a component defined inside
CameraControls, which remounted every slider on each store update and broke dragging.Device settings saves are queued: settings update in memory immediately and the file is written by a background thread at most once per second, so a slider drag no longer rewrites the file on every update. Pending saves are flushed on shutdown.
Silences the per-option debug log, which fired on every live slider update.
Fixes #636
Fixes #637
Type of change
Quick Checklist