I am working on ubuntu 19.10 on tello in the tello_video repo.
i created a web api and a script that are linked together and when i click on a button on the web application that i have created my script will receive a request and will activate and launch the drone.
My problem is, this script is a while loop that check everytime if i have to activate the drone or not (button clicked or not) .
when i try to activate the drone for the second time, i get an error saying that i do not close the socket so it is impossible.
I digged a lot in the code and i don't see how to figure out with that as i call correcty the "close()" function and "del" the class instance which must close the sockets (main socket and video socket).
I am not a senor programmer so maybe i do some noob mistakes but after many hours to look for solving this problem i do not find any solution.
I would be glad if someone could help here.
Thanks
Hello,
I am working on ubuntu 19.10 on tello in the tello_video repo.
i created a web api and a script that are linked together and when i click on a button on the web application that i have created my script will receive a request and will activate and launch the drone.
My problem is, this script is a while loop that check everytime if i have to activate the drone or not (button clicked or not) . when i try to activate the drone for the second time, i get an error saying that i do not close the socket so it is impossible.
I digged a lot in the code and i don't see how to figure out with that as i call correcty the "close()" function and "del" the class instance which must close the sockets (main socket and video socket).
I am not a senor programmer so maybe i do some noob mistakes but after many hours to look for solving this problem i do not find any solution.
I would be glad if someone could help here. Thanks