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

RPiHQ libcamera+raspistill #822

Merged
merged 40 commits into from
Dec 3, 2021
Merged

RPiHQ libcamera+raspistill #822

merged 40 commits into from
Dec 3, 2021

Conversation

EricClaeys
Copy link
Collaborator

No description provided.

Don't assume the extension of the dark frame is the same as the light frame.  It the future the dark will likely by .png and the light .jpg.
Work with $CURRENT_IMAGE passed to us (in the future), or not passed to us (present).
Use $DARKS_DIR instead of $ALLSKY_DARKS, since in the future when darks are supported per-camera, DARKS_DIR will point to the camera-specific directory.
Also added {} around some variables.
Added/changed some comments for clarity.
Based on a new command-line argument, work with either raspistill or libcamera-still.
Pass the new "-cmd" option to the capture_RPiHQ command to let it know which command to use.
capture_RPiHQ.cpp sets the value of some variables based on whether or not libcamera or raspistill is being used.
Fixed saturation and brightness boundaries on libcamera.
Remove a few unnecessary comments.
Update some Log messages to display friendlier times.
Reorders some statements to be more like ZWO capture.  Made the "Starting ..." statements like ZWO.
Set initial exposure to user-specified values, like ZWO does.
Indented to make easier to find in log file and to be like ZWO.
Remove "asi" from variable names.
Don't write to test.jpg since we never read it.
Clarify some Log messages.
RPiHQcalcMean() now returns the mean.
Removed debugLevel since it was redundant with the global debugLevel.
Clarified some comments.
Aligned values and comments.
and fix a Log() message
Renamed a bunch of variables to get rid of "asi".
Added and/or uncommented a lot of ZWO variables because we can now use them.
capture function now reads the file just saved and puts into cv::Mat.
"exposure" is set by capture function to the exposure used.
Added functions to display text and display units of time consistently.
Deleted some useless Log messages and comments.
Added #define's to be compatible with ZWO.
Added code to handle changing bins in overlay text
Print better message when starting exposure.
Print better message when sleeping.
Added missing command-line arguments and moved some others to be near similar arguments.
Moved some curley braces and indented properly in a few places.
EricClaeys and others added 5 commits November 24, 2021 13:04
…we have to calculate the startpoint for ExposureLevel
The relationship between ZWO gain (unit 0.1 dB) and gain should be reviewed.
My guess: gain = 10 ^ (ZWO gain / 20)
In the future, the ZWO control should also use the exposure time and gain
for allsky the pictures should be the same with these settings:
10s, ZWO gain 200
100s, ZWO gain 0
60s, ZWO gain 73
Can someone test this for me with a ZWO camera?
Cleanup: bullseye has problems to detect cameras - workaround
Cleanup: ZWO gain=0.1 dB , RPiHQ gain=factor
cleanup: first exposure with currentRaspistillSetting.shutter_us, so …
Copy link
Collaborator

@AndreasLMeg AndreasLMeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only a quick review (not tested) to unblock the PR

"asi" is specific to ZWO cameras
@EricClaeys EricClaeys merged commit b73e50c into master Dec 3, 2021
@EricClaeys EricClaeys deleted the RPiHQ---libcamera+raspistill branch December 3, 2021 17:04
@Shand359
Copy link

Shand359 commented Dec 3, 2021

now this branch has been deleted there is no workaround to getting the HQ camera working

@EricClaeys
Copy link
Collaborator Author

@Shand359 we merged the branch so it's official now. You can grab the latest files from GitHub.

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.

4 participants