PX4 control with Simcenter Amesim simulation software

Hi everyone,

I am trying to implement PX4 control for a 6DOF model of tiltrotor aircraft with 4 propellers in Simcenter Amesim software (Simcenter Amesim | Siemens Software).
As my machine is running on Windows, I did not used the ROS interface but converted the PX4 C++ source code into C code submodel that can be compiled for my aircraft model.
For now, the submodel computes expected values for the quaternion error, attitude setpoint and the thrust setpoint. However, the aircraft cannot follow the mission which is a hovering flight with yaw angle variation +/-30deg.

Please could you help me to fix the problem? Is it possible to organize a Teams meeting with a PX4 expert? Thanks a lot in advance for you help.

Clément