Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   Switching from Autonomous to Tele-op (http://www.chiefdelphi.com/forums/showthread.php?t=89822)

Ethan Spitz 22-01-2011 23:06

Re: Switching from Autonomous to Tele-op
 
So I need to put a set reference in tele-op to the final.vi closes?
Ethan

Mark McLeod 22-01-2011 23:11

Re: Switching from Autonomous to Tele-op
 
Quote:

Originally Posted by Ethan Spitz (Post 1006137)
So I need to put a set reference in tele-op to the final.vi closes?
Ethan

I'm not clear on what you mean by that.

Ethan Spitz 22-01-2011 23:13

Re: Switching from Autonomous to Tele-op
 
2 Attachment(s)
Like this
Ethan

Mark McLeod 22-01-2011 23:16

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.

Ethan Spitz 22-01-2011 23:18

Re: Switching from Autonomous to Tele-op
 
So do I ever reference the closes in final.vi?

Ethan Spitz 22-01-2011 23:25

Re: Switching from Autonomous to Tele-op
 
2 Attachment(s)
So should like this?
Ethan

Mark McLeod 22-01-2011 23:28

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.

Ethan Spitz 22-01-2011 23:30

Re: Switching from Autonomous to Tele-op
 
Ok. So that Tele-op code looks fine?

Mark McLeod 22-01-2011 23:32

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.

Ethan Spitz 22-01-2011 23:33

Re: Switching from Autonomous to Tele-op
 
Okay, where does the stop compressor block go then?

Mark McLeod 22-01-2011 23:36

Re: Switching from Autonomous to Tele-op
 
You can add that to Finish.vi between the Get refnum and the close

Ethan Spitz 22-01-2011 23:39

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

Mark McLeod 22-01-2011 23:41

Re: Switching from Autonomous to Tele-op
 
Good luck!

Ethan Spitz 24-01-2011 15:05

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

wazcodez 29-01-2011 18:20

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