Please select Into the mobile phone version | Continue to access the computer ver.
M210 change gimbal mode through ROS SDK
626 0 2020-4-30
Uploading and Loding Picture ...(0/1)
o(^-^)o
sk_mb
lvl.1

Netherlands
Offline

Hi,
I have a question regarding gimbal control with the DJI M210 V2.  During flight I want to switch back and forth between the gimbal modes  'free' and 'follow'. I know this should by possible by using the Mobile  SDK  (version latest), however I would like to use the ROS Onboard SDK  (version 3.8) for this.
When controlling the gimbal by publishing on the topic /dji_sdk/gimbal_angle_cmd, there is an entry in the dji_sdk/Gimbal message where you can specify the mode. By setting this value to 1 or  0, you can switch between absolute en relative control. The message definition (https://github.com/dji-sdk/Onboard-SDK-ROS/blob/3.8/dji_sdk/msg/Gimbal.msg)  tells me that I can use other bytes to switch between 'free' and  'follow' mode as well. However, when a provide a value other than 0 or  1, the gimbal doesn't move at all, so I  can not get the switching between 'free' and 'follow' to work.
Could you provide any insights?

2020-4-30
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules