View Single Post
  #5   Spotlight this post!  
Unread 08-02-2016, 20:06
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
Re: Code not deploying properly?

We had this same problem. We found the problem was assigning the PWM ports more than once (as Dan said). The RobotDrive can take motor controllers as parameters, so you would do something like this:

Code:
    	jagFrontLeft = new Jaguar(9);
    	jagFrontRight = new Jaguar(6);
    	jagBackLeft = new Jaguar(7); 
    	jagBackRight = new Jaguar(5); //in your code, this was jagBackLeft again

        myRobot = new RobotDrive(jagFrontLeft,jagFrontRight,jagBackLeft,jagBackRight);
        //The above may not be the correct order as I do not have the Eclipse with me, but hopefully you get the idea
I do wish it would not compile and the error would be flagged sooner.
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb

Last edited by Stimpy1901 : 08-02-2016 at 20:08.
Reply With Quote