View Single Post
  #5   Spotlight this post!  
Unread 01-02-2016, 09:19
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
Re: Joystick Pneumatic Triggering

Hey! our team is trying to do basically the same thing and our code is hitting an error on the "kreverse/kforward" when we try to get our solenoid object do them. we used the code provided above so instead of that i will provide the declaration
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;
	    	Gyro scotbot;
	    	Solenoid S;
	    	
	    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();
	    	Compressor c = new Compressor(0);
	    	Solenoid S = new Solenoid(1);
	    	
	    }
Is there something very obvious that im missing?
Reply With Quote