Go to Post We'll defintely be working on both the balancing 2 wheel robot, the 6 legged robot, and the wood chassis 8 wheel drive robot ideas this fall. - MrForbes [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 25-01-2012, 01:46
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Using an encoder with a two CIM gearbox

Quote:
Originally Posted by jhersh View Post
The correct way to do this on board the Jaguar is to have the Jaguar firmware modified to include a "follow me" mode so you can implement a master and a slave Jaguar. Since that didn't happen for this year, the correct answer is to connect the encoder to the cRIO and to run the PID algorithm on the cRIO.

-Joe
Just to share our experience from last year. We ran into the same encoder splitting issue on our lift and drive train... We were not successful in splitting one encoder to two Jags but were able to get something to work that's along the lines of what you're describing as a "follow me" mode.

We set one motor controller up in a speed control mode over CAN. We then queried that "Master" controller's output voltage. Then commanded the "Slave" motor controller (in VBus mode) to the Masters' voltage.

This obviously is not ideal as the slave controller will undoubtedly lag the master, however it worked in our testing. That said, we ended up not implementing closed loop control on the Jags for other reasons, and ended up not driving the motors in this configuration during the competition season.

If you are tempted to use this method of Master/Slave control, be conscious of the traffic generated on the CAN bus, especially if you're using the RS232 bridge
__________________
http://team2168.org
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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