Auterion / px4-jsbsim-bridge

JSBSim bridge for PX4 SITL/HITL simulations
BSD 3-Clause "New" or "Revised" License
26 stars 38 forks source link

"Airspeed sensor failure detected (1, -1)" after landing #49

Open zimmy87 opened 3 years ago

zimmy87 commented 3 years ago

When running the PX4 JSBSim bridge via make px4_sitl jsbsim on Ubuntu 18.04 and with QGroundControl connected, I'm seeing the PX4 console output a poll timeout 0, 22 error after completing a mission and landing, as well as a Airspeed sensor failure detected (1, -1) dialog inside QGroundControl. The view inside of FlightGear goes black and PX4 is unresponsive at this point and needs a restart before uploading another mission. px4_jsbsim_error_on_land

Jaeyoung-Lim commented 3 years ago

@zimmy87 Thanks for reporting, I will have a look

Jaeyoung-Lim commented 3 years ago

@zimmy87 Turns out this is not something coming from the simulator, but was a real issue on the flight controller side.

This was reported in https://github.com/PX4/PX4-Autopilot/issues/18437 and fixed by https://github.com/PX4/PX4-Autopilot/pull/18442

Since https://github.com/PX4/PX4-Autopilot/pull/18442 has been merged, could you check if the issue has been resolved?

rrajnidhi commented 2 years ago

@zimmy87 Even i was facing same issue. I guess the reason was bcz of steady airspeed sensor value getting published after landing or when aircraft is not moving. PX4 considers this as a sensor fault. I have resolved it by changing the value of wait time from 1 second to 10second in /src/modules/airspeed_selector/airspeed_selector_main.cpp Try and let me know.

Jaeyoung-Lim commented 2 years ago

@rrajnidhi Are you sure your firmware includes the fix in https://github.com/PX4/PX4-Autopilot/pull/18442 ?