-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Option to use position for fixed wing nav altitude control #10903
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
base: master
Are you sure you want to change the base?
Conversation
@sensei-hacker It needs testing but it's not experimental. Pretty much as it was before #9471 but with some improvements for rate control. |
There is an issue open which might be relevant for this one: |
@breadoven I flew a few flights today with one of the planes that had tuning issues using the velocity altitude controller. After enabling When entering a descending loiter and then watching it level out at I could have tuned it a bit tighter and you would never have noticed any problems. But when panning the camera back to look at the elevator. I could see slight oscillations. That's why I settled with the values I have. So it seems beneficial for this plane.. I'll be interested to hear what others think. |
@Jetrell You could set Good to see this works especially the new method used for rate control. Much better than the old method. |
I like the idea with rate control vertical speed. However, I think the default value can be improve. The new default was a bit on the aggressive side. |
After running some more tests with this today. And proceeding to increase the gains. There was no possibility of getting near what could be achieved with the old If I had to rate it in tuning similarity from 1 to 10.. 1) Position and 10) Velocity. I'd say it's an 8. However it has still taken the edge off those harder to tune planes. But it's not as care-free as the old position controller. But it's also more precise than it was. |
Is this related to rate control behaviour or maintaining an altitude such as during cruise or both ? If it's an issue during cruise when it's trying to maintain an altitude then the only things that are different to the old postion based control are:
If the above changes are made then the PID control will be exactly the same as before. If it still behaves differently then I'm afraid it'll be down so some other change that's come in at version 8.0.0 because as far as the PID controller is concerned inputs and the PID factors will be the same as before so it should output the same pitch control demands as previously. |
It was related to both. Yesterday I started out with P = 30, and had I and D set to the old defaults for the Position controller, 5 and 10.
Judging by how much effect D-term has on this controller. I'd say this is likely the case. Being that the tune didn't end up much different to the velocity altitude tune, |
As a late comer to the party. My tests show the same. The required tune for the position z changes where practically the same as that of the velocity z tune. However it appeared to calm things a little. I have not had the opportunity to test the changes made in commit 83d162c |
Adds an option to use position based nav altitude control on fixed wing instead of velocity based control which doesn't appear to work reliably on some plane types. Option enabled with new setting
nav_fw_alt_use_position
(OFF by default).nav_fw_alt_control_response
still works with the position based control in the same way as for velocity based control.Only tested on HITL so far where it seems to work well. The new method of controlling altitude rate appears to be a big improvement on the old position based altitude control method with rates being held more accurately with limited pitching oscillations compared to previously. PID values may need further fine tuning.