Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gain setting #463

Closed
wants to merge 4 commits into from
Closed

Gain setting #463

wants to merge 4 commits into from

Conversation

rwb27
Copy link

@rwb27 rwb27 commented Jan 25, 2018

The latest version of the userland code allows us to manually set the analog and digital gain of the camera. As far as I understand it, these are the last two parameters between where we are currently and full manual control of the camera. I've modified my fork to make PiCamera.analog_gain and PiCamera.digital_gain writeable, because this is much neater than my work-around.

I realise this may not be an appropriate pull request because it relies on things that aren't present on most people's systems (the latest userland is not yet in Raspbian), on the other hand it does just fail with a PiCameraMMALError if you set the parameter and that isn't supported. The current version also results in an AttributeError if you try to set the analog gain, so I don't think I've broken anything even for people without the latest userland.

I have tried to make my docstrings consistent and so on, but please do say if I can tidy up my changes.

rwb27 and others added 4 commits January 25, 2018 15:05
NB I've not yet added the new datatypes for e.g. lens shading.  However, I have wrapped analog and digital gain so that you can set them.
@rwb27 rwb27 mentioned this pull request Feb 9, 2018
@rwb27
Copy link
Author

rwb27 commented Feb 9, 2018

These changes are also included in #470 so I'm closing this for the sake of tidiness.

@waveform80
Copy link
Owner

Closing in favour of #470 (as noted above)

@waveform80 waveform80 closed this Sep 29, 2018
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