-
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? |
Not sure how to do that with the web ui, but it's easy at the CLI.
It looks like you have a working branch for this change, so I assume you have git and the allsky source on your Pi. But you don't need to work on your Pi - you could do this inside a VM on your laptop/desktop. Anyway, you just keep committing and pushing changes on that branch until it's ready to be merged. Github's docs are pretty good:
Maybe there's something in the github docs about making changes using the github Web UI. |
@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 - <jacquin.thomas@gmail.com>
Contributors:
-Knut Olav Klo
-Daniel Johnsen
-Yang and Sam from ZWO
-Robert Wagner
-Michael J. Kidd - <linuxkidd@gmail.com>
-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.