|
Re: Help with deploying Java
The error is conflicting port numbers. Something is opening PWM 0 before Lifter is (or PWM 1 after you changed it).
PWM 0-3 are assigned to the drivetrain based on lines 11-14 of /robot/Ports.java and lines 75-78 of /subsytems/drivetrain.java
Is there a reason lifter.java is not using PORT_LIFTER_VICTOR_1 and PORT_LIFTER_VICTOR_2 from Ports.java?
Changing the port on the line causing the exception must have an effect if the change is saved, builds properly and deploys properly, the exception clearly reports the line it occurs on. At a minimum making a change should change the port with a conflict, if you pick a port that is actually free it will clear the exception.
EDIT: StartCompetition exists in C++ as well, you just never went looking for it. The differences between the C++ and Java versions of WPILib are pretty small, the C++ equivalent of the code you have here would fail in a very similar manner.
Last edited by RufflesRidge : 15-11-2015 at 22:11.
|