Go to Post If you don't have a butt to fill that seat, you don't need it. When the butt arrives, we'll make room. - DonRotolo [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 02-03-2011, 12:41
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Limit Switches on CAN freaks out

We are using CAN to control our Jaguars this year, but we get an error every once in a while when we boot up the robot.

If the limit switch is pressed when we boot up, every now and then (it appears to be random, we can't find a pattern) NetConsole throws a bunch of errors, called "Code: -44087 ERRROR Status == -44087(0xFFFF53C9) in SetTransaction() of CANJaguar at line 392" . When this occurs, we can't drive any motors, as the entire CANBus dies.

Like I said, it doesn't occur everytime the limit switch is depressed, but if that were to happen in a match, we'd be screwed.

If don't know if it makes a difference, but we have a total of 4 limit switches. Two are on a Grey Jaguar, and when those switches are depressed, we have never had a problem. The other 2 switches are hooked up to the same Black Jaguar, and that is when the error occurs.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2011, 12:44
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,082
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: Limit Switches on CAN freaks out

Interesting. We have the same problem -- and we're using limit switches on one of our Jaguars. However, we would only lose control of our motors for maybe a half second or second or so before it would come back. Out of curiosity, why do you blame the limit switches -- does it not have this problem without them?

Someone had mentioned on a different thread that this error is due to improper termination. But ours seems to be properly terminated.
__________________
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
  #3   Spotlight this post!  
Unread 02-03-2011, 13:59
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Limit Switches on CAN freaks out

We have never encountered the problem when the limit switches weren't pressed.

And yes, we have a proper terminator on the final jag.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-03-2011, 02:12
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Limit Switches on CAN freaks out

The labview explanation for that error is that the C RIO doesn't have the files it needs (either the FRCBlackJagBridge.out or the FRC2CAN.out.. or whatever their exact names are).

I know from experience that it does give that error when it doesn't have the files, but it seems to sometimes give the error if you do have the files.

Our team is using limit switches too. One of them is almost always pressed, and even when some are pressed it doesn't give the error.

I don't recall the problem ever happening on our competition robot, with the 2CAN. Maybe I'll try moving the starter of the bus to a different black jaguar, without limit switches.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-03-2011, 13:35
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Limit Switches on CAN freaks out

We formatted our cRIO using the BlackJagBridge option on the cRIO image updater.

Do we need to FTP the files in, like last year?
Reply With Quote
  #6   Spotlight this post!  
Unread 05-03-2011, 00:30
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Limit Switches on CAN freaks out

Quote:
Originally Posted by nighterfighter View Post
We formatted our cRIO using the BlackJagBridge option on the cRIO image updater.

Do we need to FTP the files in, like last year?
I think you do; there's no harm in updating your software.

Remember to change the .ini file also.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-03-2011, 13:30
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Limit Switches on CAN freaks out

Quote:
Originally Posted by nighterfighter View Post
We formatted our cRIO using the BlackJagBridge option on the cRIO image updater.

Do we need to FTP the files in, like last year?
Quote:
Originally Posted by WizenedEE View Post
I think you do; there's no harm in updating your software.

Remember to change the .ini file also.
NO!

Please do not replace the files in your image. The files that now come in the image are far newer than any that are posted separately on the CAN Jaguar Project on FIRST Forge. Please note that those files are all marked as obsolete. The imaging tool takes care of everything you need.

The only exception is if there is a new release from CTRE for the 2CAN plugin, then you may need to update that. In that case, only replacing the file is needed. The imaging tool will still modify the ini file for you.

-Joe
Reply With Quote
  #8   Spotlight this post!  
Unread 08-03-2011, 19:28
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Limit Switches on CAN freaks out

Okay, thanks. We won't change anything.

Just hope that the CAN doesn't freak out during a match, or else we will have to do a rapid switch to PWM cables...
Reply With Quote
  #9   Spotlight this post!  
Unread 08-03-2011, 19:34
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Limit Switches on CAN freaks out

Note that there is another thread discussing an issue that may be the same thing.

http://www.chiefdelphi.com/forums/sh....php?p=1036479

Can you give any additional information about your setup, such as what language you are using, if you ever see this part way through a match or only on start-up, what CAN interface driver are you using, and any other information you think might help?

Thanks,
-Joe
Reply With Quote
  #10   Spotlight this post!  
Unread 19-03-2011, 21:56
PranavSathy PranavSathy is offline
Team Captain
AKA: Pranav Sathyanarayanan
FRC #0263 (Sachem Aftershock)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Holbrook, New York
Posts: 27
PranavSathy is an unknown quantity at this point
Re: Limit Switches on CAN freaks out

Hey, we were having getTransation() and SetTransaction() issues during our regional, our simple fix was to add a Wait(.01) before the drive was called, that fixed our errors, we added this inside our drive forward loop for autonomous, so it doesnt affect our teleop, but it seems to work like a charm, try it out and see if it works. Good luck!
__________________
This is MADNESS!

NO...
THIS...
IS....
FIRST ROBOTICS!
Reply With Quote
  #11   Spotlight this post!  
Unread 20-03-2011, 20:55
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Limit Switches on CAN freaks out

We experienced the scrolling CAN issue during one match at our regional.

Despite rebooting the cRIO 4 times, it didn't help it. After the 5th reboot we were able to drive, but there were only 4 seconds left in the match.

We decided to trash the limit switch.
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 03:09.

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