View Single Post
  #2   Spotlight this post!  
Unread 05-01-2016, 06:40
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 65
phurley67 is an unknown quantity at this point
Re: PID with encoder

BL0X3R was on the money, but I will add graph it. When I graph our encoder data, depending on a number of factors I have seen very "jittery" velocity data (solutions are as mentioned, calculate yourself, if necessary calculate an average velocity over the last n encoder reads).

If you are using labVIEW visualizing data in real time is trivial. If not, I have taken to writing my logs in JSON and then using javascript and the browser for visualizing (I use http://www.flotcharts.org/), rather than trying to write code in C++ or Java to display graphs.

In many cases seeing is understanding.