View Single Post
  #3   Spotlight this post!  
Unread 30-01-2014, 09:39
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: How to grdually speed up the robot?

We use what's called a rolling average to accomplish this. You keep a list of the past X values and average them together to get the current value. Each iteration you add the new value at the end and drop the first value. The more numbers you store the slower the system will react to changes. We wrote a utility to do this, I can get one of our students to post the code for it if you'd like.
Reply With Quote