Skip to content

Commit

Permalink
🐛 fix emergency command setting is_flying to False and not expecting …
Browse files Browse the repository at this point in the history
…a response (closes #125)
  • Loading branch information
M4GNV5 committed Feb 18, 2022
1 parent 9acec07 commit 0636287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion djitellopy/tello.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ def streamoff(self):
def emergency(self):
"""Stop all motors immediately.
"""
self.send_control_command("emergency")
self.send_command_without_return("emergency")
self.is_flying = False

def move(self, direction: str, x: int):
"""Tello fly up, down, left, right, forward or back with distance x cm.
Expand Down

0 comments on commit 0636287

Please sign in to comment.