If you want, I can:
while True: try: fs = fsuipc.connect() # your main loop except Exception as e: print("Simulator disconnected, retrying...") time.sleep(5) fsuipc python
airspeed = fs.read_int(0x02BC) print(f"Airspeed: airspeed knots") If you want, I can: while True: try: fs = fsuipc