Go to Post Innovating for the sake of innovating, reinventing the wheel is probably the second biggest pitfall you can fall into when designing an FRC robot, if the wheel is already a very optimized, good solution. - Chris is me [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 21-03-2004, 18:55
Robohawk-master's Avatar
Robohawk-master Robohawk-master is offline
Registered User
AKA: Barry
#1109 (Robohawks)
Team Role: Operator
 
Join Date: Mar 2004
Rookie Year: 2003
Location: Lively, Ontario
Posts: 21
Robohawk-master is on a distinguished road
Help with automonous mode

Hello,
I have no experience in prgramming (yet I'm a programmer) and I'd like some help on how to create a simple automonous mode using the line sensors to follow the white line and hit the T (..knocking over the ball). Nothing has been changed from the code so if someone could email a whole new code that would be the best. Though I don't have a talent now in prog, I can do photoshop so i can help someone there...

18 days till we leave for competition
__________________
- Barry -
-2004 Canadian Regional Semi-Finalists
-2004 Bruce Power Safety Award
  #2   Spotlight this post!  
Unread 21-03-2004, 21:08
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Help with automonous mode

Quote:
Originally Posted by Robohawk-master
Hello,
I have no experience in prgramming (yet I'm a programmer) and I'd like some help on how to create a simple automonous mode using the line sensors to follow the white line and hit the T (..knocking over the ball). Nothing has been changed from the code so if someone could email a whole new code that would be the best. Though I don't have a talent now in prog, I can do photoshop so i can help someone there...

18 days till we leave for competition
Sorry, I can't (and won't) write your code, but I can describe the ideas to you for you to code. I assume you know C and how to use it for this. If not, ask a neiboring team for help.
There are plenty of threads of how to follow a line. Search for "Line Following".
  #3   Spotlight this post!  
Unread 22-03-2004, 09:39
CrashZero's Avatar
CrashZero CrashZero is offline
Computer Nerd
#1352 (Huskie Robotics)
Team Role: Programmer
 
Join Date: Mar 2004
Location: Stratford Northwestern
Posts: 44
CrashZero will become famous soon enoughCrashZero will become famous soon enough
Exclamation Re: Help with automonous mode

I won't write your code for you either but I will give you an example of how you *could* have your bot follow a line;

if(rc_dig_in01 ==1 )//if one sensor sees it
}
pwm13 = 137;
pwm14=100;
{
else//if this sensor doesn't see it
{
pwm13 = pwm14 = 140;
}
if(rc_dig_in02 == 1)//if the other sensor sees it
}
pwm13 = 100;
pwm14 = 137;
}
else
{
pwm13 = pwm14 = 140;//If this sensor doesn't see it
{

since I just did that off the top of my head there are probebly a few errors in it but if you can;t even fix a few then you need more help then I am willing to give.

I don't know how well this will work becuase personally I think that following the beacon is a better choice.

Just one last time this **may** NOT work even after you fix the errors but it is still an example.

Hope this helps!!!
__________________
This is our world now... the world of the electron and the switch, the beauty of the baud. We make use of a service already existing without paying for what could be dirt-cheap if it wasn't run by profiteering gluttons, and you call us criminals. We explore... and you call us criminals. We seek after knowledge... and you call us criminals. We exist without skin color, without nationality, without religious bias... and you call us criminals. You build atomic bombs, you wage wars, you murder, cheat, and lie to us and try to make us believe it's for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker, and this is my manifesto. You may stop me, but you can't stop us all...

quote from:

+++ The Mentor +++
  #4   Spotlight this post!  
Unread 22-03-2004, 17:51
Robohawk-master's Avatar
Robohawk-master Robohawk-master is offline
Registered User
AKA: Barry
#1109 (Robohawks)
Team Role: Operator
 
Join Date: Mar 2004
Rookie Year: 2003
Location: Lively, Ontario
Posts: 21
Robohawk-master is on a distinguished road
Re: Help with automonous mode

Thanks a lot, I really did not know where to start, that was exactly what I needed
__________________
- Barry -
-2004 Canadian Regional Semi-Finalists
-2004 Bruce Power Safety Award
  #5   Spotlight this post!  
Unread 23-03-2004, 15:39
CrashZero's Avatar
CrashZero CrashZero is offline
Computer Nerd
#1352 (Huskie Robotics)
Team Role: Programmer
 
Join Date: Mar 2004
Location: Stratford Northwestern
Posts: 44
CrashZero will become famous soon enoughCrashZero will become famous soon enough
Thumbs up Re: Help with automonous mode

Glad that I could be of some assistence
__________________
This is our world now... the world of the electron and the switch, the beauty of the baud. We make use of a service already existing without paying for what could be dirt-cheap if it wasn't run by profiteering gluttons, and you call us criminals. We explore... and you call us criminals. We seek after knowledge... and you call us criminals. We exist without skin color, without nationality, without religious bias... and you call us criminals. You build atomic bombs, you wage wars, you murder, cheat, and lie to us and try to make us believe it's for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker, and this is my manifesto. You may stop me, but you can't stop us all...

quote from:

+++ The Mentor +++
  #6   Spotlight this post!  
Unread 23-03-2004, 16:18
Tom Saxton's Avatar
Tom Saxton Tom Saxton is offline
Registered User
no team (Issaquah Robotics Society)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2003
Location: Sammamish, WA
Posts: 98
Tom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud of
Re: Help with automonous mode

Although line following is simple in theory, getting it to work and have the robot run at a speed that will get you to the tee in the 15 seconds is pretty challenging. We ignored the advice of experienced teams and tried doing it with custom analog sensors using a proven algorithm, and we had to eventually abandon it.

Using digital sensors, your robot will jerk back and forth as it goes down the line, greatly slowing it down. This can be solved with analog sensors and applying speed corrections proportional to the difference in sensor readings. This can work much better, yielding very smooth, fast driving. But getting that to work requires careful tuning.

However, your lines sensors need to be far enough in front of your drive wheels that the sensors tell you how much you need to turn, not how much you needed to turn 10 cycles ago.

My advice is to do dead reckoning unless you have very experienced programmers, analog line sensors and good separation between the sensor and the steering wheels.
__________________
Tom Saxton
http://www.idleloop.com/
  #7   Spotlight this post!  
Unread 23-03-2004, 18:11
Robohawk-master's Avatar
Robohawk-master Robohawk-master is offline
Registered User
AKA: Barry
#1109 (Robohawks)
Team Role: Operator
 
Join Date: Mar 2004
Rookie Year: 2003
Location: Lively, Ontario
Posts: 21
Robohawk-master is on a distinguished road
Re: Help with automonous mode

I realize the difficulty. This is our second year, so nothing is trusted on. We decided on line sensors because we knew how well they worked last year (good, but the bot had faulty fuses...). Heck they're even the same ones. We took into account where to place them, how close (last years sensors actually have a 5-10 ft advantage over this years banners.
__________________
- Barry -
-2004 Canadian Regional Semi-Finalists
-2004 Bruce Power Safety Award
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
Future of Autonomous Mode FadyS. Programming 41 24-05-2004 19:45
pwms 13 and 15 in autonomous mode Chris Bright Programming 1 24-02-2004 22:25
Initializing autonomous mode Mr. Lim Programming 7 02-02-2004 07:26
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 02:53.

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