Go to Post It'll take some engineering, but you would have yourself something revoloutionary. Keep innovating! - Greg Perkins [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-12-2014, 10:51 AM
petet4 petet4 is offline
Registered User
AKA: Pete Thomas
FRC #0706 (Cyberhawks)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Waukesha, WI.
Posts: 18
petet4 is on a distinguished road
Serial CAN Help

Hello to all, a search of CD asked similar questions related to the SerailCAN communications but I was unable to find an answer.

The problem is when trying to use more than one Black jaguar on the CAN bus.

Our setup is serial to Black Jag (node 2) followed by 2 more Black jags ( nodes 3&4). The Serial cable is built correctly with a 100ohm term resistor on the the CAN bus lines pin 3 & 4. The end of the CAN bus (last jag in the chain) is also terminated on the 4pin (pin 2&3) per the Black CAN documentation Jaguar_GettingStartedGuide.

Using the BDC-comm utility I can see all 3 devices from the pull down menu and temperature data is updating for all devices. This should confirm that all wiring is correct.

When connected to the cRio serial port we are only able to control the first device. cRio imaging tool confirms that we are using the CAN serial bridge, also since we can control one device that would also imply that the software communications is setup properly.

But when the cRio is enabled only one jag (one connected to serial port) will show a solid light while the other 2 on the can bus are blinking. The C++ code is the same for all 3 devices yet unable to get the other 2 jag's to enable.

Are we missing some setup in C++ when using multiple CAN devices? Is there a configuration that is missing?

Any help would be appreciated, if cannot get to work will have to switch back to Talons. Would be nice to read the current back as this is something we were planing to use in our code.

Thanks,
-pete
Reply With Quote
  #2   Spotlight this post!  
Unread 03-12-2014, 12:49 PM
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Serial CAN Help

I assume that using BDCComm you can control all motors independently. You can try this even on the robot by replacing cRIO with PC.

I would double check how you are creating the Jaguar Speed Controllers. Make sure they are declared as CanJaguar. Perhaps you could post the code here?
Reply With Quote
Reply


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 09:19 AM.

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