Go to Post Be kind to you mentors. They are exhausted and you need them. - MrJohnston [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
digital inputs lag 0.5-1.0 second before registering change colman77 Programming 6 17-02-2006 12:40
Autonomous issue NJ M. Hicken Programming 2 16-02-2005 21:59
Software Issue patTeam241 Programming 0 28-01-2005 17:12
Lead-Lag Compensator eSouL Control System 0 13-08-2004 03:21
Less lag animation. Psy Guy 3D Animation and Competition 6 22-04-2003 00:18


All times are GMT -5. The time now is 19:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi