Accel Fail Error for Multi Drone Sim

I want to spawn and control multiple drones through a ros2 node. I used ‘make px4_sitl gz_x500’ to spawn the first drone along with MicroXRCEAgent and QGroundControl. This works fine and I am able to control it through a ros2 node.

I tried to spawn a second drone using:
PX4_SYS_AUTOSTART=4001 PX4_SIM_MODEL=gz_x500 PX4_GZ_MODEL_POSE=“0,10,0,0,0,0” ./build/px4_sitl_default/bin/px4 -i 1

The drone spawns correctly, connects to QGC, and I can see the new ros2 topics published under another namespace, but soon I get this error and am unable to arm it:

ERROR [sensors] Accel #0 fail: TIMEOUT!
WARN [health_and_arming_checks] Preflight Fail: vertical velocity unstable
WARN [health_and_arming_checks] Preflight Fail: High Accelerometer Bias

How do i fix this?
I am using ubuntu 24.04.

Sounds like a resource issue, make sure your GPU is enabled and being used.

@AAB You need to specify PX4_STANDALONE, according to the documentation: Multi-Vehicle Simulation with Gazebo | PX4 Guide (main)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.