Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   line sensing code (http://www.chiefdelphi.com/forums/showthread.php?t=92131)

jackdawg 17-02-2011 18:54

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

GunfighterJ 17-02-2011 19:49

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.

Alan Anderson 17-02-2011 23:13

Re: line sensing code
 
Quote:

Originally Posted by jackdawg (Post 1025410)
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.

kinganu123 17-02-2011 23:26

Re: line sensing code
 
Quote:

Originally Posted by jackdawg (Post 1025410)
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

Triapod 18-02-2011 09:42

Re: line sensing code
 
Go to FRC Mastery. There is a breakdown of the code.


All times are GMT -5. The time now is 09:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi