dji-sdk / Onboard-SDK-ROS

Official ROS packages for DJI onboard SDK.
443 stars 309 forks source link

Setting a repeatable focal length #414

Open rebellojason7 opened 3 years ago

rebellojason7 commented 3 years ago

Hi,

I have a Matrice V2 with RTK and a X5S gimbal. The lens seems to have a MF and AF switch. I would like to know what settings to use in hardware and software such that I am able to get a reliable and repeatable focal length (such that it does not change). Can you provide me with details on how to achieve the same.

Thanks, Jason

dji-dev commented 3 years ago

Agent comment from kyle.cai in Zendesk ticket #40816:

Dear developer ,

Thank you for contacting DJI.

Do you want to use OSDK to set AF/MF mode? The OSDK provides camera manager API about the focus mode: setFocusMode* ROS:https://github.com/dji-sdk/Onboard-SDK-ROS/blob/3d22a4e19f08f56448f22662c86030b2cfec7501/src/dji_osdk_ros/modules/vehicle_wrapper.cpp#L418

And you can also use the DJI Pilot APP to set the focus mode.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team