# Questions about PID (actually PD) tuning

**URL:** https://forum.pololu.com/t/questions-about-pid-actually-pd-tuning/3263
**Category:** Miscellaneous
**Created:** [May 4, 2011, 11:41am UTC](https://forum.pololu.com/t/questions-about-pid-actually-pd-tuning/3263 "2011-05-04T11:41:48Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![ribbs2521](https://forum.pololu.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@ribbs2521](https://forum.pololu.com/u/ribbs2521)
#### Post date: [May 4, 2011, 11:41am UTC](https://forum.pololu.com/t/questions-about-pid-actually-pd-tuning/3263/1 "2011-05-04T11:41:48Z")

</div>

I’m working on tuning my robot to follow a line using four QTR-1A sensors and I had a few questions.

1. When I tune Kp should I be doing so on a straight line? I find that I can get it to follow a straight line quite nicely but it takes wide corners for the corners in my track. If I tune Kp for it to be able to navigate the corners staying on the line I get a lot more oscillation which I would think would be bad but again, not sure if I’m supposed to be basing results on a straight line or the actual line.

2. Using the QTR-1A sensors do I need to have a delay time in my loop for the ADC settling or is that already in the library code? Seems like it didn’t make a difference whether I had a 10mS delay or no delay.

3. Suggestions have been made to skip the integral term, can anyone explain why this is? I would think having the full capability of PID would make it faster and more accurate with corrections.

---

_[View the full topic](https://forum.pololu.com/t/questions-about-pid-actually-pd-tuning/3263)._
