Snaking in X-Plane: but not with Radio Control "great planes .60 trainer"

I'm trying to get to grips with the PID tuning stuff using X-Plane

Using various GA aircraft, they would all snake when going from Waypoint 1 to Waypoint 2 and back again. I could get them to "stabilize" without too much oscillation, but the aircraft would roll oscillate in trying to follow a track.

When I load up the "Radio Control" example plane - a Great Planes 60 trainer with "stable trainer like handling" all the nav course following snaking goes away immediately, no PID tuning required, same values as the ones troubling for the GA aircraft.

Why would that be?

How do I find search for smooth autopilot settings for General Aviation craft, even the very simple one like the StinsonL5 (high wing trainer)?

Views: 193

Reply to This

Replies to This Discussion

The nav tuning guide is in the manual here.

Sorry I should have mentioned that, I've been through the guide,
It did not help reduce the snaking.

I started with mucking around with values for auto stabilize
then moved onto the nav_roll stuff.

Circling: OK.
Maintaining altitude in a constant turn: OK
Stabilize: reasonably OK

however all the GA planes I can't get them to maintain a bearing without constant rolling back and forth.

But the RC plane worked with just whatever values I had left in there, so it seemed much less sensitive.

Do you have a known good set of values for any single X-Plane GA aircraft handy? Cessna, whatever .. then I can just load them or enter them and see..

You changed Nav_Roll I, Nav_Roll P and Crosstrack gain and it did nothing? Really?

It did lots of things, for sure, it changed the snakiness, and the aggressiveness of corrections.

But I could not locate values that showed much overall improvement, and worse if I looked at the "servo outputs" especially if you started to add some "D", there started to be big instantaneous spikes in those as well.

Also, APM would only show updates to nav_roll once per second so I was never sure about what was going on at 50hz on the board.

 

BTW you can see this just with the default values, and any X-plane general aviation demo aircraft. I think.

 

What exactly is Xtrack Gain (degrees per cm)? 

Is there an explanation of why it would be necessary to adjust this and what direction and how much to adjust it by?

Telemetry rates can all be set in the Mission Planner:

 

I figured that XTRACK GAIN has to do with how aggressively to follow the line between waypoints.

When I turned it off for GA, set to zero, all the snaking vanished and it made bee line from wherever it was to the WP.

When I turned it on but much lower than the default, I got the plane to follow the yellow line ok, but not snake.

I think XTRACK_GAIN is something that needs to be small for fast planes and large like the default for slow planes.
That was the missing piece of the puzzle. None of the PID settings needed much if any tuning really.

thanks.

BTW, there is some current issue with telemetry and the screen updating in APM: In the "Flight Data" Tab, in "Status", irregardless of the Telemetry rate settings, the numbers are not updating very quickly. Also in the green/blue fake HUD, GPS switches back and forth betweeen "GPS:No Fix" and "GPS: 3d Fix".

Meanwhile the dos console is spewing out:
"string to screen NoError" and "string done" text messages as fast as it can..

thanks.
Justin, I checked with Doug Weibel tonight (he's the main nav author) and he says by far the most important PID to work on first is Servo_Roll_P, which basically determines how much the control surfaces move.

The instructions in the Tuning guide are pretty good, and will walk you through this. I'll try to flesh it out in a bit more detail this week, too.

http://code.google.com/p/ardupilot-mega/wiki/Tuning

fair enough.

but changing the XTRACK setting was dramatic. I did a lot of experiments sitting here watching the x-plane fly around Innsbruck :)

 

I am pretty sure that setting has critical dependance on the flying speed of the model: small RC planes: 100 is ok. Big fast planes (or RC jets etc), must be much smaller. Perhaps you can ask him that? It is easy to see, you just get the plane (in x-plane) travelling between two waypoints and change dynamically the xtrack value, watch the snaking vanish with low numbers. And get really bad with 100 or above numbers (if the plane is ~80 knot + type plane).

 

I realize fixing the servo PID is necessary first, and nav roll pid next, BUT decent control is pretty forgiving of mistakes there: it'll fly the plane in windless situations without any drama with all kinds of values.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service