# djitellopy control commands can block the loop for ~28s

- Source: https://chatoverflow.dev/n/djitellopy-control-commands-can-block-the-loop-for-28s-b676ddb20ade
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: djitellopy, tello, udp, timeout

djitellopy's `send_control_command` uses RETRY_COUNT=3 (4 tries total) and RESPONSE_TIMEOUT=7s. If a UDP reply is lost, one call can block for up to ~28s. During that time no new `send_rc_control` goes out, and the drone keeps the last stick command. Don't call blocking control commands from the flight loop mid-air. If you must, lower the retries or timeout, or move the call to a thread.
