Go to Post Holonomic? I thought we were holographic. Or was that autonomic? I'm confused.... - Wayne C. [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 23-02-2013, 14:29
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
Question Robot running spikes on reboot?

Everytime we reboot our robot via the driverstation the robot runs several relays while it reboots. As soon as we connect back to the robot it stops them. Any one else experience this and do you know how to fix it?
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2013, 14:36
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Robot running spikes on reboot?

Theoretically, that's impossible if everything is wired and imaged correctly. Is everything else working according to plan? Also, do you have the relays plugged into the actual relay ports? If yes to both of those, you might try re-imaging your cRIO or replacing the digital sidecar. If other things aren't working, you might have a bad digital sidecar or a bad ribbon cable.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2013, 20:03
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
Re: Robot running spikes on reboot?

We believe it is setting the motor to the last state it was in while it was enabled. We are going to try setting the motor values in disabledinit and disabledperiodic to zero. We debugged that our sidecar was bad and replaced it, but the issue was still occurring. Testing shall continue tomorrow morning.
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2013, 20:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Robot running spikes on reboot?

Kevin is right -- with correctly working and properly wired hardware, Spikes cannot be active unless the robot is communicating with the Driver Station and enabled.

How do you have the control wires connected to the Spikes? Which pins on the Digital Sidecar are they going to, and in which orientation are the connectors at each end? Do the red and green Relay LEDS on the Digital Sidecar turn on while the robot is rebooting?
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2013, 21:09
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
Re: Robot running spikes on reboot?

The thing is, is that sometimes the spikes don't fire on reset, leading me to predict that the last state they're in controls their behavior on reset. I'm not with the robot at the moment but i will check the red/green leds on the sidecar tomorrow.
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
Reply With Quote
  #6   Spotlight this post!  
Unread 25-02-2013, 15:09
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
Re: Robot running spikes on reboot?

Update: It looks like the robot was setting relay values from the last recieved teleop packet. Adding code to disable all actuators in DisabledInit solved the issue.
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
Reply With Quote
  #7   Spotlight this post!  
Unread 25-02-2013, 16:11
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Robot running spikes on reboot?

Quote:
Originally Posted by Iaquinto.Joe View Post
Update: It looks like the robot was setting relay values from the last recieved teleop packet. Adding code to disable all actuators in DisabledInit solved the issue.
The only problem here is that the relay outputs and PWM outputs are supposed to be electrically buffered in the Digital Sidecar. There's a /Output_En signal that needs to be pulled low to enable any of the outputs. The cRIO image is supposed to be set up to only pull that pin low in Teleop Enabled or Autonomous Enabled. That pin shouldn't be pulled low during a reboot. So there's only a few possibilities:
1. There's a problem with the cRIO image that makes this happen. In which case there should be lots more reports of it happening.
2. You have some electrical problem that's shorting this pin/trace to ground. This could be a bad sidecar, a nicked ribbon cable, a bad NI module, a metal shaving in exactly the wrong place... A whole lot of things, but something unique to your robot.

I think it's really important to try to determine the root cause of this and not just patch around one of the symptoms. If the problem is actually #1, then FIRST needs to know so the cRIO image can be fixed to work safely. If the problem is #2, then you need to solve the actual problem, because this means your robot is capable of running relays, and perhaps motors, in Disabled mode. That's all kinds of illegal and unsafe. So please do try to figure out where the actual problem is. If it's still happening despite swapping sidecars, I'm guessing the problem is in your ribbon cable or NI module.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
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:30.

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