hanyazou / TelloPy

DJI Tello drone controller python package
Other
690 stars 293 forks source link

TypeError in VideoData on branch 0.6.0 while running under python 2.7 #21

Closed ptrmu closed 6 years ago

ptrmu commented 6 years ago

Tello: 17:48:18.658: Error: video recv: unsupported operand type(s) for &: 'str' and 'int' Traceback (most recent call last): File "/home/peter/Work/flock_catkin_ws/src/TelloPy/tellopy/_internal/tello.py", line 661, in __video_thread video_data = VideoData(data) File "/home/peter/Work/flock_catkin_ws/src/TelloPy/tellopy/_internal/protocol.py", line 234, in init if VideoData.packets_per_frame < (self.h1 & 0x7f): TypeError: unsupported operand type(s) for &: 'str' and 'int'

dsvilarkovic commented 6 years ago

Yeah, I also have this thing when running this example on 0.6.0. Please respond!

hanyazou commented 6 years ago

fixed in 7749936bd8d5d873008c34d9eb386c2c8fe2ddf7