Go to Post Give us the e-mail address of these folks to send them a barrage of support letters for your students? - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 16-03-2012, 15:55
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
motors enabled while cRIO reboots (Safety hazard)

When we reboot our robot via the "Reboot cRIO" button on the DS, motors (relays) revert to pre-disable state.
for example, we have a compressor and a harvester that are on the relay modules, and while testing, may disable the robot while not turning them off. when we hit reboot, if the harvester was on before we disabled it, it will turn on again, and stay on until the cRIO loads (not sure if it stops at FRC_NetworkCommunication.out or FRC_UserProgram.out, but its one of the two). unplugging ethernet cable, flipping switches does nothing (as expected).
This is a real safety hazard, and we have duplicated it on two seperate robots, with different cRIOs, different Sidecars, different modules, and different cables.
The relay lights on the sidecar are on.
Any idea how to fix this?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2012, 16:01
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: motors enabled while cRIO reboots (Safety hazard)

A way to address the safety hazard is to set these to off in your Disabled method. That doesn't really solve the root problem though which FIRST has to take care of. I would file a Bug Tracker ticket for the appropriate language on the WPILib project.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2012, 21:34
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: motors enabled while cRIO reboots (Safety hazard)

What language are you using?

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 17-03-2012, 10:12
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: motors enabled while cRIO reboots (Safety hazard)

C++
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #5   Spotlight this post!  
Unread 17-03-2012, 12:57
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: motors enabled while cRIO reboots (Safety hazard)

When the cRIO reboots, all code, even FRC_Communications is halted and the OS image is reloaded. The FPGA is also reimaged. During this time, the digital sidecars enable line should prevent the relays from being on. A few times in the past, we have seen sidecars where the enable line was blown or shorted, not sure which as I'm the SW guy, and this would mean that in a disabled state, the relays were live. It seems unlikely that this would happen on two sidecars. It also seems unlikely that this is new or has been there the whole time.

Please try with a trusted sidecar, and can you give details on what the direction of the relay was?

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 17-03-2012, 13:46
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,763
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: motors enabled while cRIO reboots (Safety hazard)

byte,
You didn't wire your motors from one output of the relay with the second wire going back to the PD did you?
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-03-2012, 15:54
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: motors enabled while cRIO reboots (Safety hazard)

Quote:
Originally Posted by Greg McKaskle View Post
A few times in the past, we have seen sidecars where the enable line was blown or shorted, not sure which as I'm the SW guy, and this would mean that in a disabled state, the relays were live. It seems unlikely that this would happen on two sidecars. It also seems unlikely that this is new or has been there the whole time.
Please try with a trusted sidecar, and can you give details on what the direction of the relay was?
direction was forward, and it had a green light. I'll need to check what happens to reversed values tomorrow though. I'll also try with another spare DSC.
When not rebooting, things work normally

Quote:
Originally Posted by Al Skierkiewicz View Post
You didn't wire your motors from one output of the relay with the second wire going back to the PD did you?
No, Its wired -batt => -v spike -m => motor => +m spike +v => +batt
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #8   Spotlight this post!  
Unread 19-03-2012, 16:13
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: motors enabled while cRIO reboots (Safety hazard)

I saw at least one robot at GTREast that had a motor continue running AFTER the end of a match, while I was on the field resetting. EVEN when its associated DS had been unplugged. I didn't understand how it could even happen on an inspected robot. I told the FTA about it, and don't know what became of it.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-03-2012, 19:55
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: motors enabled while cRIO reboots (Safety hazard)

Quote:
Originally Posted by 1075guy View Post
I saw at least one robot at GTREast that had a motor continue running AFTER the end of a match, while I was on the field resetting. EVEN when its associated DS had been unplugged. I didn't understand how it could even happen on an inspected robot. I told the FTA about it, and don't know what became of it.
Hmm... not us. We've only been to Smokey Mountains. Interesting to see it happening on other robots...
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #10   Spotlight this post!  
Unread 20-03-2012, 00:16
linuxboy linuxboy is offline
Registered User
AKA: Oliver Graff
FRC #3780
Team Role: Alumni
 
Join Date: Nov 2010
Rookie Year: 2009
Location: MI, USA
Posts: 217
linuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud of
Quote:
Originally Posted by 1075guy View Post
I saw at least one robot at GTREast that had a motor continue running AFTER the end of a match, while I was on the field resetting. EVEN when its associated DS had been unplugged. I didn't understand how it could even happen on an inspected robot. I told the FTA about it, and don't know what became of it.
I've seen this with motors on speed controllers (jags I think), where a metal wharf will get in the speed controller and fry something (a FET I believe, but I can't tell you why) and permanently close the circuit that the speed controller controls. No control (ie stop) signal will change this. I'm sure one of the more experienced guys on here can speak to the exact happenings when a metal wharf gets in a speed controller.
- Oliver
Reply With Quote
  #11   Spotlight this post!  
Unread 20-03-2012, 07:48
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,763
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: motors enabled while cRIO reboots (Safety hazard)

Quote:
Originally Posted by 1075guy View Post
I didn't understand how it could even happen on an inspected robot. I told the FTA about it, and don't know what became of it.
Phil,
There is no check (and no way to check) in the inspection procedure that tests for devices that continue to run. We do check for the correct firmware versions and check that any Jag using CAN has the correct version for FRC. It is possible that either a failure had occurred in the controller or that the team swapped in a Jag in CAN mode that did not have FRC firmware. The Jag firmware insures that all output is disabled when the Crio issues that command.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #12   Spotlight this post!  
Unread 16-04-2012, 18:14
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: motors enabled while cRIO reboots (Safety hazard)

Just as an update, we put in a completely different sidecar and it stopped enabling on reboot. Apparently we have two broken sidecars...
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #13   Spotlight this post!  
Unread 17-04-2012, 08:06
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,763
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: motors enabled while cRIO reboots (Safety hazard)

byte,
Was your sidecar a 2012 version?
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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 21:20.

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