|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Code not deploying properly?
Did you make any code changes? If your code is crashing on startup, it may show that no robot code exists on the Rio.
|
|
#2
|
|||
|
|||
|
Re: Code not deploying properly?
You're trying to allocate two or more devices to one PWM port. Fix that and it should work.
|
|
#3
|
|||
|
|||
|
Re: Code not deploying properly?
we don't have the PWM hooked up. A mentor from another established team said we probably don't need it.
|
|
#4
|
|||
|
|||
|
Re: Code not deploying properly?
Quote:
|
|
#5
|
|||
|
|||
|
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
Last edited by Stimpy1901 : 08-02-2016 at 20:08. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|