10-Sep-2017, 06:46 PM
Hello!
Today I just realized that while I understand how pid controller works, I don't fully get what exact input it gets in quad.
The PID controller takes error as input, does it's PID magic and gives motor offset output.
The error is difference between desired X and actual X.
What is actually X? According to this Oscar's post, X is "angular rate" (speed of rotation), and this, actually follows from my observations.
But will it not be more logically to have "desired angle" as X instead of "angular rate"?
Can someone, please, shed a light on this for me?
Today I just realized that while I understand how pid controller works, I don't fully get what exact input it gets in quad.
The PID controller takes error as input, does it's PID magic and gives motor offset output.
The error is difference between desired X and actual X.
What is actually X? According to this Oscar's post, X is "angular rate" (speed of rotation), and this, actually follows from my observations.
But will it not be more logically to have "desired angle" as X instead of "angular rate"?
Can someone, please, shed a light on this for me?