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

GetQHYCCDLiveFrame failing with -1 #30

Open
GuLinux opened this issue May 22, 2017 · 4 comments
Open

GetQHYCCDLiveFrame failing with -1 #30

GuLinux opened this issue May 22, 2017 · 4 comments

Comments

@GuLinux
Copy link

GuLinux commented May 22, 2017

Hello,
I am working on improving PlanetaryImager support for QHY cameras.
I´ve found a strange behaviour with QHY5III290: on many Linux hosts, it seems that GetQHYCCDLiveFrame simply fails with -1.
I´ve tried building the exact same code on OSX, and it appears to run without problems.
When running LiveFrameSample.cpp, it seems that no error is triggered.
On a side note, returning -1 as an error is not enough to diagnose problems.
It might be worth implementing different error codes to be able to understand what is causing the issue, add some logging features, or having a GetQHYCCDLastErrorCode() function to return the last error code (maybe together with a GetQHYCCDLastErrorMessage() to get the string message)

Thanks

@GuLinux
Copy link
Author

GuLinux commented May 22, 2017

Small update: I just found the SetQHYCCDLogLevel API.
But even setting it to TRACE (0) I don't see any message at all when invoking GetQHYCCDLiveFrame.

@GuLinux
Copy link
Author

GuLinux commented Jun 30, 2017

Hello, do you have any update on this?
I tried building an extremely simplified Qt sample application, similar to the code in LiveFrameSample.cpp.
This way I though I could exclude external influences (threading, for instance) and add them one by one to see what's failing.
Unfortunately, even the very simple example I made is still failing. I have copied pretty much everything from your example, I don't see any big difference, but I still have -1 at every GetQHYCCDLiveFrame attempt.
Could you help me identifying the problem? Maybe this has something to do with Qt5?

I'm attaching both my source code, and the generated output, with QHY logging to trace.

Thanks
qhytest.zip

@qhyccd-lzr
Copy link
Owner

qhyccd-lzr commented Jul 13, 2017 via email

@GuLinux
Copy link
Author

GuLinux commented Jul 13, 2017

Hello,
I'm sorry, I didn't really understand what you asked me...

Did you meant to ask if the previous calls are correct?
If so, I guess they are, but I'm not 100% sure, that's why I'm asking you.
My guess is that everything is correct (otherwise the same code would not work on OSX and Windows either).

I did try the compiled sample, but it's not clear if it works or not, I get confusing results.

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

No branches or pull requests

2 participants