Quadplane Hybrid RTL confusion

I’m having difficulty with the Quadplane Hybrid RTL. Here are the pertinent params:
Q_RTL_ALT = 20

Flying a 3DR Aero based Quadplane around in FBWA at 55m and 218m from Home, I activated RTL mode (11). I expected the plane to remain in forward flight and navigate towards home until within 60m, then start a descent to 20m and transition into Q-flight. (Do I understand this correctly?)
However, the Qmotors instantly fired up and the plane appeared very confused about what it was supposed to be doing. Both the Qmotors and the pusher motor were surging. I switched back to FBWA to regain control and transitioned back to forward flight.
Looking at the logs I see that at the moment I switched to RTL Mode, there were 4 messages generated, 2 say RTL and 2 say QRTL. Is this a bug?

2017-02-09 14-09-53.param (13.7 KB)

Here is the .log file https://www.dropbox.com/s/yb2ismq346e6t7e/33_1900%20QP%20test%2C%20long%20circle%20loiter.BIN?dl=0

I’m also having trouble when I transition into QLOITER mode. The Qmotors are surging and the pitch is porpoising a lot. This isn’t just and abrupt transition as it tries to grab a GPS position, it is an oscillation. I must not have something tuned right. What’s strange is that when I takeoff in QHOVER and switch to QLOITER, or takeoff in directly in QLOITER, the plane loiters very nicely and appears well tuned.
The bad behavior in QLOITER is likely the same cause for the bad QRTL behavior in the previous post. Although its still a mystery why is went into QRTL right away, rather than RTL.

Hi @iskess,
This is quite common, and is usually caused by one of two things:

  1. your compass is off by a bit, and that causes short distance navigation issues
  2. your XY gains are too high. For many quadplanes you need to lower them to about half the defaults
    The XY parameters are:
  • Q_PXY_P
  • Q_VXY_I
  • Q_VXY_P
    if you halve all 3 of those then you will probably find the problem goes away
1 Like

Thank you @tridge, I look forward to testing that.
What do you think about the RTL issue above?

I think this might be a bug. I’ll look into it as soon as I can and let you know. Thanks for letting me know!

I have finally fixed this bug. It was a race condition between the RTL navigation code and the QRTL code. Leonard Hall and I found the bug while testing for the 3.8.0 release.
Sorry it took so long to find this!

1 Like

Thanks Tridge. I’m looking forward to 3.8.