hanyazou/TelloPy

emergency command

javad-pixel opened this issue · 2 comments

hi,
is there any way to add emergency land to source cause i need it
thanks.

@javad-pixel
Can you please help me with the connection (Thank you in advance)
Here is the issue - #59 (comment)

@javad-pixel
add this under class Tello
this will stop all four motors instantly

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)