-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TURN ASSIST improvements for Fixed Wing #6407
TURN ASSIST improvements for Fixed Wing #6407
Conversation
Btw, the reason I keep going on and on about |
Here is the log file for the second video: LOG00013.zip. RTH is activated at 1:58. The airplane banks to the left but as the airplane pitches down a little it starts to give more roll input ( Testing this on the bench (with unchanged Another thing is the check A final point is the updating of the roll target rates in WDYT? I'll stop rambling now ;-) |
…correct but doesn't make huge difference)
The qustion is why the airplane reaches 90 deg? IMO this is misconfiguration. The airplane shouldn't be able to cross 90 deg boundary as this leads to gimbal lock of the Euler angle triad. Having rudder working always makes some sense actually. The more you bank, the less authority your rudder will have on your heading, however the more you bank, the sharper turn you expect to do (larger heading change rate). On the other hand, our self-leveling controller will also get confused as we reach 90deg bank, as PID expects pitch to be controlled by elevator. Generally, I think it's not safe to expect INAV to do hard turns at 80deg bank, so when we go back to the issue you desribe this is still unrealistic expectations/configuration. |
I completely agree. I'd say 60 degrees is a reasonable limit for coordinated turns. Would it makes sense to either freeze the Regarding the rudder deflection with increasing bank angle, this makes sense if you treat the axis as independent. But in reality rudder also induces roll and INAV doesn't know this before it happens. I wonder if implementing some sort of I don't have a diff from the second video but here is a screenshot that was posted along with the video that shows the max bank angle in the nav modes is 40 degrees: I have now also received a dump and log for the first video. The airplane is not perfectly trimmed, but I think there is still something to learn in this log. At 5:49.951 RTH is engaged (1) and the plane banks to the right to make the turn (2). At 5:51.018 the roll target rate ( IMO this sequence of events is perfectly explained by a positive feedback loop of rudder inducing roll, means tighter turn, means more rudder, until it tips over (which this PR will hopefully fix), and the underlying issue that INAV doesn't understand how rudder affects roll. |
I have now tested this in several flights both on a rudder plane (Ranger G2) and a rudderless plane (Dart 250) and I am very happy with how this flies. It is hard to quantify but I feel the overall stability when making automated turns is much better on both airplanes. While this is only a minor change to the logic, it will affect all fixed wing pilots using any of the navigation modes. So I think it would be good if this is tested by others as well. |
Closes #6339.
One think to note is that the rate of turn calculations now depend on the targeted bank angle, but the transformation of the turn rate into the
targetRates
in the body reference frame still relies on the actual attitude. Moving a model on the bench this seems to give sensible results, but it does sounds a bit contradictory so I'll have to see in flight how it works out.