Thomas Stibor replied to the topic 'dslr: wrong sensor dimensions' in the forum. 1 month ago

Then it looks like the problem could be introduced with e.g. commit Make sure when subframing that we are still within range of the actual image resolution
How about git checkout one commit before, compile and see what happens?

Read More...

Thomas Stibor replied to the topic 'dslr: wrong sensor dimensions' in the forum. 1 month ago

Another approach is to edit

$HOME/.indi/<DSLR_MODEL>_config.xml
and adjust the proper settings.
The re-load in INDI property window the settings and it should work

Read More...

Thomas Stibor replied to the topic 'Writing dslr temperature' in the forum. 1 month ago

Hi there,

as Jasem said, it is already implemented in gphoto2 driver.
During build process it is checked whether the used libraw library supports the functionality

CHECK_STRUCT_HAS_MEMBER("libraw_imgother_t" CameraTemperature "libraw/libraw_types.h" HAVE_LIBRAW_CAMERA_TEMPERATURE LANGUAGE C)
if (HAVE_LIBRAW_CAMERA_TEMPERATURE)
  set(LIBRAW_CAMERA_TEMPERATURE 1)
  message(STATUS "Found CameraTemperature in 'libraw/libraw_types.h'")
endif ()

CHECK_STRUCT_HAS_MEMBER("libraw_imgother_t" SensorTemperature "libraw/libraw_types.h" HAVE_LIBRAW_SENSOR_TEMPERATURE LANGUAGE C)
if (HAVE_LIBRAW_SENSOR_TEMPERATURE)
  set(LIBRAW_SENSOR_TEMPERATURE 1)
  message(STATUS "Found SensorTemperature in 'libraw/libraw_types.h'")
endif ()

If libraw supports this functionality and the temperature information is also available and embedded in the DSLR RAW file, then it is read out
if (lib_raw.imgdata.other.SensorTemperature > -273.15f)
        gphoto->last_sensor_temp = lib_raw.imgdata.other.SensorTemperature;
else if (lib_raw.imgdata.other.CameraTemperature > -273.15f)
        gphoto->last_sensor_temp = lib_raw.imgdata.other.CameraTemperature;

and provided in the INDI framework, for e.g. save it as a FIT keyword.
if (isTemperatureSupported)
                {
                    double cameraTemperature = static_cast<double>(gphoto_get_last_sensor_temperature(gphotodrv));
                    if (fabs(cameraTemperature - TemperatureN[0].value) > 0.01)
                    {
                        // Check if we are getting bogus temperature values and set property to alert
                        // unless it is already set
                        if (cameraTemperature < MINUMUM_CAMERA_TEMPERATURE)
                        {
                            if (TemperatureNP.s != IPS_ALERT)
                            {
                                TemperatureNP.s = IPS_ALERT;
                                IDSetNumber(&TemperatureNP, nullptr);
                            }
                        }
                        else
                        {
                            TemperatureNP.s = IPS_OK;
                            TemperatureN[0].value = cameraTemperature;
                            IDSetNumber(&TemperatureNP, nullptr);
                        }
                    }
                }


Read More...

Thomas Stibor replied to the topic 'New Pegasus DMFC V3' in the forum. 2 months ago

Jasem recently released INDI 1.8.3
If you update your INDI packages to 1.8.3 the patches for DMFC are included.

Read More...

Thomas Stibor replied to the topic 'Camera error with Canon DSLR while shooting darks.' in the forum. 2 months ago

According to your screenshots (though it would be better to share the LOG txt file :-), the problem started with gphoto2 message:

[ERROR] Exposure failed to save image... unspecified error

This seems to let libghoto2/indi_gphoto2_ccd staying in an error state and as a consequence it produced subsequent libghoto2 error messages:
...
[DEBUG] Failed to set new configuration value (GP result: -1)
...
[DEBUG] Failed to set new configuration value (GP result: -52)

Is is possible that your SD card is full?

Read More...

Thomas Stibor replied to the topic 'Camera error with Canon DSLR while shooting darks.' in the forum. 2 months ago

According to libghoto2 error "-52" denotes:

./libgphoto2_port/gphoto2/gphoto2-port-result.h:#define GP_ERROR_IO_USB_FIND            -52


Read More...

Thomas Stibor replied to the topic 'New Pegasus DMFC V3' in the forum. 2 months ago

Which INDI

indi_dmfc_focus
version are you using? I have the Pegasus FocusCube2 and also noticed problems with "reverse enabled" and other minor issues.
The problems though should be fixed in master, see commits:

Fix enabling/disabling DMFC properties and remove dead code
Fix select motortype, reverse status and enable focuser backlash
Enable saving/loading backlash steps and fix motor type select

Can you try running with the provided patches and also provides collected DEBUG LOGS.

Read More...

Thomas Stibor replied to the topic 'Re:Bias frames - No data/empty?' in the forum. 2 months ago

There is an excellent book/tutorial CCD Data Reduction Guide
that explains in very great detail with Python (astropy) code how actually an astronomical CCD image is formed.
In chapter Understanding an astronomical CCD image
is written:

An offset voltage called bias is applied to the CCD chip to ensure there are no negative counts during readout. There are small variations in the value of the bias across the chip, and there can be small variations in the bias level over time.


In sub chapter Construction of an artificial (but realistic) image
is explained in detail how a offset (bias) image is formed.

Read More...

Thomas Stibor replied to the topic 'Re:Indi driver support for Pegasus Pocket Powerbox' in the forum. 2 months ago

If I am not mistaken, then then author of Astroberry also provides a DEB package repository (see https://www.astroberry.io/ ) So

>sudo apt-get update && sudo apt-get upgrade
should work, provided you have Internet connection and IP access to the repo. The core packages are actually located here: https://www.astroberry.io/repo/pool/main/libi/libindi/
What does apt policy show?
>apt policy indi-bin libindi1 libindi-data libindi-dev
indi-bin:
  Installed: 1.8.2
  Candidate: 1.8.2
  Version table:
 *** 1.8.2 100
        100 /var/lib/dpkg/status
     1.7.5+dfsg-1 500
        500 http://ftp.de.debian.org/debian buster/main amd64 Packages
libindi1:
  Installed: 1.8.2
  Candidate: 1.8.2
  Version table:
 *** 1.8.2 100
        100 /var/lib/dpkg/status
libindi-data:
  Installed: 1.8.2
  Candidate: 1.8.2
  Version table:
 *** 1.8.2 100
        100 /var/lib/dpkg/status
     1.7.5+dfsg-1 500
        500 http://ftp.de.debian.org/debian buster/main amd64 Packages
        500 http://ftp.de.debian.org/debian buster/main i386 Packages
libindi-dev:
  Installed: 1.8.2
  Candidate: 1.8.2
  Version table:
 *** 1.8.2 100
        100 /var/lib/dpkg/status
     1.7.5+dfsg-1 500
        500 http://ftp.de.debian.org/debian buster/main amd64 Packages
Note, the official Debian Buster packages are on version, 1.7.5. One can easily build packages e.g. as follows:
#!/bin/bash

MAIN_PATH=$(pwd)
DEB_CORE_PATH=deb_core
DEB_EXTRA_PATH=deb_extra

# Build indi core.
rm -rf ${MAIN_PATH}/${DEB_CORE_PATH}
mkdir -p ${MAIN_PATH}/${DEB_CORE_PATH}

cd ${MAIN_PATH}/indi
dpkg-buildpackage -j$(nproc --all) -i -us -uc -b
cd ${MAIN_PATH}
mv *.{deb,buildinfo,changes} ${MAIN_PATH}/${DEB_CORE_PATH}

# Install indi core packages.
sudo dpkg --install ${MAIN_PATH}/${DEB_CORE_PATH}/*.deb

# Build following indi 3rdparty packages.
declare -a INDI_DRIVERS=( indi-eqmod indi-gpsd indi-gphoto indi-sx libatik indi-atik )
rm -rf ${MAIN_PATH}/${DEB_EXTRA_PATH}
mkdir -p ${MAIN_PATH}/${DEB_EXTRA_PATH}

for i in "${INDI_DRIVERS[@]}"
do
    mkdir -p ${MAIN_PATH}/${DEB_EXTRA_PATH}/${i}/{debian,${i},cmake_modules}
    cp -r ${MAIN_PATH}/indi-3rdparty/debian/${i}/* ${MAIN_PATH}/${DEB_EXTRA_PATH}/${i}/debian
    cp -r ${MAIN_PATH}/indi-3rdparty/${i}/* ${MAIN_PATH}/${DEB_EXTRA_PATH}/${i}/${i}
    cp -r ${MAIN_PATH}/indi-3rdparty/cmake_modules ${MAIN_PATH}/${DEB_EXTRA_PATH}/${i}
    cd ${MAIN_PATH}/${DEB_EXTRA_PATH}/${i}
    dpkg-buildpackage -j$(nproc --all) -i -us -uc -b

    if echo "${i}" | grep '^lib';
    then
	sudo dpkg --install ${MAIN_PATH}/${DEB_EXTRA_PATH}/${i}*.deb
    fi
done

# Install indi 3rdparty packages.
sudo dpkg --install ${MAIN_PATH}/${DEB_EXTRA_PATH}/*.deb


Read More...

Thomas Stibor replied to the topic 'Atik driver generic questions' in the forum. 2 months ago

I use the ATIK 414EX on a RPI4 (Debian Buster) with INDI 1.8.2 and before with INDI 1.8.1, and had also no issues. It works perfectly.

Read More...