Preflight Fail: barometer 0 missing

Hi all,
I’m trying to make a drone fly (simple takeoff) in a gazebo (garden) simulation using PX4 (with ROS2 and micro-XRCE-DDS agent).
Sample example PX4_SYS_AUTOSTART=4001 ./build/px4_sitl_default/bin/px4 works fine.
When I try to use my world (by running gazebo before the px4 command), I got a preflight fail

Preflight Fail: barometer 0 missing

Do I have to add something in the world file ?

I reply to myself.
I needed to add the AirPressure sensors ‘gz-sim-air-pressure-system’

1 Like