Thread: Lag Issue
View Single Post
  #3   Spotlight this post!  
Unread 04-02-2008, 17:49
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: Lag Issue

We found that a lag function as TubaMorg described worked well. We tuned it such that full forward to full reverse took about .5 seconds.

Since you would be setting the PWM value in the slow loop that executes about 38 times/sec, that would give you an adjustment of about 13-14 towards the desired setting. (255/(38/2) = 13.4)

This does help avoid spinning the wheels and slamming the motors back and forth if the joysticks are bumped.