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

Implement "experimental" exposure mode for ZWO #2731

Merged
merged 30 commits into from
Jun 2, 2023

Conversation

EricClaeys
Copy link
Collaborator

  • Add an "experimentalExposure" setting for ZWO cameras that when enabled, will use our auto-exposure algorithm at night in addition to daytime.
  • Allow the user to set the target mean for daytime and nighttime the same as is done for RPi. This happens even if experimentalExposure is not enabled.
  • Allow separate min, max, and default values in the WebUI for day and night.

* Remove "#ifdef HISTOGRAM" - it's always used and will be replaced.
* Do more error checking.
* Add "experimental" exposure mode that uses our auto-exposure algorithm at night.  This works well in limited testing but needs more testing.
* Add "useSnapshotMode" for a future addition that uses ZWO's snapshot mode instead of video mode to take a picture.
* Modify many Log() message for better troubleshooting.
* Change indenting in several places to make code easier to read.
* When ping-ponging, add a percent of the number of ping pongs (basically, a unique amount) to the exposure time.  Not sure it helps, but try anyhow.
Also, move some lines to match the order in the WebUI
No need for "else" after "continue"
* Split "mean" into "daymean" and "nightmean" since their settings are different.
* "Exposure" output to CC file needs to be in ms to match the WebUI.
* Add day/night entries whose defaults are different.
The WebUI uses 0.0 to 1.0 (just like with RPi), but our current ZWO auto-exposure algorithm uses 0 to 255.
* [a-z]_min/_max/_default/_display no longer have [a-z].  This makes it less error prone when adding settings.  These fields' values are obtained from the fields' CC file entries (if present).
* Values for "day_" and "night_" field values get their values from the setting name's entry in the CC file.  For example, "dayexposure" and "nightexposure" have different defaults: "day_default" and "night_default", whereas their min and max values are the same.
The "[a-z]_min/_max/_default/_display" values no longer have the "[a-z]" which makes it easier and less error prone when adding settings.
When _min/_max/_default/_display are used with a setting whose name begins with "day" or "night", the day and night values are the same in the CC file.
@EricClaeys EricClaeys merged commit a5debba into dev Jun 2, 2023
@EricClaeys EricClaeys deleted the Implement-"experimental"-exposure-mode-for-ZWO branch June 2, 2023 12:22
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