About correct pid tuning and ETC

Hi

The problem with the previous vibration has been solved somehow

I would like to thank Chris and Bill for helping me solve this problem.

Today I was wondering about the “correct PID” problem.

The flight of a quadcopter with a bad PID is really scary, and helicopters are scary, but not that much.

I watch the helicopter look and tuning the pid

How are you tuning?

Looking at the flight like me?
Using a program?
Using the formula?

I’m really curious about your method.

And I saw the blog after the flight.
I do not know what this means, but I knew I wanted to tell a lot of things to me.

I saw ATT - Desire’xxx ‘and ATT -’ xxx 'items.
The graph is very misaligned.

What does this mean?

Finally, I ran the position hold mode.
It was very stable at first, but after a certain amount of time, the helicopter began to spin around with its head fixed in place.

I always want to make a stable helicopter like DJI’s phantom.

In this unstable position hold mode, what parameters can I modify to fix this?
Or should I run the compass calibration again?

Please use the traditional helicopter tuning wiki found here. Hopefully that is what you are referring to when you mentioned that you found the blog. Please post a param file for your current configuration. that will help me give you advice.

When the desired and actual don’t line up with each other, it means that you either don’t have enough I gain (ATC_RAT_XXX_I) or the leak min parameter (ATC_RAT_XXX_ILMI) is not large enough. typically the ATC_RAT_XXX_I is about the same magnitude as ATC_RAT_XXX_VFF. the ATC_RAT_XXX_ILMI parameter should be between 0.05 and 0.1. that should make the actual value track the desired value more closely.

Please post a param file and we can go from there.

Bill, the help of the previous question was very grateful.

Here are the parameters of this question and the B_log file.

I have not done any PID tuning yet

https://mega.nz/#!6VBjAK7I!KEgHqwH7_ueRQ8T0d4URgtp5vgM3jZJqWrcy7hR-pZs

@Ricoman since you have not done any tuning yet, with Copter 3.6 we have had good results in most helicopters by using the default parameter files you can load. For Mission Planner it is this file.

For QGroundControl use this one.

These params can simply be loaded from the frame params dropdown in Mission Planner setup. They provide a miminal ILMI value and the tail tuning may be a bit too sensitive. For a 700 class helicopter otherwise they should provide the correct tuning that will achieve good attitude tracking, and good high-speed flight characteristics.

Hello bill

I listened to you and tuned pid

Now desire ‘xxx’ and ‘xxx’ are two correct ones.

Does this look set up well?
Is this the right setting?

Hello Chris

I found something unusual about this flight.

During spooling up

Swash servo moves.

It is horizontal.
When the spooling up starts, the level of the swash plate is broken as the servo moves.
If i disarm, it will return to its original state.

What am I supposed to do?

This is strange. Do you have a log with this in it to see what might be happening?

@Ricoman did this start to happen after you finished the PID tuning? It is possible that you have nonzero ILMI and there is integrator buildup due to either aircraft attitude or a pilot input. The only reason I say this is the integrator is turned on and off in the same manner that you describe for the swashplate behavior. I think it is best if we see a log to ensure it isn’t something else.

Hi Chris

I have a log and I’ll attach a video.

https://mega.nz/#!KVxElAiS!PXKnLonTSKZZGLzdZ5NteA7pQQI4dkpBfG-CGINtkIY

https://mega.nz/#!3EgwSYhL!JhFXQhYDJxPY3EYCpXmwCX82utkbRmmwJgj4Tg4hJvo

@bnsgeyer it appears to me that the desired pitch attitude is changing by up to 45 degrees when armed or disarmed, and drifting some otherwise. And why it’s doing that is not readily apparent to me.

From what I’ve looked at the movement of desired pitch is commanded.


Everytime he displaces his stick it the desired pitch moves as well

The swashplate movement appears normal to me especially with PIT_I and RLL_I near 0.6 and PIT_ILMI and RLL_ILMI at 0.5

@Ricoman your tuning does not look similar to other helicopters that I’ve tuned. Your I gains are very high and your ILMI is dangerously high. I recommended not exceeding 0.1 for ILMI. I think you should take @ChrisOlson recommendation and load the default gains for heli as he’s described in a previous post. Then the only parameter you may need to increase the ILMI settings. Just a thought.

Chris I have done some experiments.
I think this is a firmware problem.

I put the parameters set in the old firmware into the new version of the firmware.
The old version of the parameter did not cause any problems, but it caused problems in this experiment.

I uploaded the parameter set in the new version to FC with the old version firmware.

It was a problematic parameter, but no problem occurred.

I suspect that the list is affected by newly added or missing parameters.

Thanks Bill
I always try to practice the advice of you and Chris if possible.
Of course, very little is done because of my knowledge and experience limitations.

Again, let’s practice the advice of you and Chris.

Thank you for always helping me.

In addition,

What kind of graph is good?

Is it better to completely overlap the graphs of ‘desire’xxx’ and ‘xxx’?

I have a lot of time.
If you tell me which graph is a good graph, I’ll try to do it somehow through iterative implementation

Ok, yeah, thanks. I neglected to look at RCin thinking since it wasn’t being flown that would not be messed with.

It is not a problem with the firmware. Please load these parameters into it and see if it fixes it:

Thank you.
I am ready to fly now.

If something goes wrong, I’ll use the information you gave me.

Chris
I went on a flight.
First of all, I have something to report to you.
On this flight our helicopter did not maintain a balanced rpm.
For example, I have set the governor to 6800 rpm, which is actually quite variable from 6500 to 6900 in this way.
I set the needlebelt of the engine.
The rpm moves randomly in the range of 6600-15000.

I could not fly because of this rpm condition.

You will have to tune the engine and set the governor gains and throttle curve. You are using an Aerospire governor with a RSC Setpoint, and that is not the correct way to use the Aerospire. There is no way it can work without a throttle curve.

Uh … Well … I’ve been operating the helicopter in a completely wrong way.

So I need to set RSC to THROTTLE CURVE instead of SET POINT?

I have heard that if I used the governor, I had to set it to SET POINT.

And when I actually fly a helicopter, the helicopter kept a certain number of RPMs, so I thought it was not a problem, but it was a bad choice.

If I set it to THROTTLE CURVE, can you expect better flight performance?

You must read the instructions for the Aerospire governor. It requires a throttle curve to work right. The way you have it configured at present, if your speed sensor fails you will experience loss of power in flight.

SETPOINT is for electric ESC governors. All combustion engines require use of the throttle curve.

Wow … I knew it now.

Thank you. I can go the right way even now.