|
Re: New C18 3.0+ Compatible FRC Code
We are using Kevin's code to read the gyro and control our steering. Our steering is connected to a 10K linear pot. We are reading the pot with get_ADC_value and feeding it to a PID function. The intent is to have servo controlled steering.
We are having a lot of trouble getting the servo to respond properly. We are working on tuning our PID loop and having some success.
Here is my question: We are calling the PID routine in Default_Routine so it executes very 26.2 ms. Should we be calling it in a fast loop?
__________________
Tim Emerson
|