code: def release(self):
          
          msg = self._vehicle.message_factory.mount_configure_encode(
              0, 1,    # target system, target component
              mavutil.mavlink.MAV_MOUNT_MODE_RC_TARGETING,  # mount_mode
              1,  # stabilize roll
              1,  # stabilize pitch
              1,  # stabilize yaw
          )
          self._vehicle.send_mavlink(msg)
docs: Release control of the gimbal to the user (RC Control).
  
          This should be called once you've finished controlling the mount with either :py:func:`rotate`
          or :py:func:`target_location`. Control will automatically be released if you change vehicle mode.