Go to Post Goodness, YES. Please get a copy of the rules. It explains a lot, and if your robot does NOT follow the rules, you will not be allowed to compete. Really, it is very important. - DonRotolo [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-02-2016, 14:17
CjDace CjDace is offline
Registered User
FRC #4284
 
Join Date: Jan 2016
Location: Cincinnati, Ohio
Posts: 10
CjDace is an unknown quantity at this point
Pnuematics Noob help

Code:
	public class Robot extends IterativeRobot {
	    /**
	     * This function is run when the robot is first started up and should be
	     * used for any initialization code.
	     * 
	     */  RobotDrive myDrive, catcherDrive;
	    	Joystick moveStick;
	    	ADXRS450_Gyro scotbot;
	    	Solenoid S;
	    	Compressor C;
	    	DoubleSolenoid DS;
	
	    	
	    public void robotInit() {
	    	Talon TalLF = new Talon(0);
	    	Talon TalLR = new Talon(1);
	    	Talon TalRF = new Talon(2);
	    	Talon TalRR = new Talon(3);
	    	Talon TalCatcher = new Talon(4);
	    	Talon TalCatcher1 = new Talon(5);
	    	myDrive =  new RobotDrive(TalLF,TalLR,TalRF,TalRR);
	    	moveStick = new Joystick(0);
	    	catcherDrive = new RobotDrive(TalCatcher, TalCatcher1);
	    	scotbot = new ADXRS450_Gyro();
	    	DoubleSolenoid DS = new DoubleSolenoid(0, 1);
	    	Compressor C = new Compressor(0);
My first question is do we have these solenoids and compressor assigned correctly? secondly, in the instantiation of the solenoids where on the PCM do we plug in the solenoids? This is our first year with pneumatics and any help with really any intro information would be greatly appreciated
Reply With Quote
 


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 08:43.

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