Go to Post I bet Andy Baker would totally own JVN in a 1v1 dodgeball fight. - Greg Marra [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 18-02-2011, 17:47
JMillar's Avatar
JMillar JMillar is offline
Registered User
FRC #2172 (Streetleagle)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2007
Location: Lakewood, Ohio
Posts: 7
JMillar is an unknown quantity at this point
CAN Jaguar Help

We are using a black jag to serial connection, and that is working. We have updated all of the firmware on the jaguars, firmware 92, and have updated the firmware on the crio, to version 28 and have set it to use the black jaguar as the start of the CAN. Yet no matter how we have done we cannot get the motors to run. On the driver station we get the error 44087- in set transaction() in C:/windriver/workspace/WPILIB/CANJaguar.cpp, which we found to be dataBuffer[0] = reference. Anyone know what the problem is, or do you have any code for CAN that we could see? Thanks!

Here is a fraction of our code which we are using for the CAN Jaguars:
Code:
//We defined:

CANJaguar *jag;

//Then in OperatorControl, we had:

jag = new CANJaguar(3, CANJaguar::kSpeed);
jag->ConfigEncoderCodesPerRev(360);
jag->ConfigMaxOutputVoltage(6.0);
jag->ConfigNeutralMode(CANJaguar::kNeutralMode_Brake);
jag->SetSpeedReference(CANJaguar::kSpeedRef_None);
jag->EnableControl();

//And in the IsOperatorControl() loop, we have:

jag->Set(0.5);
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2011, 13:15
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: CAN Jaguar Help

Hi Gang,

This error shows up if you have all of the Jaguars at the same CAN ID or you don't have the terminators installed properly. If you used the approach that puts the resistor in the RJ-12, then make sure that your resistor legs haven't shorted out because they've been plugged and unplugged too many times.

HTH,

Mike
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2011, 14:29
JMillar's Avatar
JMillar JMillar is offline
Registered User
FRC #2172 (Streetleagle)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2007
Location: Lakewood, Ohio
Posts: 7
JMillar is an unknown quantity at this point
Re: CAN Jaguar Help

We were able to fix the problem, turns out that we did not have the terminator on the black jaguar. Thanks for your help!

Last edited by JMillar : 19-02-2011 at 23:10.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2011, 00:43
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,031
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: CAN Jaguar Help

We seem to be having the same problem -- but it only seems to happen occasionally, and usually when the robot is actually doing something.

We have a terminator, and we even replaced the one that we have. We also tried replacing some of our CAN cables, but we still get the error on occasion. Any thoughts why?
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2011, 07:11
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: CAN Jaguar Help

Quote:
Originally Posted by virtuald View Post
We seem to be having the same problem -- but it only seems to happen occasionally, and usually when the robot is actually doing something.

We have a terminator, and we even replaced the one that we have. We also tried replacing some of our CAN cables, but we still get the error on occasion. Any thoughts why?
OK, this sounds like some bad cable connections where the cable wasn't inserted all the way into the connector before it was crimped. But it could also be a termination problem or bad power wiring problem. With the robot on and the software in teleop mode (make sure the robot is up on blocks so it can't actually move) and while the operator is moving the wheels back and forth, wiggle the CAN bus cables back and forth to see if you can get the CAN bus to go off line. You'll know this because the Jaguar lights will go out.

Do the same for the power connections from the PDB to the jags. Just wiggle the wires at both ends to see if you've got an intermittent crimp or bad wago insertion. Again, you'll know because the jaguar LEDs will go out. If that still doesn't work, then assign one each of your team to watch the Jag LEDs on each of your jags as your drive around to see if any of them go out . Also, make sure that your battery voltage isn't dipping too low. If you're getting into the 6-7 volt range during the drive, then you need to recharge or get another battery.

HTH,

Mike
Reply With Quote
  #6   Spotlight this post!  
Unread 22-02-2011, 12:05
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,031
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: CAN Jaguar Help

Mike, thanks for the helpful suggestions. Due to time constraints we weren't able to try that out yesterday, but we're keeping our electronics box back as part of our withholding allowance, so we'll play with it soon and see what happens
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
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 08:44.

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