Autofocus not working reliably on iMX-RT1060 using FPC camera


I recently bought iMX-RT1060 and FPC module for auto focus but the camera is not focusing properly. Do you have any examples for the auto-focus, would really appreciate if you have one!!!

By default the auto focus function was disabled in the omv_boardconfig.h file, so I enabled it and re-compiled the bin file and flashed into the board. However, I could not get a reliable focus at various distance and I attached the image for code and reference image.

Please advise!!

I don’t have that module with my right now and I’m traveling. Can you create a bug ticket for this on our github and I can take a look in about a week.