mavlink / MAVSDK-Python

MAVSDK client for Python.
https://mavsdk.mavlink.io
BSD 3-Clause "New" or "Revised" License
326 stars 221 forks source link

"set_pitch_rate_and_yaw_rate() " Not working #657

Open Bharannn opened 9 months ago

Bharannn commented 9 months ago

Hey, I am trying the control my gimbal (Siyi A8 mini) with ArduPilot firmware using set_pitch_rate_and_yaw_rate, however I am not able to achieve that. I have gone through the previous issue regarding the same issue #481 but there wasn't any proper solution. These are following parameters i have been using with ArduPilot:

  1. SERIAL2_PROTOCOL to 8 (“SToRM32 Gimbal Serial”)

  2. SERIAL2_BAUD to “115” for 115200 bps

  3. MNT1_TYPE to “8” (“Siyi”)

  4. CAM1_TYPE to 4 / “Mount (Siyi)”

The ArduPilot and MAVSDK versions I'm using are v4.4.4 and 1.4.9 respectively.

While using ArduPilot I'm able to control the gimbal with 'set_pitch_and_yaw' only the 'set_pitch_rate' and 'gimbal.set_mode(GimbalMode.YAW_FOLLOW)' weren't working.

So I've tried to the same with PX4 (v1.14.0) and the parameters I've used are:

  1. MNT_MODE_IN to MAVlink gimbal protocol v2

  2. MNT_MODE_OUT to MAVLink gimbal protocol v2.

  3. MAV_1_CONFIG to TELEM2

  4. MAV_1_MODE to NORMAL.

With these settings I'm not able to control the gimbal at all with PX4. I would like to know if I'm missing any parameter or version I need to for my gimbal to work.

julianoes commented 9 months ago

Do you have the pre-release version of the SIYI A8 mini gimbal? Because the current release doesn't support MAVLink v2 yet, however, I'm told it will be released soon.