How to make use of simulator's time multiplier to speed-up the simulation clock

We need to simulate the UAV to perform tasks many throusands of times, which takes an average of tens of seconds each time, which is quite time-consuming. Is there a way to make use of simulator’s time multiplier to speed-up the simulation clock by modifying the source code, similar to the speed-up gear in windows.

Yes, you can speedup the SITL simulations by using the sim_vehicle.py --sim-speedup parameter

1 Like

Yes, that is a useful method. However, can we change the flow rate of time by modifying the source code of the simulator, for example, setting the time flow rate in the simulator to be twice the real time

Did you manage to do this? I am trying to do the reverse by changing the time to slow it down…