PID feature request
I think we really need integrator in modes like STAB.
I agree that it is not the best that i fight against it during a turn or on any control input.
But if you could watch the channel that controls it. Than you can add a criteria like;
integrator_state = 1; if (ch1raw > (ch1_middle + 2) || ch1raw < (ch1_middle - 2) ) integrator_state = 0;
This is just a theory example, but this was the simplest way to tell. :)
Thank you for your attention, Gábor
I assume we are talking about copters..
hmm...we use to have the I term in the earth frame (which is what stabilize is) and it didn't work well. We went through a lot of debate and flying and determined that it was best to have it on the rate level.
So unless there's some more evidence that this makes things better I don't think we will implement this. If you do want to try it, AC3.0.1 does have the ability to have an I term in stabilize. I believe the parameters are STB_RLL_I and STB_PIT_I. Give it a try and see if you like it better.
For now I think I will close this issue but feel free to raise again if you come up with more evidence that it's an improvement. Sorry!
Hi,
Wow you have closed it fast! :D
But, please consider my suggestion. I think it would solve this perfect!
integrator_state = 1; if (ch1raw > (ch1_middle + 2) || ch1raw < (ch1_middle - 2) ) integrator_state = 0;
Also it was better the way it was before than now. I did fly in stab a lot! Now not at all..... :( It was building up it is true, but i even did fly close formation that way! But the way i suggested it would never build up!
Now stab dos not really does the job it should. It does partially but i think it is like a 3 wheel car.
Thank you for your attention, Gábor
hmm...mostly i've heard good things about moving the I term to the rate controller. I'm definitely not saying that stabilize is perfect of course...
Gábor, are you talking planes or copters?
Hi,
Just to make sure that i am at the right place. I am talking about ArduPlane. :) I did not found an option to put a "tag" on this.
Sorry i don't understand your last post. I mean i understand, but don't see what do you mean by. :)
I was not talking about re enabling it. I suggested to only enable it when the transmitter stick is in neutral position. And only on aileron. So when there is an input from tx than "I" will be left where it was, so no buildup at all, but sharp precision.
Also i really would like to open this again, as i am really professed on this, but i respect your had work. So if you say no, than it is a hard moment for me to say, but, ok i respect this. :(
It was just an idea thought to be good.
In my point of view it would add a feature that is really valuable, and needed bad. :(
Oh also a question; in what modes is "i" enabled now?
Thanks again, Gábor
This is for planes, and it is a good idea. Basically enable integration when sticks are in the dead-zone. Thanks for the suggestion Gabor!
Np!
I am glad you like it! :)
Gábor
this is implemented in git master now
Wow nice!
Is it only in stab now?
Gábor