Go to Post Gravity is not always pointing the same direction relative to the robot! - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 24-03-2016, 14:26
nlt5 nlt5 is offline
Registered User
FRC #5676
 
Join Date: Feb 2016
Location: Michigan
Posts: 23
nlt5 is an unknown quantity at this point
Compressor

We are running our compressor off the robot but I read that the robot will still need to control the compressor through the use of the robot code. Will I need to write specific code to call for the compressor to turn on? Can anyone provide me with an example of what the code would look like to call the compressor. We are using iterative based code.

Thank you
Reply With Quote
  #2   Spotlight this post!  
Unread 24-03-2016, 15:03
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 296
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Compressor

Code:
Compressor compressor = new Compressor(CAN_ID_OF_YOUR_PCM);
compressor.setClosedLoopControl(true);
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:31.

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