![]() |
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 |
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.
|
Re: line sensing code
Quote:
|
Re: line sensing code
Quote:
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 |
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