Skip to content

Set camera fps via config - #4

Open
gardaholm wants to merge 1 commit into
gruvw:mainfrom
gardaholm:main
Open

Set camera fps via config#4
gardaholm wants to merge 1 commit into
gruvw:mainfrom
gardaholm:main

Conversation

@gardaholm

@gardaholm gardaholm commented Mar 28, 2025

Copy link
Copy Markdown

camera_framerate in default_config to change fps from 60 to 50
to avoid flickering led lights

camera_framerate in default_config to change ftp from 60 to 50
@gruvw

gruvw commented Mar 29, 2025

Copy link
Copy Markdown
Owner

Good idea, thank you for implementing. By the way, it's better to create an issue to discuss the topic before submitting a PR. It is also better to develop new features in Git branches, here for examples feature/config-framerate (you can checkout https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZF9C0YMKuns9sLDzK6zoiV for Git/GitHub tutorial).

About the implemention, it is mostly good. I would only store the value of the config in a variable at the top of camera.py for both readability & immutability reasons: _framerate = int(config(Config.camera_framerate)).

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.

2 participants