Hi All,
Just a quick question. I'm slightly confused with setting the mount's date and time via the standard property "TIME_UTC". Currently, I'm setting the "UTC type" to the current UTC time and then setting the "OFFSET type" to whatever the user's timezone offset is. For example, in the United Kingdom, I set this to zero., France it's set to +1 and for Perth it's set to +8.
My question is: Do I need to factor daylight saving into the OFFSET value? For example, in the United Kingdom, do I need to set OFFSET to +1 when in daylight saving or do I just leave the OFFSET at zero and set the "UTC type" to the current UTC time and not factor daylight saving into it at all?
Many thanks
Amanda
Read More...
There seems to be a problem building INDI 1.9.9 on Windows with MSYS2. My build environment is as follows:
indi\libs\indidevice\indiutility.cpp:49:51: error: too many arguments to function 'int mkdir(const char*)'
// Remove mode_t from mkdir()
if (errno != ENOENT || ((mdret = mkdir(dir.c_str())) && errno != EEXIST))
{
return mdret;
}
Thanks Kevin. I appreciate your help.
Read More...
Hi Kevin and thanks for your response.
I've just had a look at IBLOB::format but this just contains ".fits" and not the pixel format information such as "RAW-8, RAW16 etc".
Any other ideas?
Amanda.
Read More...
Hi,
I'm attempting to add INDI support into my capture application. Currently, I have INDI mounts, filter wheels and focus devices working well but I am having various problems with implementing INDI cameras. The most significant problem is as follows:
Description of the Problem
My application needs to know various pieces of information before it can start to receive and process image data. The information needed are things like width, height, capture format and whether the camera is operating in 8 or 16-bit mode. This information is required so that I can size memory buffers and correctly save image data in various different image types (TIFF, PNG, FITS etc). I am able to reliable get the width and height values from CCD_FRAME, and the bit depth value from CCD_INFO / CCD_BITSPERPIXEL. My problems start when I attempt to discover the current capture format.
I have a block of code in newProperty(INDI::Property *property) which is supposed to hold a pointer to the CCD_CAPTURE_FORMAT property. Whilst this works for many INDI camera drivers, it does not work for all of them. The code looks something like this:
void indi_cam::newProperty(INDI::Property *property)
{
string prop_name(property->getName());
INDI::BaseDevice *bd = property->getBaseDevice();
if (bd->getDriverInterface() & INDI::BaseDevice::CCD_INTERFACE)
{
if ((prop_name == "CCD_CAPTURE_FORMAT"))
{
m_svp_capture_format = property->getSwitch();
}
}
}
if(m_base_device != nullptr)
{
ISwitchVectorProperty *svp = m_base_device->getSwitch("CCD_CAPTURE_FORMAT");
if(svp == nullptr)
{
throw std::runtime_error("CCD_CAPTURE_FORMAT is null");
}
}
Hi,
I am currently implementing INDI functionality into my capture application. I have most of the functionality working but I am confused by the Right Ascension value that I am receiving from the Telescope Simulator. I am getting the RA and DEC values by using the following code:
INumber *raprop = IUFindNumber(m_prop_eq_coord, "RA");
INumber *decprop = IUFindNumber(m_prop_eq_coord, "DEC");
std::cout << "RA = raprop.value << " DEC = decprop.value << std::endl;