ThunderFly-aerospace / PX4-FlightGear-Bridge

FlightGear simulator to PX4 software stack connector
BSD 3-Clause "New" or "Revised" License
34 stars 42 forks source link

The error occurs when using FlightGear for software-in-the-loop simulation in v1.14 and later #32

Closed 747640013 closed 9 months ago

747640013 commented 9 months ago

I use FlightGear for fixed-wing software-in-the-loop simulation. However, after running the command "make px4_sitl_nolockstep flightgear_rascal-electric," I encountered the following error:

ERROR [simulator_mavlink] Number of simulated accelerometers 80 out of range. Max: 3.

This issue arises in PX4 Firmware version 1.14, while it doesn't occur in version 1.13.3. I am looking to resolve this problem, but I am having difficulty identifying the issue. Does anyone have any suggestions?

kaklik commented 9 months ago

You should reduce the number of EKF filters running simultaneously in the PX4 parameters configuration. There may be an uninitialized variable.

747640013 commented 9 months ago

Thank you for your reminder. There should be uninitialized variables, as the number of accelerometer errors is inconsistent every time I start this simulation. I'll try to see if I can identify and resolve the issue.

747640013 commented 9 months ago

Thank you, it's just that the PX4 source code lacks initialization for sensor_msg.id