Ardupilot: [VTOL] Missing RTL_LOIT_TIME in case of quadplane

Created on 28 Oct 2020  路  15Comments  路  Source: ArduPilot/ardupilot

I'm finding that with non-vectored tailsitters the critical point during a QRTL is when the drone arrives on the home.
Being pitch inclined, it does not have time to stabilize once it reaches home, and begins to descend losing its attitude.
It would therefore be useful to have the RTL_LOIT_TIME parameter as in the Copter code, so that the tailsitter has time to stabilize the attitude before starting to go down on the home.

Platform
[ ] All
[ ] AntennaTracker
[ ] Copter
[ x ] Plane
[ ] Rover
[ ] Submarine

VTOL-Plane

All 15 comments

I'm fairly sure this can be fixed with a larger Q_A_THR_MIX_MAX. I think you have been testing in realflight? Can you share your model and params (I think you already shared with me somewhere, but I cant find them, sorry).

I tried everything @IamPete1 and I never got a decent result.
The model used is the Cat on our GitHub.

https://github.com/ArduPilot/SITL_Models/tree/master/RealFlight/WIP/Tridge/TailSitters/Cat

Q_A_THR_MIX_MAX set to 0.9, nothing has changed (on the sim).
Test with the parameters on our GitHub as a starting point, move the tailsitter away in Cruise, activate Q_RTL and let's change flight mode to RTL, you'll see what happens.

@robustini This is what I get, maybe you have something else? https://youtu.be/evjh0IAwogs

Has to be said the tune is not great.

@IamPete1 and this result you got it with the parameters attached on GitHub?

@robustini This is what I get, maybe you have something else? https://youtu.be/evjh0IAwogs

Has to be said the tune is not great.

You have activated QRTL from flight modes in the Planner, try setting Q_RTL_MODE with value 1 instead and then selecting RTL in the flight mode and see what happens.
EDIT: no, obviously not Q_RTL's fault, but I get this result with the parameters on the GitHub: https://youtu.be/uFD9VTtlgUw

@IamPete1 anyway try as I told you.
If you give QRTLs from flight modes it gets to me well on the home point, try making it transition using RTL and enabling Q_RTL_MODE instead.

I have duplicated that test and do not get the same loss of control.

https://youtu.be/sd-N4HrmnEY

I used these params CatTailsitter.txt

After hours of testing (damn) I found where the problem lies, it's all related to Q_M_THST_HOVER.
In the sim I used hover learn activated because I often fly in Q_Stabilize (even in reality), and this generates the problem in transitions and QRTL.
The automatic learn detects me a value around 0.37, and this raises the problem.
Just manually set it to a value beyond the real hovering point, for example 0.6 and everything works fine.
This means that in my opinion there is still something anomalous, as the high (unreal) hovering point then creates a misalignment of the throttle in QStabilize, which is not good.
The video shows the problem and "the fix": https://youtu.be/7Ya_QdkLD-M

First transition with Q_M_THST_HOVER at 0.6, the second with 0.4.

immagine

The conclusion is that this seems to be at least in part due to the Q_TAILSIT_THSCMX ATT_THR option. This assumes that a leaned over vehicle muse be going fast and reduces the gain, if not going fast this just results in loss of control. A possible fix would be to use the target lean angle rather than the actual, but TBH I'm not a huge fan of this method at all. @kd0aij Maybe you have some ideas?

As a result of taking another look at the scaling stuff I have done a small PR that should make it easier to see that is going on in the log, but should not cause any change to flight. https://github.com/ArduPilot/ardupilot/pull/15688

Does the problem go away if Q_TAILSIT_GSCMSK is zero or one?
BTW, the default is 1 and I don't see it in the parameter list for the Cat, so the ATT_THR speed scaling should not be active at all.

If ATT_THR speed scaling is causing a problem in auto modes, we should just disable it while in AUTO. Its purpose is solely for manual flight at high speeds in VTOL modes anyway. If you aren't doing that you should definitely turn it off.

Why don't we just force a higher throttle level (than Q_M_THST_HOVER) during the back transition?
Perhaps TK0FF_THR_MAX would be more appropriate.

Does the problem go away if Q_TAILSIT_GSCMSK is zero or one?
BTW, the default is 1 and I don't see it in the parameter list for the Cat, so the ATT_THR speed scaling should not be active at all.

If ATT_THR speed scaling is causing a problem in auto modes, we should just disable it while in AUTO. Its purpose is solely for manual flight at high speeds in VTOL modes anyway. If you aren't doing that you should definitely turn it off.

Unfortunately it is my case instead, I often fly in Q_Stab, and if a failsafe is activated in QRTL the problem occurs, so disabling it is not the good solution imho.

What values are you using for Q_TAILSIT_GSCMSK and Q_TAILSIT_GSCMIN?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JonathanPlasse picture JonathanPlasse  路  9Comments

rscarawa picture rscarawa  路  9Comments

peterbarker picture peterbarker  路  7Comments

rmackay9 picture rmackay9  路  4Comments

yanivasy picture yanivasy  路  7Comments