Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Mecanum Drive with Encoders? (http://www.chiefdelphi.com/forums/showthread.php?t=124874)

ShadowWing 18-01-2014 19:50

Mecanum Drive with Encoders?
 
Hi, our team is using mecanum wheels on our robot, however, we're not using RobotDrive for the 4 mecanum wheels. Instead, each wheel is hooked up to its own jaguar and we are using each jaguar independently.

With that in mind, could someone help me understand how to code encoders using this set up?

Ether 18-01-2014 20:16

Re: Mecanum Drive with Encoders?
 
Quote:

Originally Posted by ShadowWing (Post 1329023)
Hi, our team is using mecanum wheels on our robot, however, we're not using RobotDrive for the 4 mecanum wheels. Instead, each wheel is hooked up to its own jaguar and we are using each jaguar independently.

With that in mind, could someone help me understand how to code encoders using this set up?

Are you using CAN or PWM to control the Jags?

If you're using CAN, you can plug the encoders directly into the Jags. Jags have built-in firmware to decode the encoder signal and do closed-loop speed, position, voltage, or currrent control.



ShadowWing 18-01-2014 20:19

Re: Mecanum Drive with Encoders?
 
We're using PWM

Ether 18-01-2014 20:42

Re: Mecanum Drive with Encoders?
 
Quote:

Originally Posted by ShadowWing (Post 1329037)
We're using PWM

Then you'll have to connect each encoder to the DSC. WPILib file "Encoder.java" has classes for handling encoders.




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

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