Go to Post "In PID, Integrals are like diamonds. They are forever!" - Sam390250 [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
  #1   Spotlight this post!  
Unread 12-02-2015, 18:53
CooneyTech CooneyTech is offline
Registered User
FRC #0269
 
Join Date: Jan 2013
Location: Oconomowoc
Posts: 32
CooneyTech is an unknown quantity at this point
Question Programming Compressor

I am wondering if anyone knows how to program the compressor in labview to enable and disable during different points during autonomous and teleop. I have the compress working in teleop when I hit enable but I want to be able to disable it and enable and not just let it run automatically. Does anyone know how to do this? I tried using the start and stop blocks
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2015, 19:38
KosmicKhaos's Avatar
KosmicKhaos KosmicKhaos is online now
Calm Cool Collected
AKA: Andrew Thompson
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Webster NY
Posts: 143
KosmicKhaos has a spectacular aura aboutKosmicKhaos has a spectacular aura about
Re: Programming Compressor

Just wondering, why would you ever want to disable it? I'm sure there's a way but since it turns on and off automatically it's one less thing to worry about.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2015, 19:50
CooneyTech CooneyTech is offline
Registered User
FRC #0269
 
Join Date: Jan 2013
Location: Oconomowoc
Posts: 32
CooneyTech is an unknown quantity at this point
Re: Programming Compressor

Quote:
Originally Posted by KosmicKhaos View Post
Just wondering, why would you ever want to disable it? I'm sure there's a way but since it turns on and off automatically it's one less thing to worry about.
Air isn't that crucial to us this year. If for some reason the battery starts getting low I would like to cut power. I'm also working on a way to enable the compressor without the driverstation so the pit crew can pump it full of air without having to use the driverstation, however in order to do this I need to enable the compressor in robot main instead of teleop.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2015, 20:04
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Programming Compressor

Quote:
Originally Posted by CooneyTech View Post
I'm also working on a way to enable the compressor without the driverstation so the pit crew can pump it full of air without having to use the driverstation, however in order to do this I need to enable the compressor in robot main instead of teleop.
This is illegal. All energizing of the robot must go through the driver station
__________________
2015 MAR District Champions




Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2015, 20:20
CooneyTech CooneyTech is offline
Registered User
FRC #0269
 
Join Date: Jan 2013
Location: Oconomowoc
Posts: 32
CooneyTech is an unknown quantity at this point
Re: Programming Compressor

"R51 All signals must originate from the OPERATOR CONSOLE and be transmitted to the ROBOT via the ARENA Ethernet network."

This is the only rule in regards to controlling the robot with something other then the driverstation, but this rule only applies during a match and not well working in the pits. The other rules that would cover it are rules applying to wireless or bluetooth devices however this control would be wired directly to the robot. As long as the controller doesn't interfere during a match it would be legal.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2015, 20:37
Chris_Ely's Avatar
Chris_Ely Chris_Ely is offline
Registered User
AKA: luckof13
FRC #3414 (HackBots)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Farmington, Michigan
Posts: 366
Chris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond repute
Re: Programming Compressor

Quote:
Originally Posted by CooneyTech View Post
"R51 All signals must originate from the OPERATOR CONSOLE and be transmitted to the ROBOT via the ARENA Ethernet network."

This is the only rule in regards to controlling the robot with something other then the driverstation, but this rule only applies during a match and not well working in the pits. The other rules that would cover it are rules applying to wireless or bluetooth devices however this control would be wired directly to the robot. As long as the controller doesn't interfere during a match it would be legal.
False, see rules R69 and R80:
Quote:
Originally Posted by R69
The compressor (permitted per R68) may be located off-board, however the compressor must still be controlled and powered by the ROBOT.
Quote:
Originally Posted by R80
The Driver Station software provided on the National Instruments website is the only application permitted to specify and
communicate the operating mode (i.e. Autonomous/TELEOP) and operating state (Enable/Disable) to the ROBOT.
The Driver Station software must be revision 17121400 or newer.
Emphasis mine.
The compressor must be controlled by the robot, which must be controlled by the Driver Station.
__________________
2013: Waterford Finalist, Livonia Winner, MSC Quarterfinalist, Curie Division
2012: Waterford, Northville, Livonia
2011: Waterford Finalist, Livonia
2010: Ann Arbor Rookie Inspiration Award, Troy

Mechanical Engineering Student,
Michigan Technological University
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2015, 20:42
CooneyTech CooneyTech is offline
Registered User
FRC #0269
 
Join Date: Jan 2013
Location: Oconomowoc
Posts: 32
CooneyTech is an unknown quantity at this point
Re: Programming Compressor

Quote:
Originally Posted by Chris_Ely View Post
False, see rules R69 and R80:


Emphasis mine.
The compressor must be controlled by the robot, which must be controlled by the Driver Station.
R69: The compressor is powered off of the robot.

R80: I am not enable nor disabling the robot, I am merely powering the compressor for a short period of time.
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2015, 20:50
Chris_Ely's Avatar
Chris_Ely Chris_Ely is offline
Registered User
AKA: luckof13
FRC #3414 (HackBots)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Farmington, Michigan
Posts: 366
Chris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond reputeChris_Ely has a reputation beyond repute
Re: Programming Compressor

Quote:
Originally Posted by CooneyTech View Post
R69: The compressor is powered off of the robot.

R80: I am not enable nor disabling the robot, I am merely powering the compressor for a short period of time.
How do you intend to power the compressor without enabling the robot?
In order for the RoboRIO to send control signals to the rest of the control system, it must be enabled via the driver station. This is a safety feature. You can write code that only turns on the compressor, but it still would require the driver station to enable the robot. See these instructions for how to do that.
C++
Java
For LabVIEW, use the compressor VIs. See here for LabVIEW resources.
__________________
2013: Waterford Finalist, Livonia Winner, MSC Quarterfinalist, Curie Division
2012: Waterford, Northville, Livonia
2011: Waterford Finalist, Livonia
2010: Ann Arbor Rookie Inspiration Award, Troy

Mechanical Engineering Student,
Michigan Technological University

Last edited by Chris_Ely : 12-02-2015 at 20:55. Reason: Added LabVIEW resources.
Reply With Quote
  #9   Spotlight this post!  
Unread 12-02-2015, 20:51
KosmicKhaos's Avatar
KosmicKhaos KosmicKhaos is online now
Calm Cool Collected
AKA: Andrew Thompson
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Webster NY
Posts: 143
KosmicKhaos has a spectacular aura aboutKosmicKhaos has a spectacular aura about
Re: Programming Compressor

So of course this isn't official rule clarification but what I can tell is that what you plan on doing is legal. as long as you just plan on enabling and disabling the compressor only during a match through the driver station. I kind of recall this question being asked on the Q&A. Now it's just a matter of figuring out how to enable and disable the compressor with code. Sorry I don't know Lab View I only know java. Try asking in the programing forum under Lab View
Reply With Quote
  #10   Spotlight this post!  
Unread 13-02-2015, 00:30
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 524
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Programming Compressor

CooneyTech,
So I assume your using a PCM to closed-loop the compressor. Under typical conditions the PCM will drive the compressor if the pressure switch indicates that pressure is not-full. However if during the match you would prefer to force off this feature (for example for the sake of power management) you can force OFF the compressor by using the WPI_CompressorStop.vi.

When you start the compressor again using WPI_CompressorStart.vi, it will re-enable the closed loop feature so that when the pressure switch reads not-full, compressor will drive to fill pressure.

The VIs are under Actuators => Compressor in the right click menu bar.

Does that answer your question?
Reply With Quote
  #11   Spotlight this post!  
Unread 13-02-2015, 06:55
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,230
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Programming Compressor

In C++, there are Compressor->Start(); and Compressor->Stop() functions that will enable and disable the compressor.
http://first.wpi.edu/FRC/roborio/rel...ompressor.html

There are similar functions in Java.
http://first.wpi.edu/FRC/roborio/rel...pressor. html

This if from the Labview Documentation:
Quote:
Compressor
Use the Compressor Vis to start and stop a compressor. The Compressor Vis manipulate a pressure Switch connected To the High pressure Side of The pneumatic Circuit of The robot, controlling the compressor of the robot.
https://decibel.ni.com/content/docs/DOC-14708

Last edited by rich2202 : 13-02-2015 at 07:26.
Reply With Quote
  #12   Spotlight this post!  
Unread 13-02-2015, 08:45
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Re: Programming Compressor

Unless your pneumatics system has a leak and/or you have an extreme shortage of batteries, I can't imagine the compressor taxing your system that much - especially given your statement that pneumatics is not that critical in your design. Can you just put more air storage on your robot, and run to recharge between matches...then change the battery to a freshly charged one before starting the new match?

Our team has used pneumatics extensively each year I've been involved, and we have never had an issue with the compressor running down the battery. In 2012 we had a 18" stroke 2" bore cylinder on our shooter - and two other smaller cylinders...our compressor ran almost constantly, but we never had a battery issue. (We have had air-supply issues...)
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
Reply With Quote
  #13   Spotlight this post!  
Unread 13-02-2015, 10:00
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,230
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Programming Compressor

Quote:
Originally Posted by Qbot2640 View Post
Our team has used pneumatics extensively each year I've been involved, and we have never had an issue with the compressor running down the battery.
Last year, we used a lot of power when throwing the ball (2 cims on a throw arm). It made a difference if the compressor was running or not.
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 08:00.

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