Go to Post My favorite question of all time asked by "outsiders": How much does/did that thing cost? How can you put a price on the hard-work and dedication it took to build these machines? - KyleGilbert45 [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 28-01-2016, 09:43
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
 


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:42.

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