So should like this?
Ethan
There isn’t anything else you do in Finish.vi.
Think of Finish.vi as only running at the very end when you shut your robot down.
It doesn’t run at the end of Autonomous or at the end of Teleop if you’re running a practice match over and over for instance.
Ok. So that Tele-op code looks fine?
Just saw your attachments.
That is what I meant.
One problem remains with your compressor code.
The compressor is a funny operation.
The compressor should be Opened AND started/enabled in Begin.vi.
No code for the compressor goes in Auto or teleop.
Then the compressor gets Closed in Finish.vi (just like you have it now).
P.S.
You can get rid of the 1 ms timer in Teleop.vi. It does hurt and it doesn’t help.
Okay, where does the stop compressor block go then?
You can add that to Finish.vi between the Get refnum and the close
Ok
thanks! Ill try it on Monday (we don’t meet on Sundays unfortunately) and will post my failure or success here.
Thanks again!
Ethan
Good luck!
So, I tested it out, and teleop doesn’t work. Are you sure I don’t need the while loop?
Ethan
Edit: Nevermind, it works!
Thanks
does autonomous works ??
from the pic you provided in thread, we can’t seem to get our autonomous working !
Besides the compressor code, the very last image I posted in here should work, you just have to define all of those things in begin.vi first.
Ethan
ALSO make sure that your line sensors are calibrated correctly, otherwise it won’t run. If it detects with both, the motors won’t move.
Ethan

