Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Sending speed commands to CANJaguars (http://www.chiefdelphi.com/forums/showthread.php?t=131286)

Poseidon5817 29-11-2014 21:42

Sending speed commands to CANJaguars
 
How do I go about sending a command to a CANJaguar instance? Is there a way that you could send a straight RPM using CANJaguar.something(500)? I've already done
Code:

CANJaguar.setSpeedReferece(...kEncoder)
and
Code:

CANJaguar.changeControlMode(...kSpeed)
Also, how do you configure the amount of pulses per encoder revolution and the distance per pulse for the encoder connected to the Jaguar?

orangelight 29-11-2014 23:42

Re: Sending speed commands to CANJaguars
 
Look at our code from 2012
You should be able to do this to set the encoder pulse
Code:

CANJaguar.configEncoderCodesPerRev(360);

Poseidon5817 30-11-2014 02:05

Re: Sending speed commands to CANJaguars
 
Thanks, that's perfect.


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

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