Go to Post So I thought to myself "Man, I wish I was a part of a large technically minded community... oh... right..." - BordomBeThyName [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-31-2010, 10:23 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: How to work with pneumatics

Quote:
Originally Posted by Rangel(kf7fdb) View Post
Never mind, got the compressor to start but now we need to get the compressor to stop. How do you make it stop at 60 psi?
you have compressor.Start() in the OperatorControl loop. it should be in the initializer (where you have GetWatchdog().SetExpiiration(0.1), so your code becomes
Code:
	RobotDemo(void):
		myRobot(3, 4),	
		myRobot2(2, 1),
		myRobot3(5, 6),
		stick(1),
		stick2(2),
		stick3(3),
		compressor(1, 8)
		
	{
		compressor.Start();
		GetWatchdog().SetExpiration(0.1);
	}
Assuming you have a pressure switch hooked up to GPIO port 1 your compressor should stop at 120 psi

Also, why do you have 2 different robotDrives running with the same inputs? You can list 4 jaguars in the initializer of a single robotDrive and it will output to two motors per side.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Half of pneumatics doesn't work Red Mage Pneumatics 12 02-12-2009 09:52 AM
No pneumatics work help nevereverregret Pneumatics 3 02-12-2009 08:14 AM
How to wire pneumatics LuckyLotto2487 Electrical 9 02-11-2009 02:35 PM
Ultrasonics: Will it work and how to make it work DavidB Electrical 2 01-17-2009 04:27 PM
How long to get Pneumatics? sanddrag Pneumatics 3 01-31-2005 01:18 AM


All times are GMT -5. The time now is 09:25 AM.

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