Accel and Gyro fail in SITL


I am running PX4 SITL on my computer. When working with it, errors such as “Accel timeout, Gyro Timeout” appears on the console. Just after this, the simulated drone falls into the ground. I have no clue on why this error occurs. I observe this error in v1.5.5, v1.6.1 and also in v1.6.3. Could you please help me with this issue?

Are you using Gazebo? Try running it headless.

HEADLESS=1 make posix_sitl_default gazebo_plane

Hello Dagar,

I am using jmavsim simulator, I see the same problem even after trying it as headless (as mentioned in the following command) :disappointed:

HEADLESS=1 make posix_sitl_default jmavsim

I don’t think jmavsim has a headless mode exposed, but generally I see these timeouts when the system isn’t fast enough.
Are you running this virtualized (virtualbox, vmware)? Check that nothing else is running in the background. I would also try headless gazebo for comparison.

I am running the SITL in Windows10 Bash. I agree that this error is mainly because of computational capacity, as I see this error immediately on unplugging my laptop’s power.