mirror of
https://github.com/damiafuentes/DJITelloPy.git
synced 2024-10-25 03:27:46 +03:00
add stop function
Terminate current command running on the drone and makes it hover in the air.
This commit is contained in:
committed by
Jakob Löw
parent
b21387abc5
commit
5ca3b98d3d
@@ -730,6 +730,11 @@ class Tello:
|
||||
cmd = 'go {} {} {} {}'.format(x, y, z, speed)
|
||||
self.send_control_command(cmd)
|
||||
|
||||
def stop(self):
|
||||
"""Hovers in the air. Works at any time.
|
||||
"""
|
||||
self.send_control_command("stop")
|
||||
|
||||
def curve_xyz_speed(self, x1: int, y1: int, z1: int, x2: int, y2: int, z2: int, speed: int):
|
||||
"""Fly to x2 y2 z2 in a curve via x1 y1 z1. Speed defines the traveling speed in cm/s.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user