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.
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.