Go to Post Your team has a cave?!?!? OMG, how did you guys get that?!?! Do you have a cave sponsor? We tried talking to cave sponsors but none of them responded. You guys must be an elite team to have a cave. - marshall [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 17-02-2011, 18:54
jackdawg's Avatar
jackdawg jackdawg is offline
Registered User
AKA: Wyatt Cerilli
FRC #1307
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Dover NH
Posts: 21
jackdawg is an unknown quantity at this point
line sensing code

i have been looking at the default line sensor code and i cant seem to make heads or tails of it. has anyone written it from scratch? is it difficult to figure out??

also what do people think about it? is it like the vision tracking of previous years (not very helpful and a pain to get to work)?

my thought is that a much simpler autonomous would be easier. (ex. go forward, deploy arm, place tube on rack)

thanks in advance

-Wyatt C FIRST Team 1307
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2011, 19:49
GunfighterJ's Avatar
GunfighterJ GunfighterJ is offline
Registered User
AKA: Joseph
FRC #2450 (RaiderBots)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Minnesota
Posts: 34
GunfighterJ is an unknown quantity at this point
Re: line sensing code

It's quite easy. If you know how to wire it up to the digital side car then you can just open 3 digital inputs and get teh value of them in boolean format. After that you can use case structures or use "boolean to (0,1)" to tell the drive motors to go left, right, or stop.
__________________
There are 10 types of people in this world. Those that understand binary, and those that don't.



Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2011, 23:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: line sensing code

Quote:
Originally Posted by jackdawg View Post
i have been looking at the default line sensor code and i cant seem to make heads or tails of it. has anyone written it from scratch? is it difficult to figure out??
National Instruments provides a very helpful Line Following Tutorial that explains its operation.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2011, 23:26
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: line sensing code

Quote:
Originally Posted by jackdawg View Post
i have been looking at the default line sensor code and i cant seem to make heads or tails of it. has anyone written it from scratch? is it difficult to figure out??
The default line sensor code essentially determines how to run the bot every some amount of seconds. That is either by goin forward full force, or turning and goin sideways
I'd suggest using a truth table, as the guide on NI suggest
Only problem is tat it makes the bot zigzag a lot over the line
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2011, 09:42
Triapod Triapod is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2005
Location: NJ
Posts: 28
Triapod is an unknown quantity at this point
Re: line sensing code

Go to FRC Mastery. There is a breakdown of the code.
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 20:30.

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