DJI RS2 and RS3-Pro Gimbals


ArduPilot 4.4 (and higher) support the DJI RS2 and DJI RS3-Pro handheld gimbals using a Lua script. The driver relies on the gimbal supporting the “DJI R SDK” protocol which is only these two gimbals as far as we know. Other gimbals including the very similar RSC2 and RS3 are not supported.

What to Buy

Connection and Configuration

Connect the autopilot’s CAN1 or CAN2 port to the Focus wheel as shown below


Connect to the autopilot with a ground station and do the following

  • If using CAN1, set CAN_D1_PROTOCOL = 10 (Scripting), CAN_P1_DRIVER = 1 (First driver)

  • If using CAN2, set CAN_D2_PROTOCOL = 10 (Scripting), CAN_P2_DRIVER = 2 (Second driver)

  • Set SCR_ENABLE = 1 to enable scripting

  • Set SCR_HEAP_SIZE = 120000 (or higher)

  • Set MNT1_TYPE = 9 (Scripting) to enable the mount/gimbal scripting driver

  • Reboot the autopilot

  • Download mount-djirs2-driver.lua (from here) and copy it to the autopilot’s SD card in the APM/scripts directory and reboot the autopilot

  • Optionally set DJIR_DEBUG to 1 to display parsing and errors stats at 5sec. Set to 2 to display gimbal angles


See Gimbal / Mount Controls for details on how to control the gimbal