Go to Post So next time you speculate, label it as such and not as established fact. Please. Bad information is worse than no information. - DonRotolo [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-03-2003, 12:00
rcubes85 rcubes85 is offline
Registered User
no team (TBD)
Team Role: College Student
 
Join Date: Feb 2003
Rookie Year: 1999
Location: Troy NY
Posts: 39
rcubes85 is on a distinguished road
Send a message via AIM to rcubes85
A DEAD reckoning program

We are going to add autonomus to our robot please i am asking if any one can email me a program that does dead reckoning. Please let it be a program that can control the speed of the motor. like one go forward other stop something like that. And please can you also tell me how to set up this program and what equipments we need use these thing and how to get it done
  #2   Spotlight this post!  
Unread 19-03-2003, 12:02
Clark Gilbert's Avatar
Clark Gilbert Clark Gilbert is offline
Registered User
no team
Team Role: Alumni
 
Join Date: May 2001
Rookie Year: 2000
Location: Columbus, IN
Posts: 1,946
Clark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond repute
Check the White Papers

2003 Automated Dead Reckoning Test Code uploaded/authored by Greg McCoy into the Programming

Description:
This drive code is intended for less experienced programmers to get a place to start with the code and start testing on existing robots. This code is based on the old Default code, so it works on all controllers, but will need to be updated or modified to work as competition code. The numbers used to determine distance will change for your robot, so you will have to do some tweaking here. All of this is documented fairly well in the program text. Plug joysticks into ports 1 and 3 on the OI, plug the drive Victors into PWM 1 and PWM 2, and you're set to go! Use the throttle wheel on port 3 to control automatic code on or off.

Update: I've fixed a silly typo that made the last step 7 instead of step 6 as it should be. Sorry about this!


Check it out here!
__________________
Purdue Alumni
Cummins, Inc.
  #3   Spotlight this post!  
Unread 19-03-2003, 12:16
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Clark

very nice baseline code. You used 'stepnum' to sequence the same way I did in my auton SW.

couple comments.

you left a debug statement intact - that will slow the cycle times way down

you have no ramping between changes in motor speeds (unless I missed it) If you switched the PWMs on our bot from 0 to 254 in one cycle the gearheads would spleen you with the jagged remains of the tranny shafts!

your timing is pretty long (120 counts is about 3 seconds) - if you have a fast bot then shorten the counts down, try it first, and then adjust as needed. Try driving your bot with the joystick first to get a rough idea of how long each step will take, and use 40 counts for each second - that will get you close.
  #4   Spotlight this post!  
Unread 19-03-2003, 12:24
Clark Gilbert's Avatar
Clark Gilbert Clark Gilbert is offline
Registered User
no team
Team Role: Alumni
 
Join Date: May 2001
Rookie Year: 2000
Location: Columbus, IN
Posts: 1,946
Clark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond repute
Not me.

I can't take credit for this or answer any of your questions. First, I didn't write the code (heck, I dont even know how) Greg McCoy did. I know he's registered here so you will have to get his attention to get your questions answered.

I'll bring this to his attention if I see him around here at school.
__________________
Purdue Alumni
Cummins, Inc.
  #5   Spotlight this post!  
Unread 19-03-2003, 12:41
D.J. Fluck
 
Posts: n/a
I worked with Greg on this project and this was put together to give teams a little jump start to doing their autonomous, not do it for them. If they have any questions about it, contact Greg and I will also let him know
  #6   Spotlight this post!  
Unread 19-03-2003, 14:21
Sachiel7's Avatar
Sachiel7 Sachiel7 is offline
<Yes I managed to flip it
AKA: Shayne Helms
FRC #1132 (RAPTAR Robotics)
 
Join Date: Sep 2002
Rookie Year: 2002
Location: Richmond, VA
Posts: 541
Sachiel7 is just really niceSachiel7 is just really niceSachiel7 is just really niceSachiel7 is just really niceSachiel7 is just really nice
Send a message via AIM to Sachiel7
This isn't the best Start, but you may want to check out my CopyCat Program in the white papers section. Do a little Tweaking, Give it a try...
__________________
-=Sachiel7=-

There's no such thing as being too simple!
Look for Team #1132, RAPTAR Robotics at the VCU Regional this year!
Closed Thread


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
2-week FIRST summer program @ WPI ColleenShaver General Forum 20 31-05-2009 03:02
White Paper Discuss: 2003 Automated Dead Reckoning Test Code CD47-Bot Extra Discussion 10 07-09-2005 11:25
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08
Autonomous Mode Strategy Brian48216 Programming 27 23-01-2003 14:47
Ahh! Program trick confusing! archiver 2001 9 24-06-2002 02:26


All times are GMT -5. The time now is 05:26.

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