PX4 Python Simulator

Dear Community,

I’d like to share my Python based PX4 simulator with you. It uses the mavlink interface and was heavily inspired by JMavSim. So far Iris as well as a X8 fw wing model is supported. Also another racing quad called ts06 is included. The corresponding FMUs for PX4 are included as well. Also multi vehicle setup and other features are supported. Main motivation is to have a lightweight multi vehicle simulator, which can be easily modified.

More in the Readme

I’m heavily interested in your feedback and what could be improved.

Cheers

Chris

A lightweight Python-based simulator that plugs into MAVLink is exactly the kind of tool the community needs for quick iteration.One thing that would be super valuable from a motor/prop testing side: if the simulator exposes motor thrust/torque curves and thermal behavior, it could help people tune PID loops and predict real-world performance before they even power up the quad. Any plans to add configurable motor models or prop efficiency maps?Great work, excited to see where this goes.

Thanks a lot and good point. Well, yes adding this feature won’t be that difficult. So far as I have no specific data of a thrust stand, I tried to keep it as generic as possible. The x8 force model pretty much illustrate what is possible. Let me ask the other way around, do you know a good source of such data for various propeller/motor combinations?

I also thought about a hybrid 6dof model that takes a flight log for fitting certain parameters, but I’m not sure how generic this is going to be.

Data is patchy online — RCBenchmark/E-Calc mostly. I can share some thrust-stand CSVs if useful