Hello!
Sim setup: PX4-SITL (Quadrotor, 1.15.4 dev, Git Revision: 99c40407ff000000) on WSL2 + Microsoft AirSim (UE 5) + QGC + Xbox controller.
Device: Dell Latitude, Intel Core i7, 32GB RAM, no GPU, Win 11 Enterprise 64-bit.
I need assistance in resolving an issue that has cropped up in the last week even though i have not made any configuration changes to px4-sitl or AirSim. Until a few days ago, I was able to fly the quadcopter around the AirSim environment without any issues, and all sub-systems of the sim setup worked just fine. Now, I cannot arm the quadcopter because of a sensor issue - mag and baro. Any insights into what might cause these two to fail or timeout? Not attempting offboard, not using python (airsim client) scripts, just old-school joystick teleop which I have gotten to work multiple times recently and over the years.
I have attempted the usual first-line troubleshooting steps - network (VPN, firewall, IP checks), AirSim settings.json, PX4 params sanity check.
[0/1] launching px4 none_iris (SYS_AUTOSTART=10016)
______ __ __ ___
| ___ \ \ \ / / / |
| |_/ / \ V / / /| |
| __/ / \ / /_| |
| | / /^\ \ \___ |
\_| \/ \/ |_/
px4 starting.
INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0
env SYS_AUTOSTART: 10016
INFO [param] selected parameter default file parameters.bson
INFO [param] importing from 'parameters.bson'
INFO [parameters] BSON document size 1231 bytes, decoded 1231 bytes (INT32:18, FLOAT:38)
INFO [param] selected parameter backup file parameters_backup.bson
INFO [dataman] data manager file './dataman' size is 7872608 bytes
INFO [init] PX4_SIM_HOSTNAME: 172.xx.yy.1
INFO [simulator_mavlink] using TCP on remote host 172.xx.yy.1 port 4560
WARN [simulator_mavlink] Please ensure port 4560 is not blocked by a firewall.
INFO [simulator_mavlink] Waiting for simulator to accept connection on TCP port 4560
INFO [simulator_mavlink] Simulator connected on TCP port 4560.
INFO [lockstep_scheduler] setting initial absolute time to 1763435311334455 us
WARN [vehicle_angular_velocity] no gyro selected, using sensor_gyro_fifo:0 1310988
INFO [commander] LED: open /dev/led0 failed (22)
WARN [health_and_arming_checks] Preflight Fail: ekf2 missing data
INFO [tone_alarm] home set
INFO [uxrce_dds_client] init UDP agent IP:127.0.0.1, port:8888
INFO [commander] Ready for takeoff!
ERROR [vehicle_magnetometer] MAG #0 failed: TIMEOUT!
ERROR [vehicle_air_data] BARO #0 failed: TIMEOUT!
INFO [vehicle_air_data] BARO switch from #0 -> #1
WARN [health_and_arming_checks] Preflight Fail: No valid data from Accel 0
WARN [health_and_arming_checks] Preflight Fail: No valid data from Gyro 0
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030
INFO [mavlink] partner IP: 172.xx.yy.1
INFO [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280
INFO [mavlink] MAVLink only on localhost (set param MAV_{i}_BROADCAST = 1 to enable network)
INFO [mavlink] MAVLink only on localhost (set param MAV_{i}_BROADCAST = 1 to enable network)
INFO [px4] Startup script returned successfully
pxh> INFO [mavlink] partner IP: 172.xx.yy.1
ERROR [vehicle_magnetometer] MAG #0 failed: TIMEOUT!
ERROR [vehicle_air_data] BARO #1 failed: TIMEOUT!
ERROR [simulator_mavlink] poll timeout 0, 22
WARN [commander] Arming denied: Resolve system health failures first
Thanks in advance for your time!