From cb70f11d6358301bb7252592b678c6bf5de91834 Mon Sep 17 00:00:00 2001 From: dheeeleee <74295237+dheeeleee@users.noreply.github.com> Date: Thu, 12 Nov 2020 00:54:08 +0900 Subject: [PATCH] Update tello.py --- tellopy/_internal/tello.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tellopy/_internal/tello.py b/tellopy/_internal/tello.py index c557d275..bcc7f46f 100755 --- a/tellopy/_internal/tello.py +++ b/tellopy/_internal/tello.py @@ -198,6 +198,14 @@ def palm_land(self): pkt.add_byte(0x00) pkt.fixup() return self.send_packet(pkt) + + def emergency(self): + """Stop all four motors instantly""" + log.info('emergency') + pkt = Packet(EMERGENCY_CMD) + pkt.add_byte(0x00) + pkt.fixup() + return self.send_packet(pkt) def quit(self): """Quit stops the internal threads."""