View Single Post
  #1   Spotlight this post!  
Unread 01-28-2016, 09:43 AM
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
Noob question for teleop

Hey, it appears our teleop code, after deploying it to the roboRio, likes to kick out after running through it once.
Code:
public void teleopPeriodic() {
	    	
	 
	    		myDrive.mecanumDrive_Cartesian(moveStick.getRawAxis(1), moveStick.getRawAxis(1), moveStick.getRawAxis(1), gyro.getAngle());
	    		Timer.delay(0.01);
	    
	   }
, and won't recognize the controller
Code:
RobotDrive myDrive, catcherDrive;
	    	Joystick moveStick;
	    	Gyro gyro;
	    	
	    
	    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(1);
	    	catcherDrive = new RobotDrive(TalCatcher, TalCatcher1);
	
	    }
This is what we have for the teleOp. Any form of response would be greatly appreciated.
Reply With Quote