View Single Post
  #4   Spotlight this post!  
Unread 12-02-2009, 08:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote