dbaldwin / DroneBlocks-Tello-Camera-With-Python-OpenCV

Take photos and record videos with Tello's camera using a browser-based app and DroneBlocks
https://learn.droneblocks.io/p/opencv-python-and-droneblocks-for-tello-camera-control/
Apache License 2.0
21 stars 12 forks source link

Clean exit #10

Closed youngsoul closed 4 years ago

youngsoul commented 4 years ago

I was working through the "OpenCV, Python, and DroneBlocks for Tello Camera Control" course and noticed you had to ctrl-c twice to exit.

I took a look at why that might be the case and it looks like we need to set the threads to daemon threads. After doing this it worked, but I also had to perform some None checks as well.

I also added '.idea' to the .gitignore so my pycharm artifacts will be be ignored.

dbaldwin commented 4 years ago

Thank you @youngsoul for your improvement!