Tools: sim_vehicle.py: increase number of mavproxy connection retries

some platforms are slow enough that the ArduPilot process takes too long to start for the default retries to work.  And Valgrind makes it worse
This commit is contained in:
Peter Barker 2025-02-25 15:18:18 +11:00 committed by Peter Barker
parent 4e872be75a
commit 5d053d6722

View File

@ -871,6 +871,11 @@ def start_mavproxy(opts, stuff):
else: else:
cmd.append("mavproxy.py") cmd.append("mavproxy.py")
if opts.valgrind:
cmd.extend(['--retries', '10'])
else:
cmd.extend(['--retries', '5'])
if opts.mcast: if opts.mcast:
cmd.extend(["--master", "mcast:"]) cmd.extend(["--master", "mcast:"])