hanyazou / TelloPy

DJI Tello drone controller python package
Other
687 stars 292 forks source link

Applying sport mode; stick command packet length might be wrong #63

Open MiraiHattori opened 5 years ago

MiraiHattori commented 5 years ago

I'm using tello edu. I would like to enter sport mode with it, but when I set mode=1 in __send_stick_command function, it didn't enter the sport mode.

I found that tello.py __send_stick_command is sending 27 byte command. When I captured the tello communication with wireshark, the stick command was 22 byte long. The difference was the timestamp. tello.py uses 2 bytes for each date element (eg. 2bytes for year, 2bytes for month and so on) whereas tello app uses 1 bytes for each.