Focuser configuration

Hi all,

I am developing a driver to control a len (step-step motor) using the focuser API and TX2, as you know the motor has a slow response, and the algorithm that nvcamerasrc uses, retrieve value faster than the motor ends to move. I implemented a logic to avoid some of the values from nvcamerasrc (FOCUS_ABSOLUTE control.

At this moment I am able to get the motor moving to the left and right trying to focus but it never gets focus.
My thought is that we need to get a properly configuration for the nv_focuser_config struct in the load config function for the focuser.

Do you know how we can get an slower response from nvcamerasrc through the FOCUS_ABSOLUTE V4L control? (It has been controlled automatically by nvcamerasrc)

I checked your L4T 28.2.1 documentation but I did not find anything related with that configuration. Could you provide us some documentation?

Thanks,

-Adrian

As I know nvcamerasrc should not support focuser.
How do you implement your focuser feature?

1 Like

Hi ShaneCCC,

Time ago we implemented a focuser (with a magnetic focuser) based on the focuser that you expose on the kernel “lc898212” and it is working properly the magnetic focuser is as fast as the calculation that nvcamerasrc do (FOCUS_ABSOLUTE control) and focus correctly.

For the focuser with a step-step motor the issue is that the motor is slower that nvcamerasrc, and nvcamerasrc provide new values to calibrate the focus before the motor stops, so we miss some values in this transition.

I your L4T 28.2.1 documentation (TX2) there is some information related with the focuser but it not enough for us.

Could you provide more information about how to configure the focuser or how to do the nvcamerasrc focuser feedback slower?

Thanks,

-Adrian

1 Like

Did you try the settle time?

#define SETTLETIME_MS (15)

Hi ShaneCCC,

We did not see effect changing the value of the SETTLETIME_MS, we increased the value to 10s but the nvcamerasrc feedback sampling time was the same.

Can you share us documentation about the focuser? how to calculate the values that we need to set in the nv_focuser_config structure?

Thanks,

-Adrian

Reply in the Focuser for Jetson Nano in JP4.5 (L4T 32.5) - #5 by ShaneCCC