Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   CAN setX() not working (http://www.chiefdelphi.com/forums/showthread.php?t=89687)

vinnie 20-01-2011 19:58

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.

JewishDan18 25-01-2011 00:11

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();



All times are GMT -5. The time now is 22:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi