Go to Post Remember; FIRST is staffed by real live humans, some of whom have a sense of humor. - Andy A. [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 08-02-2015, 10:37
techplex's Avatar
techplex techplex is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 95
techplex is just really nicetechplex is just really nicetechplex is just really nicetechplex is just really nice
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

Make sure you have at least one Solenoid or DoubleSolenoid decleared in your code. The compressor will not be initialized without having at least one:

Code:
Solenoid name = new Solenoid(1);
This code should actuate the double solenoid based on joystick button:
Code:
package org.usfirst.frcEasyJ.team5122;

import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.DoubleSolenoid;

public class MyRobot extends IterativeRobot {

    Joystick JS1 = new Joystick(1);
    DoubleSolenoid DValve1 = new DoubleSolenoid(1, 2);
    public void autonomousInit() {

    }
    public void autonomousPeriodic() {

    }
    public void teleoperatedPeriodic() {
        if (JS1.getRawButton(1)) {
            DValve1.set(DoubleSolenoid.Value.kForward);
        } else {
            DValve1.set(DoubleSolenoid.Value.kReverse);
        }

    }
    public void teleoperatedInit() {

    }
}
__________________
Blake
Electrical, Programming and Design

Creator FRC Q&A 2017
Mass FRC Team 4909: The Bionics
Maine FRC Team 5122: The RobOTies (2014-2015)
Maine FRC Team 2648: Infinite Loop (2008-2011)
 


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 12:18.

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