|
Re: Problems with using 330's goal tracking code
Someone else may be able to tell you exactly what to change, but I don't see it. What I'd do is modify the code to plot your process variable and your output against time. If you post that, people can tell you much more about your system.
To get the plot, take the vision value you are trying to center and bundle it with the output of the PID. Then wire the cluster to a waveform chart. Next you "bump" the system. Start with the target in the center and move it to one side pretty quickly and hold it there until the control system moves to that area. Do this again to the other side. You may need to increase the X scale or even the history length to log enough data.
Greg McKaskle
|