View Single Post
  #1   Spotlight this post!  
Unread 31-01-2013, 20:26
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 114
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
"Rewinding" Data

Hello all!

I'm trying to implement a "rewind" function for our robot state. Essentially, what I want is something like this:

-Periodically (say, every 50ms) a gyro angle is written into this data structure
-At any time, I would like to be to request the "historical" value of the gyro from somewhere between 0 and 3 seconds ago.

What sort of data structure should I be using?

Thanks,
-John Gilbert
Reply With Quote