ctt-server: camera and sensor mode selection on the Preview tab#12
Open
Kletternaut wants to merge 1 commit into
Open
ctt-server: camera and sensor mode selection on the Preview tab#12Kletternaut wants to merge 1 commit into
Kletternaut wants to merge 1 commit into
Conversation
Add camera dropdown (switch between multiple cameras) and resolution dropdown (sensor mode selection) to the capture page's info bar. - camera.py: add list_cameras(), set_mode(); cache sensor modes per model; _apply_mode() now adopts the mode's maximum framerate so the FPS field starts at the correct rate instead of a hardcoded 30. - app.py: add GET /api/cameras, POST /api/camera endpoints. - capture.html: camera + resolution dropdowns in caminfo row; resolution cell spans 2 columns so long mode labels aren't clipped. - app.js: switchCamera(), switchMode() with await loadControls() so the FPS field updates to the selected mode's maximum. - app.css: mode-sel dropdown styling.
Contributor
|
Really sorry, ive not had a chance to look at your change yet. I'll try to look through next week hopef |
Author
|
No need to apologize at all! I completely understand that you are busy, and there is absolutely no pressure. To be honest, the long silence on the other PR (rpicam-apps/#917) just made me a bit insecure about whether I was technically completely on the wrong track with my approach. So I'm actually relieved to hear it's just a matter of time! Take all the time you need, both for that one and for this new CTT PR whenever you get around to it. Thanks for the heads-up! |
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.
Add camera dropdown (switch between multiple cameras) and resolution dropdown (sensor mode selection) to the capture page's info bar.
list_cameras(),set_mode(); cache sensor modes per model;_apply_mode()now adopts the mode's maximum framerate so the FPS field starts at the correct rate instead of a hardcoded 30.GET /api/cameras,POST /api/cameraendpoints.caminforow; resolution cell spans 2 columns so long mode labels like4056 × 3040 · 10‑bit · 10 fpsaren't clipped.switchCamera(),switchMode()withawait loadControls()so the FPS field updates to the selected mode's maximum on both initial load and mode switch.mode-seldropdown styling.