Go to Post Now I'm having visions of thousands of balloons and a grumpy old man. Oh, and a talking dog. No talking dogs on the field. Grumpy old men are ok - sometimes. - JaneYoung [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 05-02-2011, 10:04
LV1601's Avatar
LV1601 LV1601 is offline
Registered User
FRC #1601
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: New York
Posts: 14
LV1601 is an unknown quantity at this point
Line Sensor testing

I think I am over thinking things, but I was testing the line sensors with LabView recently.
I wired all the line sensors properly as according to the manual and other threads on the forum.
Brown 12V red Wago connector on the Power Distribution Board
Blue Black Wago connector on the Power Distribution Board
White into the DI/O of the Sidecar
Black unused

I see all three line sensors giving true and false values and change from green to yellow/orange with the reflective tape is under it. As a test i ran the program on autonomous without the motors to see how they would react. I placed the right sensor over the reflective tape and the jaguars are lighting that they are going forward. The problem is that they will only go forward for like 8 seconds before the program would stop. Is it suppose to do that or do i have a problem.

Can someone please clarify this to me.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2011, 10:55
Joseph Bisch Joseph Bisch is offline
Registered User
FRC #2064 (Panther Project)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Connecticut
Posts: 41
Joseph Bisch has a spectacular aura aboutJoseph Bisch has a spectacular aura about
Re: Line Sensor testing

Yes, it is normal for the motors to run for 8 seconds if you are using the default code. That is because the robot should be at the end of the tracking line by then, though you may have to adjust the time for your team's robot.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2011, 11:03
Team#2057-Vegas's Avatar
Team#2057-Vegas Team#2057-Vegas is offline
Team2057LasVegas
AKA: Justin Major
FRC #2057 (AV CyberBulls)
Team Role: Leadership
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Las Vegas
Posts: 113
Team#2057-Vegas can only hope to improve
Re: Line Sensor testing

thats how long the code is needed to get to the end of the line, no question is a dumb one, you probably just clarified the same question for a thousand other teams (:
__________________
Justin Major
2057 Team Leader

"We will kick you off our pasture" -- 2057 Motto
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2011, 12:07
LV1601's Avatar
LV1601 LV1601 is offline
Registered User
FRC #1601
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: New York
Posts: 14
LV1601 is an unknown quantity at this point
Re: Line Sensor testing

Thanks for the clarification!

I also have one more question if it hits "T" and the code stops how do i tell it to drop the tube and if i can where in the loop would i have to add it.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2011, 12:17
Joseph Bisch Joseph Bisch is offline
Registered User
FRC #2064 (Panther Project)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Connecticut
Posts: 41
Joseph Bisch has a spectacular aura aboutJoseph Bisch has a spectacular aura about
Re: Line Sensor testing

If you have LabVIEW on a computer that is available to you right now, it would help us if you took a picture of the autonomous code on your screen and attached it to a post.

If I remember correctly, you should put the code for the arm at the very right, after the while loop. I believe there is a comment about adjusting the rotation of the robot and placing the game piece. That is the spot.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2011, 12:39
LV1601's Avatar
LV1601 LV1601 is offline
Registered User
FRC #1601
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: New York
Posts: 14
LV1601 is an unknown quantity at this point
Re: Line Sensor testing

here is the image
and it goes right outside the loop
Attached Thumbnails
Click image for larger version

Name:	A2.jpg
Views:	32
Size:	146.6 KB
ID:	9976  
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2011, 13:06
Joseph Bisch Joseph Bisch is offline
Registered User
FRC #2064 (Panther Project)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Connecticut
Posts: 41
Joseph Bisch has a spectacular aura aboutJoseph Bisch has a spectacular aura about
Re: Line Sensor testing

Your other question was about dropping the tube. That's not something anyone on here can specifically answer. It depends on how your team's robot works. I would check with your team's build group. It may involve a motor, pneumatics, or something else.
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2011, 13:37
LV1601's Avatar
LV1601 LV1601 is offline
Registered User
FRC #1601
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: New York
Posts: 14
LV1601 is an unknown quantity at this point
Re: Line Sensor testing

I just wanted to know where to put the code for other motors in the autonomous program and it would be helpful if someone could put up an example on how you should add it in.
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 08: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