|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Basic Robot Main vi
If we are not using cameras, do we delete the second and third while loops showing in the Basic Robot Main vi?
Is there a need for them? Will they hurt anything if we leave them there, but are not uing them? |
|
#2
|
|||
|
|||
|
Re: Basic Robot Main vi
As far as i know...it should not cause any issues. Just make sure you delete the camera open.vi as well as the camera close.vi and I think it should all work fine.
|
|
#3
|
|||
|
|||
|
Re: Basic Robot Main vi
We used the timing loop, but deleted the whole camera loop. Seems to work fine and is faster when doing the "trace execution" on the PC, since it has one less loop to go through.
|
|
#4
|
|||
|
|||
|
Re: Basic Robot Main vi
What is the timing loop used for?
|
|
#5
|
|||
|
|||
|
Re: Basic Robot Main vi
We put a 1 second delay inside the timing loop and increment a global counter in the timing loop. In the autonomous code we can read the global variable to see how many seconds have passed since autonomous started. We use this for timing movements during autonomous.
|
|
#6
|
|||
|
|||
|
Re: Basic Robot Main vi
That certainly works, but if you would rather, you can put your time comparison directly in the auto. If you place a GetTime function at the beginning of your auto, and another inside your loop or other places in your code, you just subtract to get your elapsed time.
Greg McKaskle |
|
#7
|
|||
|
|||
|
Re: Basic Robot Main vi
You could use the structure posted
http://www.chiefdelphi.com/forums/sh...5&postcount=13. That make the loop run for 15 seconds and it will also monitor the amount of time elapsed in ms. This gives you a little more resolution and allows for a smaller step if you're trying to ramp based on time |
|
#8
|
||||
|
||||
|
Re: Basic Robot Main vi
This thread also posts multiple versions of autonomous,
http://www.chiefdelphi.com/forums/sh...590#post828590 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Robot Main | LiLFiL | Programming | 1 | 14-02-2009 18:51 |
| Coordinating Robot Main VI with Autonomous VI | jjauss | Programming | 2 | 07-02-2009 09:26 |
| Dashboard and Robot main with Axis camera | Team2883 | General Forum | 9 | 10-01-2009 07:35 |
| Basic Robot Layout | gsorozco | Technical Discussion | 8 | 12-02-2006 19:15 |
| Basic Robot Layout | gsorozco | Website Design/Showcase | 0 | 30-01-2006 02:13 |