Go to Post Playing fields outdoors in the snow and the only field faults were when you ran out of gas!...ahh the old days - ExTexan [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
  #16   Spotlight this post!  
Unread 31-01-2011, 19:02
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Ok, let me know what happens there. IF it doesn't work, I would recheck the wiring. And calibration cause that would rule out the programming problem.
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote
  #17   Spotlight this post!  
Unread 31-01-2011, 19:20
Must Be Drama Must Be Drama is offline
Registered User
no team
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Brooklyn
Posts: 62
Must Be Drama is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Quote:
Originally Posted by Ethan Spitz View Post
Ok, let me know what happens there. IF it doesn't work, I would recheck the wiring. And calibration cause that would rule out the programming problem.
it works; whats the problem with the default code?
Reply With Quote
  #18   Spotlight this post!  
Unread 31-01-2011, 19:24
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Thats a good question . We just erased it and wrote our own code from scratch. I would suggest that since the default code isn't working.

Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote
  #19   Spotlight this post!  
Unread 31-01-2011, 19:26
Must Be Drama Must Be Drama is offline
Registered User
no team
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Brooklyn
Posts: 62
Must Be Drama is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Quote:
Originally Posted by Ethan Spitz View Post
Thats a good question . We just erased it and wrote our own code from scratch. I would suggest that since the default code isn't working.

Ethan
are you willing to help us develop?
Reply With Quote
  #20   Spotlight this post!  
Unread 31-01-2011, 19:28
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Sure. Basically you want to create nested case statements for each combination you can get with the light sensors.

How many sensors are you using? I suggest programming 2 and then adding in a 3rd after you finish that.
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote
  #21   Spotlight this post!  
Unread 01-02-2011, 12:54
ShockWaveBlue's Avatar
ShockWaveBlue ShockWaveBlue is offline
Registered Nerd
AKA: Jason Rausch
FRC #1742 (Shockwave)
Team Role: Teacher
 
Join Date: Dec 2009
Rookie Year: 2006
Location: Norman, OK
Posts: 3
ShockWaveBlue is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

The default code wants you yo use the black wire, not the white. You can just invert the signal in the tele op code and I bet it works.
__________________
Design it, Build it, Break it, Fix it. Repeat Process.
Shock What ?!?
Reply With Quote
  #22   Spotlight this post!  
Unread 01-02-2011, 13:15
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Possible solution

The thing our team did was decide on a setup for the sensors....
It looks something like this:
Click image for larger version

Name:	diagram.GIF
Views:	35
Size:	2.4 KB
ID:	9913
After deciding on this setup we came up with a boolean setup that would, based on which lights were coming back true, turn the robot. We also made the sensory aspect of this custom code activate by pressing and holding button one. When this happened, the robot would no longer recieve x-values from the controller but recieve x-values from the code. It still allowed for y-axis values from the contoller.
__________________

jRIO 2013 Project
Reply With Quote
  #23   Spotlight this post!  
Unread 02-02-2011, 12:17
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Quote:
Originally Posted by Must Be Drama View Post
are you willing to help us develop?
I would be more than happy to help you if you would like. I could give you a basic example of what the nested case structure could look like. Shoot me a PM and ill get right on it.
__________________

jRIO 2013 Project
Reply With Quote
  #24   Spotlight this post!  
Unread 02-02-2011, 18:13
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Thanks For The Help Everybody... when i get this code semi perfected il post it for the teams that needed help just like us... we got it to track the straight line good enough
Reply With Quote
  #25   Spotlight this post!  
Unread 05-02-2011, 12:59
The Trooper The Trooper is offline
Registered User
FRC #2559 (nOrMaLiTy zErO)
Team Role: Coach
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Harrisburg PA
Posts: 23
The Trooper is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

Quote:
Originally Posted by Ethan Spitz View Post
Hmmm. Try writing code to see if you man say make a wheel speed up when you cover the sensor or it sees the line etc.

Also the sensor should change from green to and orange red light when its on the line. Does yours do that?
Could you please provide a screen shot of your code as to how you would recommend programming the wheels to turn?
Reply With Quote
  #26   Spotlight this post!  
Unread 06-02-2011, 19:54
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Line Tracking VI. drives in half a circle...?

It has case statements heavily nested in it so it won't be to much help. Basically we said if both sensors are off the line go straight, if left sensor is on the line make the right wheel spin a little faster till its off. If right is on the line, make the left wheel spin a little faster.

The middle sensor stays on at all times and if all of them end off the line, it knows which sensor saw the line last and turns that way.

Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
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 11:00.

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