MCPcopy
hub / github.com/dronekit/dronekit-python / release

Method release

dronekit/__init__.py:2361–2375  ·  view source on GitHub ↗

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.

(self)

Source from the content-addressed store, hash-verified

2359 self._vehicle.send_mavlink(msg)
2360
2361 def release(self):
2362 """
2363 Release control of the gimbal to the user (RC Control).
2364
2365 This should be called once you've finished controlling the mount with either :py:func:`rotate`
2366 or :py:func:`target_location`. Control will automatically be released if you change vehicle mode.
2367 """
2368 msg = self._vehicle.message_factory.mount_configure_encode(
2369 0, 1, # target system, target component
2370 mavutil.mavlink.MAV_MOUNT_MODE_RC_TARGETING, #mount_mode
2371 1, # stabilize roll
2372 1, # stabilize pitch
2373 1, # stabilize yaw
2374 )
2375 self._vehicle.send_mavlink(msg)
2376
2377 def __str__(self):
2378 return "Gimbal: pitch={0}, roll={1}, yaw={2}".format(self.pitch, self.roll, self.yaw)

Callers

nothing calls this directly

Calls 1

send_mavlinkMethod · 0.80

Tested by

no test coverage detected