Go to Post I've come to believe that the current alliance selection system is just like democracy. It's the worst system possible, aside from all the other ones. - DampRobot [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 01-15-2015, 04:35 PM
VD3626 VD3626 is offline
Registered User
FRC #3626
 
Join Date: Jan 2015
Location: Texas
Posts: 6
VD3626 is an unknown quantity at this point
Compressor not starting

This is the code I have been using to try and get the compressor to run. The test motor is there just to tell me whether or not the compressor is getting the message to start or not. The motor runs no matter what I try to change which is strange because I am setting "SetClosedLoopControl" to true yet it does not seem to change to true.
Code:
void AutonomousCommand::Execute() {
	compOneCompressorOne->SetClosedLoopControl(true);
			if(compOneCompressorOne->GetClosedLoopControl() == false)
			{
				Robot::testMotor->Go();
			}
}
Any help is appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-15-2015, 10:59 PM
MHSrobotics2853's Avatar
MHSrobotics2853 MHSrobotics2853 is offline
Mililani Robotics
FRC #2853 (Trobobots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Mililani, HI 96789
Posts: 47
MHSrobotics2853 is just really niceMHSrobotics2853 is just really niceMHSrobotics2853 is just really niceMHSrobotics2853 is just really niceMHSrobotics2853 is just really nice
Re: Compressor not starting

You have to "Start" the Compressor class. It's a function of the class.

http://first.wpi.edu/FRC/roborio/dev...ompressor.html

Ah, my bad, forgot it was enabled by default. See response below vvvv

Last edited by MHSrobotics2853 : 01-15-2015 at 11:02 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-15-2015, 11:00 PM
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,112
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: Compressor not starting

I'm pretty sure the compressor isn't enabled until you have defined at least one pneumatic solenoid. And it's enabled by default; you don't have to explicitly turn on closed loop control. You only have to worry about it if you ever want to disable it.
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 09:56 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