Go to Post People were learning left and right. 14-year olds knew what a pitch diameter is... cool stuff. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2011, 19:47
ChaosX73 ChaosX73 is offline
Registered User
AKA: Ryan Harrison
FRC #2338 (Gear it Forward)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Aurora, IL
Posts: 75
ChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of light
Carpet line differences

Hey, I'm the autonomous programmer for my team. We have been testing those shnazzy new line tracking sensors, but they are very sensitive, so my question is this: how are we supposed to tell the difference between the caution lines on the floor and our team color lines at the end of the tracking line? I mean, if the sensors are supposed to register light differences, and its going to tell the difference between the team color lines and the carpet, then they're definitely going to tell the difference between yellow tape and the carpet.

I mean, I could program it so it has to register the arrival at the T section twice before it goes through the hanging program, or I could program a wait in the program so it doesn't try reading for the T section until after a couple seconds, but both of those solutions could be buggy.

What are your ideas for getting past this point?
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2011, 21:36
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Carpet line differences

I believe the caution tape is segmented to avoid overlap over the autonomous line tracking tape.

Also, the FRC cRIO project comes with a sample Line-tracking code in Autonomous Independent which not only follows the line, but can also sense when you arrive at the T or Y, and does appropriate actions. I still need to study this sample code to fully understand it myself (the part outside the while loop), but the part inside the while loop is pretty easy to follow.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2011, 21:50
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,995
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Carpet line differences

Quote:
Originally Posted by ChaosX73 View Post
Hey, I'm the autonomous programmer for my team.
Cool. Never met a programmer who was autonomous.

Anyway: One possible solution is a combination of line following and odometry - that is, measuring distance traveled. Encoders on your wheels/gearbox/sprockets/gears can tell you how far the robot has traveled. You know you need to travel about xx feet before you'll see the split/end of the line/whatever. Use that in your code to your advantage....

In the past, many autonomous robots worked by 'dead reckoning' - simple odometry - to move to a specific location. e.g., Move forward 13 feet, turn right for 0.7 seconds, then move forward 4 more feet....

Hope this helps.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2011, 20:59
ChaosX73 ChaosX73 is offline
Registered User
AKA: Ryan Harrison
FRC #2338 (Gear it Forward)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Aurora, IL
Posts: 75
ChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of lightChaosX73 is a glorious beacon of light
Re: Carpet line differences

Here's the thing, I started this thread before I actually noticed that the "T" that the program was referring to was actually at the very end of the line. This whole time I thought the "T" was actually the team lines. He he... it was only a couple minutes after I posted this, too.

So just disregard my question.
Reply With Quote
Reply


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


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

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