i'm trying to write my own driver for my diy camera.
it's based on CCD template, but i'm stuck with C stuff, i'm sure it will make laugh all C gurus
My library provides a function that returns a pointer to a buffer containing my frame (cameraGetImage())
I don't know how to return back my image to Indi in function grabImage() :
long unsigned int *image;
image = (long unsigned int *) PrimaryCCD.getFrameBuffer();
image = cameraGetImage();
i've tried to read other 3rdparty driver, but i don't understand as a noob that i am...
I would respectfully appreciate any advice !
for the record :
my ugly driver is working now, anyone interested ?
(this cam84 is really an interesting project, now followed by a new version Cam86)
Gilles.
The following user(s) said Thank You: Jasem Mutlaq
Of course with pleasure, (tell me how)
But first i'll need a few more weeks to clean and improve my code :
-framing not tested
-binning not tested
-need to understand how to render bayer matrix
-real sky tests !
I also want to test on raspberry, Odroic C2 & XU4 (i have one of each) :
The use of FTDI D2XX driver forces to unload modules ftdi_sio and usbserial, which prevents to use the majority of USB serial converters...
This is a big disadvantage we can solve chaining indi servers
Gilles.
Yes please have your driver somewhat production-ready first and the FTDI problem is a show stopper for most users since it would break their device connections, so try to figure out a clean solution.
One step forward :
I've updated the code to use libftdi instead of D2XX -> now i can keep the usage of serial adapters
One step backward :
i have now troubles to synchronise writes and reads of ft2232 with libftdi, images are degraded
i think timings ar different between D2XX and libftdi, i have to investigate...
"stay tunned"