Thread: Problems -_-
View Single Post
  #3   Spotlight this post!  
Unread 18-01-2013, 15:27
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: Problems -_-

----Edit------
John beat me too it

The post above is correct.

For future reference you may want to look into handling exceptions in Java. This article in the Java documentation explains exceptions pretty well:http://docs.oracle.com/javase/tutori...efinition.html
---------------
This is your problem:

Quote:
[cRIO] Uncaught exception in Thread.run():
[cRIO] on thread edu.wpi.first.wpilibj.templates.RobotTemplate - main
[cRIO] edu.wpi.first.wpilibj.util.AllocationException: PWM channel 1 on module 1 is already allocated
Take a look in here:
Quote:
Joystick leftStick = new Joystick(1);
Joystick rightStick = new Joystick(2);
Joystick thirdStick = new Joystick(3);
Jaguar leftdrive = new Jaguar(1);
Jaguar rightdrive = new Jaguar(2);
Button shooter1 = new JoystickButton(thirdStick,3);
Button shooter2 = new JoystickButton(thirdStick,4);
Button shooter3 = new JoystickButton(thirdStick,5);
Button shooterStop = new JoystickButton(thirdStick,2);
Jaguar shooter = new Jaguar(3);
RobotDrive drive = new RobotDrive(1, 2);
and

Quote:
drive = new RobotDrive(leftdrive,rightdrive);
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks

Last edited by ~Cory~ : 18-01-2013 at 15:34. Reason: Repost cleanup
Reply With Quote