Hi there
I already asked this in slack but did not get an answer yet. Probably it was the wrong channel? [0]
So whats my problem: I’m trying to setup a testing environment using px4-sitl, AirSim and QGroundControl.
Most of these parts work already. PX4 builds and starts correctly. It connects to AirSim (even in a multi-drone scenario) and can be controller via QGC.
But: during the simulation AirSim mentions that something went wrong and resets the lockstep mode.
At the same time (before and after the reset) the drones start to wobble around and QGC mentions sensor timeouts.
I already investigated a bit and went into the source code. AirSim resets lock-step if he did not receive a HIL-Control-Message within 100ms and some users mentioned that both problems might be duo to a too weak computer.
What I don’t understand about this is the lock-step part. If I understand it correctly, the lock-step mode should somehow synchronize the px4-container with the simulator. Thus, if one of them is too slow it slows down the other one.
Still timeouts occur and the simulation does not seem to be slowed down. If I start px4 and/or AirSim with a slower simulation speed the drones are slower in AirSim but following QGC MAVLink messages are still send at the same rate as before. Additionally the source-code of AirSim seems to not take the simulation speed into account when checking the 100ms timeout.
Did I understand anything wrong? Does anyone know how to fix this without buying a better computer? (It would be more than acceptable to slow down the simulation to reach this goal but it did not work yet)
Thanks already
[0] Slack