![]() |
Re: Switching from Autonomous to Tele-op
So I need to put a set reference in tele-op to the final.vi closes?
Ethan |
Re: Switching from Autonomous to Tele-op
Quote:
|
Re: Switching from Autonomous to Tele-op
2 Attachment(s)
Like this
Ethan |
Re: Switching from Autonomous to Tele-op
Finish.vi looks good.
No, you do not need those Sets in Auto. The Sets are only done once in Begin.vi. Begin Opens and names the thing that's been opened. Everywhere else just uses the name. |
Re: Switching from Autonomous to Tele-op
So do I ever reference the closes in final.vi?
|
Re: Switching from Autonomous to Tele-op
2 Attachment(s)
So should like this?
Ethan |
Re: Switching from Autonomous to Tele-op
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. |
Re: Switching from Autonomous to Tele-op
Ok. So that Tele-op code looks fine?
|
Re: Switching from Autonomous to Tele-op
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. |
Re: Switching from Autonomous to Tele-op
Okay, where does the stop compressor block go then?
|
Re: Switching from Autonomous to Tele-op
You can add that to Finish.vi between the Get refnum and the close
|
Re: Switching from Autonomous to Tele-op
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 |
Re: Switching from Autonomous to Tele-op
Good luck!
|
Re: Switching from Autonomous to Tele-op
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 |
Re: Switching from Autonomous to Tele-op
does autonomous works ??
from the pic you provided in thread, we can't seem to get our autonomous working ! |
| All times are GMT -5. The time now is 06:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi