Go to Post Yes, I have lost it! - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2016, 14:25
johnny_Bet johnny_Bet is offline
Dark Lord of Code
AKA: Johnny Bettencourt
FRC #4643 (Thunderbird Robotics)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: United States
Posts: 11
johnny_Bet is infamous around these parts
Where do I turn compressor on in code?

Hello People of Chief Dephi! I'm the programmer for team 4643 and this is our first year using C++ and we have been doing fairly well so far. I recently, however, ran in to the question of turning on the compressor. I looked through all of my files and from that decided to assume that the best place to turn it on would be TeleopPeriodic as well as AutonomusPeriodic. Was I right to assume so? I just want to check with someone who knows what they are doing before we test this on our robot today and I mess things up. Help of any sort is appreciated!
  #2   Spotlight this post!  
Unread 30-01-2016, 14:26
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
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: Where do I turn compressor on in code?

You don't have to "turn on" the compressor.

See top of
http://wpilib.screenstepslive.com/s/...for-pneumatics
  #3   Spotlight this post!  
Unread 30-01-2016, 14:27
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
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: Where do I turn compressor on in code?

Also checkout section 4.1 in PCM User's Guide.
http://www.ctr-electronics.com/pcm.h...ical_resources
  #4   Spotlight this post!  
Unread 30-01-2016, 14:31
johnny_Bet johnny_Bet is offline
Dark Lord of Code
AKA: Johnny Bettencourt
FRC #4643 (Thunderbird Robotics)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: United States
Posts: 11
johnny_Bet is infamous around these parts
Re: Where do I turn compressor on in code?

RobotMap::manipACompressor1->SetClosedLoopControl(1);
This is what I put in both AtonomousPeriodic and TeleopPeriodic. If I was wrong in doing so where can I put them?
  #5   Spotlight this post!  
Unread 30-01-2016, 14:57
jajabinx124's Avatar
jajabinx124 jajabinx124 is offline
Team 2052 Alumnus
AKA: Kshitij Wavre
no team
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Madison, WI
Posts: 540
jajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond repute
Re: Where do I turn compressor on in code?

What ozrien was trying to say is that this year you don't have to "turn on" the compressor if you wire your compressor straight to the PCM. It turns on automatically without writing code for it.
__________________
FRC Volunteer CSA (MRI off-season event, 2017 Lake Superior Regional, 2017 10,000 Lakes Regional) 2016 - Present
FRC 2052 KnightKrawler (Team Captain, Strategist, Scouting, Programming) 2013 - 2016

1 Division Win & Einstein Appearance
3 Division Quarter-Finalists
1 Regional Chairman's Award
5 Regional Wins, 3 Regional Finalists
3 MN State Championship Wins, 1 MN State Championship Finalist
Thanks to all our alliance partners who krawled with us: 41, 70, 225, 525, 1595, 2054, 2062, 2122, 2175, 2227, 2472, 2526, 2883, 2990, 3018, 3244, 3276, 3310, 3313, 3360, 3538, 3692, 4011, 4198, 4536, 4607, 4778, 5172, 5690

Last edited by jajabinx124 : 30-01-2016 at 15:08. Reason: Adding detail
Closed Thread


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 00:38.

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