▲ | Karrot_Kream 5 days ago | |||||||
I've played around with this over the years in my career but have found that tuning PID loops is very tricky, much trickier than creating a soup of if/else clauses and much less auditable to those who don't understand the math. | ||||||||
▲ | lll-o-lll 5 days ago | parent | next [-] | |||||||
PID is standard in the industry, but the reality is it is infinitely easier to model in the discrete domain. The z-plane if math, but you don’t really need much math. Just model like a games developer. Simulate with a bit of JS or python. Add the motor saturation! Play with feedback and disturbances. I just think this gives much better results. The model can be as simple or complex as you need, and we aren’t trapped in the linear response range. PID is good enough for many tasks, but it’s never good. | ||||||||
▲ | dreamcompiler 5 days ago | parent | prev [-] | |||||||
Yes, but... If you can model your problem with linear differential equations then control theory replaces the need for tuning. The coefficients you need just pop directly out of the analysis. | ||||||||
|