-
Notifications
You must be signed in to change notification settings - Fork 180
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
Update capture.cpp to log camera serial number and configurable ID field #499
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I like where this is going.
Chris, how do I submit a new commit to PR #499 to fix the issues you identified? |
@EricClaeys would you be offended if I take over this PR and either try fix it, or close/reject it and make a new PR? |
@ckuethe no problem if you want to fix it. I view us as a team all working toward the same goal, so it's not too important to me who does what. Thanks for asking. @linuxkidd please take a look at my newest capture_RPiHQ.cpp prior to refactoring. It's has many of the same functions as capture.cpp. Eric |
@ckuethe I just got to the hotel room and went ahead and made the fixes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -h/-help/--help
behavior looks good now, and my camera is detected and identified. But I get a crash if I run capture with no arguments.
./capture
******************************************
*** Allsky Camera Software v0.8.1 | 2021 ***
******************************************
Capture images of the sky with a Raspberry Pi and an ASI Camera
Add -h or --help for available options
Author: Thomas Jacquin - <[email protected]>
Contributors:
-Knut Olav Klo
-Daniel Johnsen
-Yang and Sam from ZWO
-Robert Wagner
-Michael J. Kidd - <[email protected]>
-Chris Kuethe
Segmentation fault (core dumped)
It took me a long time to add the core dump feature, and now you're complaining about it? :-) |
I'll approve to unblock. I agree that it should do something nice, such as run with sensible defaults or emit the help message when no args are given, but crashing is maybe not the most useful thing. |
Interesting, The 120MM-S on my roof doesn't seem to support the serial number field.
That doesn't stop capture from running properly, but I guess we will need to be a little bit careful about assuming that a serial number will be present. |
Here’s what the ZWO tech said. I agree we need to gracefully handle cameras without a serial #:
Almost all cameras support serial number, except for a few very old cameras.
In ASICap, if you can see the SN, that means the camera supports serial number.
|
Fixes #484. Fixes #498
Adds camera ID (for USB 3 cameras) and camera serial number to log output. These will be used in a future update that has different settings for different cameras.