|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
CAN setX() not working
Not sure if I should post this here or in the CAN section...
I was trying to use setX to set a speed of the motor. I set up the speed and position references. But the Jaguar would not do anything (RobotDrive works fine). I did not set PID and am wondering if this could be the problem. Thanks in advance for your help. |
|
#2
|
||||
|
||||
|
Re: CAN setX() not working
yes, that would be a problem. Here's the code I used:
Code:
jag3 = new CANJaguar(3,CANJaguar.ControlMode.kSpeed);
jag3.setPID(.01, .01, 0);
jag3.setSpeedReference(CANJaguar.SpeedReference.kQuadEncoder);
jag3.configEncoderCodesPerRev(100);
jag3.enableControl();
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|