VTOL does not behave as expected after transition

Hey,

we are working on a tandem-wing VTOL with tilting wings and have some problems with the transitioning as well as the fixed-wing flight.
The design is aerodynamically not very stable but should fly with the help of a flight-controller.
After solving some issues with coupling effects from roll and yaw, by disabling differential thrust and adding tailfins (Winglets), we are able to achieve a full transition.

We transition in stabilized mode, but as can be seen in the flightlog the VTOL rolls to the right and goes into a dive after the transitioning. This also happend the same way in three more flights.
I was hoping someone might be able to point us in the right direction if we are missing something.

https://logs.px4.io/plot_app?log=89215b31-57fc-4748-b6e5-053284f2bcad!
https://logs.px4.io/plot_app?log=6d18899e-0671-4172-83e5-6af66bc168b9

13|690x388,50%

Hi @Thomas.leitgeb ,

Cool design! Have you ever flown it in fixed-wing before or is this the first time? It looks to be like the FW rate/attitude controller is badly tuned. The system begins to oscillate around roll during the transition, and they build up even faster after the transition (probably because then the MC motors don’t try to compensate) (see plot top right).
Looking at the roll rate plot (bottom right), I see that there is always a large delay between estimate and setpoint (see bottom right).

To make the rollrate track the setpoint closer I would increase FW_RR_FF and FW_RR_P.

Further, I noticed that you have some estimation problems (see the message log). They could result from a bad magnetometer placement, as the current through the motors affects the mag reading:


If possible I would try to get more distance between the mag and any power cable/ESC/motor.

Let me know how it goes!

Hey @sfuhrer,

Thanks for your quick reply.
This was the first time we managed to transition all the way to fixed-wing mode. So we did not do any tuning on the PID’s.
We will try again with increased rates, probably this weekend and let you know if there are any improvements. You are right with the fact that the power wires are right next to the FC, its kind of hart to change their position though since we are very space constrained. We could alternatively use the magnetometer of the GPS instead of the built in one.

Do you use a special program for your graphics?

Greetings Thomas

@Thomas.leitgeb,

Yeah sure, let me know how it goes, good luck!

I would strongly recommend you to use the external mag.

For plot analysis I use both flight review and PlotJuggler (https://github.com/facontidavide/PlotJuggler).

1 Like

@sfuhrer

Thanks again for the help, sorry that i did not reply earlier.
We went flying again and tried playing with the PID’s but did not really get it to work. The aerodynamic design itself is already kind of unstable and we also have some play in our current tilt-mechanism design. That’s why we take a brake with the project.

Greetings Thomas

Regarding the PlotJugger Apl., do you just import the .ulg files directly.
It dos not seem to work for me, used the recompiled Windows version. (Win 10)

1 Like

@Thomas.leitgeb okay, feel free to ask for inputs again later in your project.

About PlotJuggler: I don’t use it on windows but Ubuntu, so can’t help you much there unfortunately. I think in theory it should be supported, maybe during the build something went wrong. Maybe it’s worth to open an issue on Github for it.

@Thomas.leitgeb Hi, I just switched from Adrupilot to PX4.
Can you tell me how did you eventually modify the code?
I’d appreciate if you could show me your code.
You can reach me by
email: peterstone2200@gmail.com