Skip to content

Commit

Permalink
Work on SBony SV305M Pro camera support (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
thx8411 committed Sep 4, 2021
1 parent e1598bc commit 94b15d5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
6 changes: 6 additions & 0 deletions debian/indi-sv305/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
indi-sv305 (1.2.4) bionic; urgency=low

* SV305M Pro support added

-- Blaise-Florentin Collin <thx8411@yahoo.fr> Sat, 21 Aug 2021 16:00:00 +0300

indi-sv305 (1.2.3) bionic; urgency=low

* min/max exposure values fix
Expand Down
2 changes: 1 addition & 1 deletion indi-sv305/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include(GNUInstallDirs)

set (SV305_VERSION_MAJOR 1)
set (SV305_VERSION_MINOR 2)
set (SV305_VERSION_PATCH 3)
set (SV305_VERSION_PATCH 4)

find_package(CFITSIO REQUIRED)
find_package(INDI REQUIRED)
Expand Down
2 changes: 2 additions & 0 deletions indi-sv305/README
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Features
+ Software binning
+ Streaming
+ SV305PRO ST4 port supported
+ SV305M PRO supported

Known issues
============
Expand All @@ -65,6 +66,7 @@ Limitations
Changelog
=========

+ 1.2.4 : SV305M Pro support added
+ 1.2.3 : min/max exposure values fix
+ 1.2.2 : Fix SV305PRO detection
+ 1.2.1 : Camera gain issue fixed
Expand Down
19 changes: 16 additions & 3 deletions indi-sv305/sv305_ccd.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
SV305 CCD
SVBONY SV305 Camera driver
Copyright (C) 2020 Blaise-Florentin Collin (thx8411@yahoo.fr)
Copyright (C) 2020-2021 Blaise-Florentin Collin (thx8411@yahoo.fr)
Generic CCD skeleton Copyright (C) 2012 Jasem Mutlaq (mutlaqja@ikarustech.com)
Expand Down Expand Up @@ -121,10 +121,23 @@ bool Sv305CCD::initProperties()
INDI::CCD::initProperties();

// base capabilities
uint32_t cap = /* CCD_CAN_ABORT | */ CCD_HAS_BAYER | CCD_CAN_SUBFRAME | CCD_CAN_BIN | CCD_HAS_STREAMING;
uint32_t cap = /* CCD_CAN_ABORT | */ CCD_CAN_SUBFRAME | CCD_CAN_BIN | CCD_HAS_STREAMING;

// SV305 Pro has an ST4 port
// SV305 is a color camera
if(strcmp(cameraInfo.FriendlyName, "SVBONY SV305")==0)
{
cap|= CCD_HAS_BAYER;
}

// SV305 Pro is a color camera and has an ST4 port
if(strcmp(cameraInfo.FriendlyName, "SVBONY SV305PRO")==0)
{
cap|= CCD_HAS_BAYER;
cap|= CCD_HAS_ST4_PORT;
}

// SV305M Pro is a mono camera and has an ST4 port
if(strcmp(cameraInfo.FriendlyName, "SVBONY SV305M PRO")==0)
{
cap|= CCD_HAS_ST4_PORT;
}
Expand Down

0 comments on commit 94b15d5

Please sign in to comment.