Go to Post It's always FIRST season. - Foss@Team176 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 19-03-2013, 13:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Air Cylinder,compressor,soleinoids,relay

To verify that you have everything properly wired to control a compressor, and to see the programming that makes it work, follow the example and tutorial I pointed you to earlier.
Reply With Quote
  #17   Spotlight this post!  
Unread 19-03-2013, 13:06
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

THIS is my begin
Attached Thumbnails
Click image for larger version

Name:	BEGIN 1.png
Views:	26
Size:	27.8 KB
ID:	14389  
Reply With Quote
  #18   Spotlight this post!  
Unread 19-03-2013, 13:11
jdaming jdaming is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2007
Location: New Orleans, LA
Posts: 43
jdaming is on a distinguished road
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by Racer26 View Post
I'm still quite concerned by tim's Regional confusion.

Whether or not the robot works is irrelevant if they show up at the wrong regional with it.
I just sent an email to the contact address on their website:
http://www.wenonahrobotics.webs.com/

I hope so too
Reply With Quote
  #19   Spotlight this post!  
Unread 19-03-2013, 13:13
jdaming jdaming is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2007
Location: New Orleans, LA
Posts: 43
jdaming is on a distinguished road
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by tim101 View Post
THIS is my begin
You have no need for the while loop. Please see the example he is pointing you to!
Reply With Quote
  #20   Spotlight this post!  
Unread 19-03-2013, 13:22
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

i did not program the begin
Reply With Quote
  #21   Spotlight this post!  
Unread 19-03-2013, 13:27
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by jdaming View Post
I just sent an email to the contact address on their website:
http://www.wenonahrobotics.webs.com/

I hope so too
we already have that sqared away,we have talked to FIRST National,and our BAYOU REGIONAL administrators. We Thank You for your consideration .
Reply With Quote
  #22   Spotlight this post!  
Unread 19-03-2013, 14:38
Reggie335 Reggie335 is offline
Registered User
AKA: Reginald
FRC #4297 (WeNoRobots)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Birmingham, AL
Posts: 68
Reggie335 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by jdaming View Post
So far I have only seen code that deals with the solenoids. Starting the compressor is a separate piece of code have you included that?

I found an image of someone else's begin VI code here with some compressor code in it so you will want to check you have something like that. You could probably also copy the code out of the example mentioned above.
http://www.chiefdelphi.com/forums/at...0&d=1330110193
I am also using my solenoids to control my air compressor
Reply With Quote
  #23   Spotlight this post!  
Unread 19-03-2013, 16:00
G_rupp's Avatar
G_rupp G_rupp is offline
Registered User
FRC #1108
 
Join Date: Jan 2011
Location: Paola, KS
Posts: 43
G_rupp is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Are you currently trying to operate the compressor and cylinders on a bench setup do you just want to make sure that your code will work once you get there?

I will be the Control System Advisor at the Razorback Regional. Look for one of the volunteers in an orange hat on Thursday and we will help get your compressor and solenoids working.

In the Begin, you do not need the Relay Open block. It is taken care of by the Compressor Open.

In the Solenoid Open, you have both solenoid channels selecting Solenoid 1.

You need to add a Set Ref for the compressor so it can be used inside of Periodic Tasks.vi. Make sure that in Periodic Tasks that the compressor code is enabled and the reference is set to the same name as you add in the Begin.vi.

In Teleop.vi, the release will need to be set to "Reverse", not "Off". Off leaves the valve in the last state.
Reply With Quote
  #24   Spotlight this post!  
Unread 19-03-2013, 16:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by tim101 View Post
THIS is my begin
Quote:
Originally Posted by tim101 View Post
i did not program the begin
Someone on your team did, and they did it wrong. The Compressor Enabled status check, and the while loop that contains it, should not be there. Instead, there should be a Compressor RefNum Set giving the compressor reference a name, and that same name should be used in the Compressor RefNum Get that feeds the compressor control loop function in Periodic Tasks.

Start with the example project I told you about. Get it working first. Then use the tutorial I told you about to move the example code into your robot program.
Reply With Quote
  #25   Spotlight this post!  
Unread 19-03-2013, 16:45
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Hey, thanks and i was wondering when it comes to my victor motors do i have to program them into Teleop.vi.
Reply With Quote
  #26   Spotlight this post!  
Unread 19-03-2013, 17:34
G_rupp's Avatar
G_rupp G_rupp is offline
Registered User
FRC #1108
 
Join Date: Jan 2011
Location: Paola, KS
Posts: 43
G_rupp is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

What are these victors used for?

You will need to create an Open Motor and Motor Set reference in Begin. Then you will need to use them in teleop.
Reply With Quote
  #27   Spotlight this post!  
Unread 20-03-2013, 10:37
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by G_rupp View Post
What are these victors used for?

You will need to create an Open Motor and Motor Set reference in Begin. Then you will need to use them in teleop.
The victors are for the shooter,and I've done all of that in the begin i just need to know how to do it in the teleop
Reply With Quote
  #28   Spotlight this post!  
Unread 20-03-2013, 10:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by tim101 View Post
The victors are for the shooter,and I've done all of that in the begin i just need to know how to do it in the teleop
There's also a Motor Control example. It's pretty trivial -- all you need to do is wire the desired input to a Motor Set function.
Reply With Quote
  #29   Spotlight this post!  
Unread 20-03-2013, 12:50
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by Alan Anderson View Post
There's also a Motor Control example. It's pretty trivial -- all you need to do is wire the desired input to a Motor Set function.
Hey, i tried that it didn't hep
Reply With Quote
  #30   Spotlight this post!  
Unread 20-03-2013, 13:54
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Air Cylinder,compressor,soleinoids,relay

When you say the example didn't help, do you mean that it didn't work? Or do you mean that it worked but you weren't able to implement what it did in your own program?

If the example didn't work, there is a problem with your wiring. Give us as much detail as you can about how you have your motor and speed controller connected to the rest of the robot, and we'll try to help you figure out what's wrong. A clear picture of the wiring would be a big help.

If the example works, then there is a problem with your software. Show us what you did, in both Begin and Teleop, and we'll try to help you figure out what's wrong.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi