Hacker News new | ask | show | jobs
by hi_hello 1171 days ago
In PID terms, this is even simpler yet - just a proportional controller. Only the error between the target and current position are acted upon by a single (proportional) gain:

(targetPosition.x - position.x)0.2 == ekP

A derivative term would be applied to the difference between the previous and current error, usually in order temper the rate of change. D terms can be a proper headache in practice, especially if you have any noise in your system...