Go to Post "We're too close for missiles, switching to Poof balls!" "Just one more day on the driving code, then I'll switch to autonomous." - Rick TYler [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 16-01-2004, 12:50
Jared Stofflett Jared Stofflett is offline
Registered User
#0123
 
Join Date: Nov 2003
Location: Hamtramck
Posts: 10
Jared Stofflett is an unknown quantity at this point
Send a message via AIM to Jared Stofflett
What to do with the ir code?

What needs to be done to get the ir code to work. As far as I can tell you need to modify the header files so that you have the macro's refferencing the proper inputs and outputs, but there has been a large discussion on trig to set your way. As far as I can tell the code will drive you to the proper place, is the trig just an effort to make this more efficient?
  #2   Spotlight this post!  
Unread 16-01-2004, 14:00
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: What to do with the ir code?

basically, yes. the ir code is designed so that it works somewhat out-of-the-box, with just the proper inputs selected and a little tuning of the values.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #3   Spotlight this post!  
Unread 16-01-2004, 14:03
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: What to do with the ir code?

Not to sound stupid or anything, but what is the IR code for exactly?
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #4   Spotlight this post!  
Unread 16-01-2004, 14:33
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: What to do with the ir code?

it utilizes the IR sensors included in the kit to home in to a certain position near the bonus balls on the sidelines that trigger the ball release. essentially, it's an alternative method to find your way to a certain position on the field.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #5   Spotlight this post!  
Unread 16-01-2004, 14:49
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: What to do with the ir code?

Quote:
Originally Posted by deltacoder1020
it utilizes the IR sensors included in the kit to home in to a certain position near the bonus balls on the sidelines that trigger the ball release. essentially, it's an alternative method to find your way to a certain position on the field.
So, essentially, it's FIRST's type of seek-and-destroy?
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #6   Spotlight this post!  
Unread 16-01-2004, 18:06
Jared Stofflett Jared Stofflett is offline
Registered User
#0123
 
Join Date: Nov 2003
Location: Hamtramck
Posts: 10
Jared Stofflett is an unknown quantity at this point
Send a message via AIM to Jared Stofflett
Re: What to do with the ir code?

Quote:
Originally Posted by Raven_Writer
So, essentially, it's FIRST's type of seek-and-destroy?
Kind of Assuming the course from your robot to the platform was 45 degrees, if you followed the line you may go at 50 degrees part of the way and 40 degrees another part of the way. At least in theory the ir will let you go directly at 45 degrees, but I believe that there is some inacurisy programmed into the code. It also sounded like you would have to use ir instead of line tracking next year.
  #7   Spotlight this post!  
Unread 16-01-2004, 18:36
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: What to do with the ir code?

Quote:
Originally Posted by Jared Stofflett
Kind of Assuming the course from your robot to the platform was 45 degrees, if you followed the line you may go at 50 degrees part of the way and 40 degrees another part of the way. At least in theory the ir will let you go directly at 45 degrees, but I believe that there is some inacurisy programmed into the code. It also sounded like you would have to use ir instead of line tracking next year.
So, it'd be like, if robot + distance_to_platform_in_degrees = 45 && robot_direction = 50 then robot_direction = 45?

(sorry for the code-like part, but I'm just trying to understand it better)

Thanks by the way
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #8   Spotlight this post!  
Unread 16-01-2004, 22:02
Jared Stofflett Jared Stofflett is offline
Registered User
#0123
 
Join Date: Nov 2003
Location: Hamtramck
Posts: 10
Jared Stofflett is an unknown quantity at this point
Send a message via AIM to Jared Stofflett
Re: What to do with the ir code?

Not exactly, sorry for being unclear. The line is curved, so you don't take the most direct path to the platform. You are always having to scan the line as well, and if you overshoot it, you will have a very hard time picking it back up. With ir two things can happen as i understand it, someone please let me know if i'm wrong. First your ir reciever can get oriented directly at the becon, as long as you narrow the range. This means rather then taking the line which is inderect you can take the most direct path, the shortest distence between two points is a straight line, the ir does a better job of picking that out then the line on the floor. Second because the ir becon puts out a wide signal if you get 10 or 20 degrees off corse you can easily get back on corse. With line tracking if you get 10 or 20 degrees off corse you are basicly screwed, unless you do a lot of fancy turning. In summary ir lets you plot the most direct corse to the platform, more direct then the line. Also if you get off corse you have a much better chance of finding your way back with ir then with the line.
  #9   Spotlight this post!  
Unread 16-01-2004, 22:06
Celestial Rain Celestial Rain is offline
Registered User
#1453
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 4
Celestial Rain is an unknown quantity at this point
Re: What to do with the ir code?

hey umm i know this is the wrong thread. But i need someone to help us find some drive train links or webpages to help build the robot

also we were trying to get the education robot to start and it just sits there doing nothing. the PWN IN light is blinking red and thre radio control is red as well
  #10   Spotlight this post!  
Unread 17-01-2004, 01:06
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: What to do with the ir code?

celestial, you do know that you can start a new thread, right? and that there are other forums as well besides the programming one? I'd recommend asking your questions in the relevant forums.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #11   Spotlight this post!  
Unread 17-01-2004, 10:43
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: What to do with the ir code?

One more question.

Are the sensors for going to the ball tee's and [hopefully] getting the balls?

(Sorry for the question, but I'm trying to figure this out).
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #12   Spotlight this post!  
Unread 17-01-2004, 10:53
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: What to do with the ir code?

for what the built-in code does, yes. you could reprogram them to take you to different parts of the field (using triangulation, et cetera), but the default code is for homing in on the area right next to the ball tees, allowing the removal of the 10pt ball and releasing the 5pt balls.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #13   Spotlight this post!  
Unread 17-01-2004, 12:10
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: What to do with the ir code?

Quote:
Originally Posted by deltacoder1020
for what the built-in code does, yes. you could reprogram them to take you to different parts of the field (using triangulation, et cetera), but the default code is for homing in on the area right next to the ball tees, allowing the removal of the 10pt ball and releasing the 5pt balls.
Thank you. I was sure that that's what it's purpose is, but I wasn't sure.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
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
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
InfraRed autonomous code ... mtrawls Programming 1 11-01-2004 00:25
Autonomous code PBoss Programming 7 14-01-2003 15:29
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46
Patent source code? Kyle Fenton Chit-Chat 3 20-10-2001 17:53


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

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