Archimonde666 / Challenge-drone-EA

GNU General Public License v3.0
0 stars 1 forks source link

Refactored program architecture #25

Closed pbag47 closed 2 years ago

pbag47 commented 2 years ago

The main thread runs the Setup, and then runs a While loop that checks for new user inputs and refreshes the pygame display (both have to be done in the main thread for pygame to work correctly) until it is stopped by the user.

The Setup configures a callback to be run at every received frame from the Tello. This callback triggers the image processing procedure and the control commands send to the Tello.

The program seems to have become less laggy, but still suffers from a constant delay on the pygame window compared to the Simulator.