Go to Post Seating is limited. Be sure to apply deodorant and brush your teeth. - Wayne TenBrink [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
  #1   Spotlight this post!  
Unread 21-01-2004, 02:25
D.Viddy's Avatar
D.Viddy D.Viddy is offline
Registered User
AKA: Dylan Vester
FRC #3176 (Purple Precision)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Camby, IN
Posts: 44
D.Viddy is an unknown quantity at this point
Talking Using Shaft Encoders

We have a pretty cool system worked out this year I think. We are using left and right motor drive and we have extreamly precise shaft encoders attached the each motor. I have written the code to control the motors depending on what each shaft encoder is reading. A calculation converts the joystick unsigned char into ticks per 26.2 millisecond loop and then the shaft encoders deciede whether the wheels are going slower or faster then the wanted ticks per loop coming from the joystick. If the joystick ticks and the actual shaft encoder ticks are not equal they are adjusted till they are. What this means is that we can achieve perfectly straight driving and perfect turns. This is also a huge advantage in autonomous mode because we can hand a sub routine a string of values telling the shaft encoders what the motors should be doing and the routine executes it flawlessly. It's much better working in distances than working in loop cycles. Hooray for this years robot control.
__________________
.................................................. .........
Dylan Vester - (Programmer)
Running a P4 1.8 Ghz
Team 998, We can't win...
.................................................. .........
 


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
Using Digi-Key Shaft Encoders D.Viddy Programming 45 02-01-2005 20:11
Problem with 5/8 in. shaft in this years kit echos Kit & Additional Hardware 5 14-01-2004 21:21
Who used wheel encoders CyberWolf_22 Technical Discussion 12 04-05-2003 15:37
Can you stop a pneumatic pump at half shaft mjt902 Pneumatics 16 06-02-2003 11:58
Where to get shaft encoders D.Viddy Programming 12 17-01-2003 09:38


All times are GMT -5. The time now is 00:32.

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