|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#23
|
|||
|
|||
|
Re: Tuning PID Constants Over a Range
Quote:
torque = J * angular_acceleration + r cross F_gravity F_gravity cross r -> F_gravity * r * cos(theta) So, you get torque = J * d^2 (theta) /dt^2 + F_gravity * r * cos(theta) When linearizing, you want to convert your system to be linear. The only nonlinear term above (assuming that torque is your input, which is a reasonable assumption for now) is the F_gravity * r * cos(theta). So, if we define torque = torque_linear + F_gravity * r * cos(theta) And then do a variable substitution, we get a linear system back. i.e. torque_linear = J * d^2 (theta) /dt^2 Yay! (I think this answers 2 and 3). As long as you aren't too far off, your system will work just fine with the wrong gain. One way to do it would be to measure the voltage required to hold your arm horizontal, and use that as the coefficient. We've traditionally ignored this term and let the rest of the loop take up the slack. Last edited by AustinSchuh : 19-10-2016 at 01:09. Reason: Fixed missing theta caught by Ahad |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|