jakubovic / open-phd-guiding

Automatically exported from code.google.com/p/open-phd-guiding
0 stars 0 forks source link

qhy5 guide failure #307

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Couldn't get phd2 to talk to the mount, but only the camera. 

Added to line 146 of cam_qhy5.cpp: "    printf("DEBUG 
Camera_QHY5Class::ST4PulseGuideScope called with direction %d duration %d, 
libusb_control_transfer result %d\n", direction, duration, result);"

When I stars ./phd2 and connect camera and mount and go to manual guide I get 
this result: "DEBUG Camera_QHY5Class::ST4PulseGuideScope called with direction 
1 duration 254, libusb_control_transfer result 8"

Conversation on IRC #phd with H__

[15:47] <H__> otherwise, find it with this command :        find ~/ -name 
cam_qhy5.cpp
[15:49] <AdirondackAstro> Okay, I think I got it
[15:50] <AdirondackAstro> It was under ccd/src/devices
[15:50] <H__> cool, open it with an editor and go to line 145
[15:51] <H__> it should read :  wxMilliSleep(duration + 10);
[15:51] <H__> in the function Camera_QHY5Class::ST4PulseGuideScope
[15:52] <AdirondackAstro> ln 145 reads: cam_qhy5_params *dst = 
dynamic_cast<cam_qhy5_params *>(params);
[15:52] <H__> interesting. we have different file versions
[15:53] <H__> how did you get the code ? from subversion ?
[15:54] <AdirondackAstro> This is how I got PHD2 on my computer. I made no 
edits or changes afterwards. 
https://code.google.com/p/open-phd-guiding/wiki/BuildingPHD2OnLinux
[15:55] <H__> good, so you did the svn checkout line ?
[15:56] <H__> if you go into that open-phd-guiding directory , what's the 
revision from 'svn info' ?
[15:56] <AdirondackAstro> When I go into the open-phd-guiding directory I find 
wxMillisSleep(duration + 10); at line 145
[15:57] <H__> excellent, now after that line add this line :
[15:57] <H__>     printf("DEBUG Camera_QHY5Class::ST4PulseGuideScope called 
with direction %d duration %d, libusb_control_transfer result %d\n", direction, 
duration, result);
[15:58] <H__> so between the wxMilliSleep line and the 'return result' line
[15:58] <AdirondackAstro> Alright I added it, and it is now line 146 between 
wxMillis and return result.
[15:59] <H__> great, save it, exit editor and hop into the 
open-phd-guiding-build directory
[15:59] <H__> ready ?
[15:59] <AdirondackAstro> okay it is saved, closed, and I'm in the build 
directory.
[16:00] <H__> great. just type   'make'  here
[16:00] <AdirondackAstro> Did and got: [100%] Built target phd2
[16:00] <H__> it should produce a new phd2 binary amd show that cam_qhy5.cpp 
gets compiled again
[16:01] <AdirondackAstro> This was the full result from the terminal: 
~/open-phd-guiding-build $ make Scanning dependencies of target phd2 [  1%] 
Building CXX object CMakeFiles/phd2.dir/cam_qhy5.cpp.o Linking CXX executable 
phd2 [100%] Built target phd2
[16:01] <H__> great
[16:02] <H__> now, if you run phd2 with './phd2'  in this directory, then the 
output of phd2 should *hopefully* contain that debug line once you start guiding
[16:03] <AdirondackAstro> ALright I need to hook the camera and mount up and 
start it up
[16:03] <H__> if it does not we need to get back into phd2 and find why this 
function is not being called.
[16:03] <H__> which is the best option. If it *does* get called, then I can no 
longer help. we need to make a bug ticket then and hope some other developer 
will pick it up
[16:04] <H__> because if it gets called i have no idea what's wrong
[16:07] <AdirondackAstro> Connected camera and mount, then went to manual guide 
and pressed a direction and got this result in the terminal: DEBUG 
Camera_QHY5Class::ST4PulseGuideScope called with direction 2 duration 75, 
libusb_control_transfer result 8
[16:08] <H__> that looks promising
[16:08] <H__> now can you start guiding ?
[16:09] <AdirondackAstro> Unfortunately I'm clouded out and it's daylight, so I 
can't actually run through the steps of guiding.
[16:09] <H__> ah ok
[16:10] <H__> so we wait for a night with clear skies and offtime ;-)
[16:10] <AdirondackAstro> Thanks for the help, hopefully this fixed it then.
[16:11] <H__> I found the developer of the qhy5 code in phd2; his name is "Max 
Chen", it was added to trunk on 2013-dec-3
[16:12] <H__> do note we fixed nothing yet, we only added a debug line to find 
out if this piece of code actually gets called with what parameters and what 
the end result is
[16:12] <AdirondackAstro> Oh okay
[16:13] <H__> here's how the qhy5 code got to phd2 -> 
https://code.google.com/p/open-phd-guiding/issues/detail?id=219
[16:14] <H__> ok, so once you've tested guiding pease visit back here or make a 
bug report with the DEBUG lines that phd2 gave
[16:15] <H__> might even be a good idea to make this bug report right now 
already
[16:15] <H__> and add the debug lines to it when you tested
[16:15] <H__> you ok with that ?
[16:15] <AdirondackAstro> Interesting, So I just went to the "Get Ra-DEC" 
option on my hand controller, and when I manually guide via PHD2 the RA changes 
when I click west or east

Original issue reported on code.google.com by rhetoric...@gmail.com on 19 Jul 2014 at 8:29

GoogleCodeExporter commented 9 years ago

Original comment by andy.gal...@gmail.com on 22 Jul 2014 at 8:13