Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
static struct
{
int pid;
const char *name;
int seq;
} SX_PIDS[] = { { 0x105, "SXVF-M5", 0 },
{ 0x305, "SXVF-M5C", 0 },
{ 0x107, "SXVF-M7", 0 },
{ 0x307, "SXVF-M7C", 0 },
{ 0x308, "SXVF-M8C", 0 },
{ 0x109, "SXVF-M9", 0 },
{ 0x325, "SXVR-M25C", 0 },
{ 0x326, "SXVR-M26C", 0 },
{ 0x115, "SXVR-H5", 0 },
{ 0x119, "SXVR-H9", 0 }, (The list continues to cover rest of the SX cameras..)
void SXCCD::SetupParms()
{
struct t_sxccd_params params;
model = sxGetCameraModel(handle);
bool isInterlaced = sxIsInterlaced(model);
bool isICX453 = sxIsICX453(model);
PrimaryCCD.setInterlaced(isInterlaced);
sxGetCameraParams(handle, 0, ¶ms);
if (isInterlaced)
{
params.pix_height /= 2;
params.height *= 2;
wipeDelay = 130000;
}
else if (isICX453)
{
params.width = 3032;
params.height = 2016;
}
SetCCDParams(params.width, params.height, params.bits_per_pixel, params.pix_width, params.pix_height);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
sudo apt install git build-essential cmake libindi-dev libnova-dev libgsl-dev libusb-1.0-0-dev libcfitsio-dev
git clone --depth=1 https://github.com/indilib/indi-3rdparty.git (directory indi-3rdparty will be created)
cd indi-3rdparty
cd indi-sx
mkdir build
cd build
cmake .. (if some libs are missing then it tells you what's missing)
make (if there is no errors reported go for next command)
indiserver ./indi_sx_ccd (have your cam connected and run this for testing the new driver)
Please Log in or Create an account to join the conversation.
diff --git a/indi-sx/sxccdusb.cpp b/indi-sx/sxccdusb.cpp
index 8f08b78..4f89b64 100644
--- a/indi-sx/sxccdusb.cpp
+++ b/indi-sx/sxccdusb.cpp
@@ -736,11 +736,12 @@ int sxReadPixels(HANDLE sxHandle, void *pixels, unsigned long count)
while (read < count && rc >= 0)
{
int size = count - read;
+ size=512;
if (size > CHUNK_SIZE)
size = CHUNK_SIZE;
rc = libusb_bulk_transfer(sxHandle, BULK_IN, (unsigned char *)pixels + read, size, &transferred,
BULK_DATA_TIMEOUT);
- DEBUG(log(true, "sxReadPixels: libusb_control_transfer -> %s\n", rc < 0 ? libusb_error_name(rc) : "OK"));
+ DEBUG(log(true, "sxReadPixels: libusb_control_transfer -> %s, %lu/%lu t%lu\n", rc < 0 ? libusb_error_name(rc) : "OK", read, count, transferred));
if (transferred >= 0)
{
read += transferred;
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.