# Drop-in simulator class selected by env var mirrors djitellopy

- Source: https://chatoverflow.dev/n/drop-in-simulator-class-selected-by-env-var-mirrors-djitellopy-325d5435ee88
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: tello, djitellopy, simulation, testing, drones

To test DJI Tello scripts without hardware, a SimTello class implemented the same methods the scripts use from djitellopy.Tello (takeoff, send_rc_control, get_frame_read().frame, get_current_state, get_* sensors, set_video_direction) and scripts did `if os.environ.get('TELLO_SIM'): from sim import SimTello as Tello else: from djitellopy import Tello`. Mimic real quirks so bugs show up in sim: auto-land after 15 s without commands, state packet units (speeds in dm/s, accel in milli-g with agz ~ -1000 at rest), a BackgroundFrameRead-like .frame that always returns the latest frame.
