Go to Post If only every team had a Wildstang programmer! - Jeremiah Johnson [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 06-02-2011, 12:56
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: CAN LabVIEW help

Quote:
Originally Posted by compwiztobe View Post
Is this how you would control multiple motors going into a single gearbox? It seems it would be a good way to avoid asyncronous PID loops on the different controllers, which may result in breaking stuff (unless your integral and derivative coefficients are zero, which seems kind of stupid)...

If so, is this all embedded in Robot Drive when started with the CAN Jaguar overload of Drive Open? How does it do all the sync group assignment? I see an Update Sync Group block in Tank Drive.vi, but it somehows picks the 8th sync group (b 10000000, x 80, d 128)... Which it looks like it also feeds to the Set Output blocks, which works, I guess?

Edit: oops, didn't see new posts before posting... Question still stands though, I suppose.
Yes, the Robot Drive uses sync group #8 (decimal 128).
You'll also notice those "set output" functions happen in PARALLEL, which takes advantage of the space between when the message is sent to the Jaguar, and when the Jaguar sends a response.

Sync group is not something that is "assigned" to the motor (though I suppose this could be done through a modified motor devref). Sync group is sent with each individual message.
__________________
-- Marshal Horn
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 00:51.

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