Hello guys,
I’m having a bit of a problem with HITL. I’m using X-plane10 with PX4, qgroundcontrol and Pixhawk to simulate the HILStar model. I’m doing this to learn how to tune a fixed wing scratch build in flight.
The problem is: after a minute of running the simulation, the level horizon and attitude of the HUD in the qgroundcontrol changes to be different that those in the x-plane. (It’s like you are putting the pixhawk inverted and titled in an airplane and moving it in flight inside the plane). This causes the airplane to flip and dive trying to align itself with the qgroundcontrol’s false level horizon when I put it in stabilize/ any automated mode other than manual.
Could you please help me if anyone came across such a problem?
P.S: I tried changing the “Flight models per frame” parameter in x-plane from 3 to 10 as all tutorials recommended to increase this parameter. (for some numbers this issue appeared faster and more aggressive than others)
Also, I tried using another pixhawk board to eliminate the possibility of error from it. (I used Pixhaws 1 and Pixhawk cube but the same issue appears).