hanyazou / TelloPy

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

Issues with keyboard_and_video #76

Closed Emilprivate closed 4 years ago

Emilprivate commented 4 years ago

Hey there, I have an issue with the keyboard_and_video script. I can't seem to control the drone with any of the keys. I'm able to start and view the camera using mplayer, but not the controls for the drone. I've tried the simple_takeoff script and the drone does fly up in the air and land shortly after, so I don't suppose there's anything wrong mechanically on the drone. I'm guessing it has something to do with the pygame.keyevent or maybe something interfering with the key event when launching pygame.

My system: MacBook Pro 13 inch 2017 macOS Mojave version 10.14.6

This is the output on the terminal when launching the script and ending it after 10 ish seconds. Tello: 02:15:08.198: Error: video recv: timeout Tello: 02:15:08.198: Info: start video (cmd=0x25 seq=0x01e4) Tello: 02:15:08.202: Info: connected. (port=9617) Tello: 02:15:08.202: Info: send_time (cmd=0x46 seq=0x01e4) Tello: 02:15:08.202: Info: state transit State::connecting -> State::connected Tello: 02:15:08.776: Info: video recv: 1460 bytes e900 +223 Tello: 02:15:09.937: Info: recv: log_header: id=4274, 'BUILD May 7 2019 12:02:11' Tello: 02:15:09.989: Info: LogData: UNHANDLED LOG DATA: id= 2064, length= 64 Tello: 02:15:09.989: Info: LogData: UNHANDLED LOG DATA: id= 2208, length= 40 Tello: 02:15:09.989: Info: LogData: UNHANDLED LOG DATA: id= 1000, length= 44 Tello: 02:15:09.989: Info: LogData: UNHANDLED LOG DATA: id= 1001, length= 16 Tello: 02:15:09.990: Info: LogData: UNHANDLED LOG DATA: id=10086, length= 4 Tello: 02:15:09.990: Info: LogData: UNHANDLED LOG DATA: id=10085, length= 80 Tello: 02:15:09.990: Error: LogData: corrupted data at pos=1028, data= Tello: 02:15:09.992: Error: LogData: corrupted data at pos=0, data=72 72 72 72 72 72 72 72 86 73 fa 61 72 72 72 72 72 72 72 72 63 77 68 63 72 72 5b d4 55 1c 00 7a e9 03 84 73 86 00 84 84 84 84 84 84 84 84 84 84 84 84 84 84 58 81 51 09 55 21 00 de 74 27 95 73 86 00 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 06 bc 55 84 00 cf 00 08 79 e9 86 00 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 93 38 7c 46 68 ec 54 47 03 81 47 47 e0 e5 04 c6 c9 0a 83 c4 59 1b c3 47 cd 15 59 c7 79 79 79 f9 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 e4 6b 1d 79 6d 6b 79 79 79 79 79 79 e6 79 15 ad 55 4c 00 0d 10 08 bf e9 86 00 bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf 3f bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf bf b7 bf bf bd ef bf bf bf bf bf 19 41 55 34 00 cd a0 08 23 ea 86 00 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 a3 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 73 23 23 23 70 8c 55 10 00 37 66 27 39 18 87 00 39 39 39 39 92 74 55 5c 00 e1 65 27 65 18 87 00 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 d7 7a 55 84 00 cf 00 08 18 7d 8a 00 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 85 a1 24 27 e2 5a 13 26 cf 8e 92 26 28 70 98 a7 76 3d 25 a6 3e 22 a0 25 5a 07 36 26 18 18 18 98 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 b9 0a 7c 18 0c 0a 18 18 18 18 18 18 df 18 fa 54 55 4c 00 0d 10 08 97 7d 8a 00 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 17 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 9f 97 97 9f f3 97 97 97 97 97 6c b0 55 34 00 cd a0 08 c5 7d 8a 00 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 45 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 c5 a1 c5 c5 c5 24 9b 55 43 00 15 0c 00 bb e8 8c 00 bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb 5b ab bb ab bb bb bb bf bb bb bb bb bb af 31 a7 9c bb bb bb bb 94 bb bb 08 55 38 00 80 e8 03 86 9a 8d 00 98 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 72 87 0e 95 86 86 86 86 86 86 86 86 97 83 9c 97 86 86 8f 49 55 1c 00 7a e9 03 9a 9a 8d 00 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 46 9f 84 d6 55 84 00 cf 00 08 92 10 8e 00 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 89 06 a0 ad 20 60 67 af 89 92 00 ac af c1 13 2d cf a5 7e 2f c2 10 03 2e 53 6c 37 af 92 92 92 12 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 31 80 f6 92 8a 80 92 92 92 92 92 92 7d 92 9f f4 17 f8 Tello: 02:15:10.040: Info: LogData: UNHANDLED LOG DATA: id=10100, length= 21 Tello: 02:15:10.143: Info: LogData: UNHANDLED LOG DATA: id= 1710, length= 6 Tello: 02:15:10.192: Info: LogData: UNHANDLED LOG DATA: id= 16, length= 4 Tello: 02:15:10.499: Info: LogData: UNHANDLED LOG DATA: id= 12, length= 55 Tello: 02:15:10.514: Info: video data 764442 bytes 373.2KB/sec Tello: 02:15:11.645: Info: LogData: UNHANDLED LOG DATA: id= 1002, length= 27 Tello: 02:15:12.514: Info: video data 752555 bytes 367.5KB/sec Tello: 02:15:12.984: Info: video recv: 1460 bytes 6a05 +238 Tello: 02:15:14.514: Info: video data 751946 bytes 367.1KB/sec Tello: 02:15:16.542: Info: video data 752521 bytes 362.4KB/sec Tello: 02:15:18.543: Info: video data 749710 bytes 365.9KB/sec loss=2 Tello: 02:15:18.745: Info: video recv: 1460 bytes 2000 +176 Tello: 02:15:20.544: Info: video data 752521 bytes 367.3KB/sec Tello: 02:15:22.545: Info: video data 749634 bytes 366.0KB/sec Tello: 02:15:24.545: Info: video data 755524 bytes 368.8KB/sec Tello: 02:15:26.669: Info: video recv: 1460 bytes 1300 +188 Tello: 02:15:26.669: Info: video data 732779 bytes 336.9KB/sec Tello: 02:15:27.230: Info: video recv: 1460 bytes 2800 +112 Tello: 02:15:27.551: Info: video recv: 761 bytes 2c88 +203 Tello: 02:15:27.780: Info: video recv: 1460 bytes 2d02 +228 Tello: 02:15:27.952: Info: video recv: 1460 bytes 2e05 +165 Tello: 02:15:28.198: Info: video recv: 879 bytes 3d88 +157 Tello: 02:15:28.366: Info: video recv: 1460 bytes 3e00 +167 Tello: 02:15:28.649: Info: video recv: 1460 bytes 4a03 +102 Tello: 02:15:28.669: Info: video data 648416 bytes 316.6KB/sec loss=45 Tello: 02:15:29.140: Info: video recv: 1460 bytes 5a06 +219 Tello: 02:15:29.302: Info: video recv: 1460 bytes 5e01 +141 Tello: 02:15:29.587: Info: video recv: 1460 bytes 6301 +257 Tello: 02:15:29.773: Info: video recv: 1460 bytes 6c00 +141 Tello: 02:15:29.961: Info: video recv: 823 bytes 7488 +168 Tello: 02:15:30.233: Info: video recv: 902 bytes 7d88 +137 Tello: 02:15:30.519: Info: video recv: 1460 bytes 8400 +254 Tello: 02:15:30.696: Info: video recv: 855 bytes 8b88 +109 Tello: 02:15:30.696: Info: video data 657300 bytes 316.6KB/sec loss=6976 Tello: 02:15:31.192: Info: video recv: 1460 bytes 8e06 +479 Tello: 02:15:38.389: Info: video recv: 1460 bytes 9006 +7163 Tello: 02:15:38.389: Info: video data 59445 bytes 7.5KB/sec Tello: 02:15:40.390: Info: video data 877370 bytes 428.3KB/sec loss=1743 Tello: 02:15:42.390: Info: video data 874746 bytes 427.0KB/sec Tello: 02:15:44.390: Info: video data 879162 bytes 429.2KB/sec Tello: 02:15:46.390: Info: video data 874980 bytes 427.2KB/sec Tello: 02:15:48.408: Info: video data 767261 bytes 371.4KB/sec Tello: 02:15:50.409: Info: video data 751104 bytes 366.7KB/sec Tello: 02:15:52.409: Info: video data 752640 bytes 367.5KB/sec Tello: 02:15:54.410: Info: video data 750923 bytes 366.4KB/sec Tello: 02:15:56.427: Info: video data 749793 bytes 363.1KB/sec Tello: 02:15:58.442: Info: video data 763651 bytes 370.1KB/sec Tello: 02:15:58.728: Info: video recv: 1460 bytes f100 +179 Tello: 02:16:00.442: Info: video data 751194 bytes 366.8KB/sec Tello: 02:16:02.442: Info: video data 752566 bytes 367.4KB/sec Tello: 02:16:04.443: Info: video data 749634 bytes 365.9KB/sec Tello: 02:16:06.444: Info: video data 755410 bytes 368.6KB/sec Tello: 02:16:08.444: Info: video data 752668 bytes 367.5KB/sec Tello: 02:16:10.444: Info: video data 751099 bytes 366.7KB/sec Tello: 02:16:12.445: Info: video data 752584 bytes 367.3KB/sec Tello: 02:16:13.742: Info: video recv: 1460 bytes c100 +197 Tello: 02:16:14.474: Info: video data 756240 bytes 364.0KB/sec Tello: 02:16:16.475: Info: video data 752612 bytes 367.2KB/sec Tello: 02:16:18.475: Info: video data 752539 bytes 367.4KB/sec Tello: 02:16:20.476: Info: video data 753988 bytes 368.1KB/sec Tello: 02:16:22.476: Info: video data 751152 bytes 366.7KB/sec Tello: 02:16:24.476: Info: video data 749710 bytes 366.0KB/sec Tello: 02:16:26.477: Info: video data 750911 bytes 366.6KB/sec Tello: 02:16:28.477: Info: video data 754210 bytes 368.2KB/sec Tello: 02:16:30.477: Info: video data 753958 bytes 368.1KB/sec Tello: 02:16:31.703: Info: video recv: 1460 bytes ee00 +182 Tello: 02:16:31.933: Info: video recv: 1460 bytes f500 +114 Tello: 02:16:32.123: Info: video recv: 1460 bytes fb05 +106 Tello: 02:16:32.293: Info: video recv: 1460 bytes ff05 +142 Tello: 02:16:32.461: Info: video recv: 1460 bytes 0406 +140 Tello: 02:16:32.477: Info: video data 703797 bytes 343.6KB/sec loss=8 Tello: 02:16:32.694: Info: video recv: 1460 bytes 0907 +208 Tello: 02:16:32.870: Info: video recv: 526 bytes 1389 +130 Tello: 02:16:33.050: Info: video recv: 1460 bytes 1605 +141 Tello: 02:16:33.180: Info: video recv: 1460 bytes 1b06 +103 Tello: 02:16:33.348: Info: video recv: 1460 bytes 2005 +141 Tello: 02:16:33.627: Info: video recv: 914 bytes 2588 +251 Tello: 02:16:33.804: Info: video recv: 1460 bytes 2e00 +133 Tello: 02:16:33.966: Info: video recv: 1460 bytes 3500 +125 Tello: 02:16:34.135: Info: video recv: 1460 bytes 3a00 +142 Tello: 02:16:34.321: Info: video recv: 1460 bytes 3f00 +153 Tello: 02:16:34.481: Info: video recv: 1460 bytes 4500 +125 Tello: 02:16:34.482: Info: video data 720113 bytes 350.9KB/sec loss=4619 Tello: 02:16:34.614: Info: video recv: 1460 bytes 4504 +130 Tello: 02:16:34.786: Info: video recv: 1460 bytes 4c00 +133 Tello: 02:16:34.964: Info: video recv: 1460 bytes 5204 +142 Tello: 02:16:35.141: Info: video recv: 1460 bytes 5802 +138 Tello: 02:16:35.313: Info: video recv: 1460 bytes 5d05 +142 Tello: 02:16:35.475: Info: video recv: 1460 bytes 6207 +133 Tello: 02:16:35.600: Info: video recv: 1460 bytes 6300 +125 Tello: 02:16:35.787: Info: video recv: 1460 bytes 6b01 +142 Tello: 02:16:36.506: Info: video data 784840 bytes 378.7KB/sec loss=10 Tello: 02:16:38.506: Info: video data 752585 bytes 367.4KB/sec Tello: 02:16:40.507: Info: video data 751112 bytes 366.7KB/sec Tello: 02:16:42.507: Info: video data 749610 bytes 365.9KB/sec Tello: 02:16:44.508: Info: video data 755600 bytes 368.9KB/sec Tello: 02:16:46.508: Info: video data 749607 bytes 365.9KB/sec Tello: 02:16:48.509: Info: video data 755434 bytes 368.8KB/sec Tello: 02:16:50.509: Info: video data 748269 bytes 365.3KB/sec Tello: 02:16:52.509: Info: video data 753978 bytes 368.1KB/sec Tello: 02:16:54.511: Info: video data 751069 bytes 366.4KB/sec