Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 5 months ago

If you're confident you can do this, please do so :)

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 5 months ago

Hi Jasem,

to make this clear: if you can update the driver without any larger hassle, I'd be happy if you could do so. I don't know what I saw with the V4L2 driver, but it seems to be gone.

But I have no idea how v4l2 and libcamera work together and what component is building on what...

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 5 months ago

Here you go: github.com/scriptorron/indi_pylibcamera/issues/53

It only happens with the IMX290, at least not a Raspi V1 camera I also tested (which apparently can do only 1s though anyway).

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 5 months ago

Hm, actually I retried yesterday (very lightly) and the V4L2 driver didn't crash.

Also, I wasn't having any success with the python driver. It would take one image of 1s and then hang. the libcamera-foo apps worked though.

Frankly, at this point I would like to go back to my original idea of having a generic python driver that just calls an external tool. Apparently having one process for a lot of exposures is extremely fragile...

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 5 months ago

Make sure that the v4l2 ccd driver works though. Mine crashed when doing exposures after switching the libs

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 5 months ago

Yeah, setting this up is extremely fragile and tiresome. The vanilla stellarmate seems to include a version of libcamera from 2022, which is pretty old. And each time you apt-update something, you'll end up with that version again and you have to select it all over again:

stellarmate@astroberry:~/astro/indi_pylibcamera $ sudo apt list libcamera0
Listing... Done
libcamera0/unknown,now 1.0-stable~202211161314 arm64 [installed,automatic]
libcamera0/oldstable 0~git20230720+bde9b04f-1 armhf
stellarmate@astroberry:~ $ sudo apt list libcamera-dev
Listing... Done
libcamera-dev/unknown,now 1.0-stable~202211161314 arm64 [installed]
libcamera-dev/oldstable 0~git20230720+bde9b04f-1 armhf
stellarmate@astroberry:~ $ sudo apt list libcamera-apps
Listing... Done
libcamera-apps/oldstable,now 1.2.1-1 arm64 [installed]
libcamera-apps/oldstable 1.2.1-1 armhf

But I had the same hassle when installing the picamera driver, so it might be a general package problem. For now I "fixed" at least part of this by doing
sudo apt install libcamera-dev/oldstable 0~git20230720+bde9b04f-1 libcamera0/oldstable 0~git20230720+bde9b04f-1

which kinda, sorta worked but I still can't compile the indi driver when usiing the libcamera-apps libs. I got the same errors in LibCameraApps as the rest of the folks and don't want to use the one that has uses the included code. That seems like a dead end as you can't reasonably package it.

But at least with the IMX290 the python driver also hangs every few shots... if I have time, I'll try to make a version that supports the libcamera-apps utils like libcamera-still and the like as I hope that you'll be able to more easily kill an extra process as opposed to constantly having to restart the driver. But that will take time since I just started.

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 9 months ago

If you actually had the v2 indi headers installed in /usr/, you wouldn't get these errors... do `grep -r addFITSKeywords /usr/include /usr/local/include` and check if there are matches. Note that by default, I think the indi libs get installed in `/usr/local/include` and v1 versions in `/usr/include` will override them.

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 9 months ago

It can only build against the v2 libindi so you need to also compile and install the current version of indi branch, not only the 3rd party drivers:

/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/libcamera_app.hpp:54:33: error: ‘StreamRoles’ in namespace ‘libcamera’ does not name a type; did you mean ‘StreamRole’?
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:71:22: error: ‘virtual void INDILibCamera::addFITSKeywords(INDI::CCDChip*)’ marked ‘override’, but does not override
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:224:34: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:242:38: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:747:42: error: no matching function for call to ‘INDILibCamera::addFITSKeywords(INDI::CCDChip*&)’
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:758:29: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context

Read More...

Anjo created a new topic ' CFZ for DSLR Lenses?' in the forum. 9 months ago

Can someone tell me how to get reasonable values for CFZ for a DSLR lens? I'm using a stepper motor with a belt and the OpenAstroTech driver runs the focus commands (if that helps)

Obviously, you won't see any travel path in the lens... or what else I can do with the new options in 3.6.5?

Thanks in advance, Anjo

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 9 months ago

What I mean is that my PR to libcamera-apps has been merged and will be part if the next release... whenever that will be. Then we can update the driver and remove the copied source.

Read More...

Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 9 months ago

FYI, the PR is merged, so next time libcamera-apps does a release we can use it directly and remove the local versions.

Read More...