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)
| 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) |
nothing calls this directly
no test coverage detected