|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Relay Set Time
Just make a while loop, and stop the loop after a certain amount of time.
The is an example to it in the default project WITHOUT game code. Also, if you do so, don't use constants at first but controls, because it's much easier to change those numbers in controls because you don't need to send your project all the time. |
|
#2
|
|||
|
|||
|
Re: Relay Set Time
Quote:
|
|
#3
|
|||
|
|||
|
Re: Relay Set Time
Quote:
Also u don't have to use the default line tracking code to work with sensors, i made a much simpler code using only 2 sensors because of some problems that we had with the third sensor, and it works really good. |
|
#4
|
|||
|
|||
|
Re: Relay Set Time
Quote:
Thanks |
|
#5
|
|||
|
|||
|
Re: Relay Set Time
Quote:
U can create a very simple code using only 2 digital outputs (the sensors) a bunch of cases and a while loop with a stop condition when both digitals are true. I am working with labview only for 2 month and those are very simple functions. so i think u can make it, if you think about those functions for a while. Again... i will try to send you the code soon as i get on the computer, but it will be only in couple of daysץ Also, there are plenty of teams using only timers in the auto mode and it works pretty good, so u don't really need timers. Last edited by Arthur But' : 28-02-2011 at 12:31. |
|
#6
|
|||
|
|||
|
Re: Relay Set Time
Quote:
|
|
#7
|
||||
|
||||
|
Re: Relay Set Time
If you're interested, I've attached a simpler line-following program. I tried to add a ton of comments so that modifying it is easier. PM me if you have any questions.
Note that it has nothing to deal with the Y or the diagonal bits. Also, the robot may not be aligned when it stops, so be prepared to deal with that. We have a mecanum base, so if you need some code for that I can send some your way. It's not very clean though ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|