Sitl model

Hello,

I’m using px4 SITL and HITL with iris model. I’d like to integrate my copter and other sensors to perform simulation in gazebo.

I wonder if someone can give me some details on the mathematical model implemented in SITL. I think the dynamic behaviour of the copter is based on the equations for forces and moments of the rigid body. I wonder how the propulsion system is modeld, as well as all the other sensors provided in the simulation (i.e. IMU, GPS etc.). How about the aerodynamic forces for the fixed wing simulation? Are they based on real aerdodynamic coefficients?

Moreover, I’ve noted that when I’m testing SITL or HITL the battery level goes down to 51% but then it doesn’t change even if I run the simulation for a long time. How is implemented the battery behaviour?

Thankyou in advance

The battery simulation happens here:

Thank-you! That’s interesting!
Do you know if ground effect is modeled in SITL?

From a search I didn’t see anything:
https://github.com/PX4/sitl_gazebo/search?p=3&q=ground&unscoped_q=ground

1 Like

Gazebo can simulate an entire world.
You need to have look at the following:
http://gazebosim.org/tutorials?tut=architecture&cat=get_started

Gazebo have good tutorial, it worth to speed a time reading it.

Finally, you can choose for the simulated model wether if should be affected by
the real world physics or not.