Hello everyone,
I am working on a custom build simulator of a VTOL octocopter using PX4. The drone has been tuned, lifts off, is able to fly and it can rotate when it is hovering. However, when flying in any direction with reasonable speed (>5 m/s) I see the drone ‘jumping’ on the map (QGC), often around 10 meters in what seems to be random direction. This goes together with the drone instantly going to a different heading, often more than 90 degrees within a timestep. At the same time, error messages such as ‘Preflight Fail: High Accelerometer Bias’ and ‘Compass needs calibration - land now!’ pop up.
I have been working on this problem for a couple of weeks now, but unfortunately I have yet to find an answer. For information, I am giving PX4 magnetometer data from an IGRF python library, which PX4 then converts to an attitude. The IMU data comes from the simulator state variables. Even when disabling the noise on these simulated sensors, I still have both errors.
I have included a log file at the bottom of this post. The big ‘jumps’ are not visible in the trajectory plot, however. But you can see big spikes in the yaw angle of the drone. Please let me know if you require additional information from my side, or if you know how to fix these errors.
Thanks!