Go to Post Let's leave the football uniforms at home though, teams. ... The last thing I want to see is Baker in Brett Favre yellow spandex... *shudder* - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > 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-02-2014, 22:23
Michelle692 Michelle692 is offline
Registered User
FRC #4904 (Bot-Provoking)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Hillsborough, CA
Posts: 32
Michelle692 is an unknown quantity at this point
Send a message via AIM to Michelle692
Exclamation cRIO not communicating with robot and robot is running random code!

We are having a strange problem and we would appreciate any thoughts!

The robot when turned on is running random parts of our robot (like turning on the compressor) before we click "enable"! We can't connect to the router, and when we do get a few seconds of connection and then it quickly disconnects.

We have tried rebooting everything, disabling adapters, and we are now trying to reimage the cRio (but we think we might be making things worse).

We are also running Python.

Thanks!

Last edited by Michelle692 : 16-02-2014 at 22:46.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2014, 22:33
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,080
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: cRIO not communicating with robot and robot is running random code!

It's most likely a wiring issue. The cRIO, if properly imaged, will not activate any outputs (except the RSL) when the robot is disabled.

What parts of your robot are moving in disabled mode?

Is everything wired correctly? Some motor controllers will output power all the time if they're wired backwards. This can damage them, so don't turn your robot on until you've given your wiring a good thorough look over.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2014, 22:50
Michelle692 Michelle692 is offline
Registered User
FRC #4904 (Bot-Provoking)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Hillsborough, CA
Posts: 32
Michelle692 is an unknown quantity at this point
Send a message via AIM to Michelle692
Re: cRIO not communicating with robot and robot is running random code!

It is turning on the compressor for random amounts of time.

We don't believe it's a wiring problem because it has been working the whole time, and we have checked it. This problem started after taking the robot to a practice field where other robots were running and we think there might have been an interference problem.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2014, 06:52
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,752
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: cRIO not communicating with robot and robot is running random code!

I'm not sure why sort of interference you mean. For wifi interference to make a permanent modification to your robot's behavior would be pretty unexpected.

As mentioned, the FPGA will not enable outputs like the spike for your compressor except when enabled. I'd start there and identify how your compressor is getting power through the spike. It is likely bypassing and it turning on and off based on the pressure switch.

Do you have any way to debug your code. Even when disabled, your code is running, reading sensors, joysticks. Use this to safely debug your robot's code.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2014, 17:47
Michelle692 Michelle692 is offline
Registered User
FRC #4904 (Bot-Provoking)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Hillsborough, CA
Posts: 32
Michelle692 is an unknown quantity at this point
Send a message via AIM to Michelle692
Re: cRIO not communicating with robot and robot is running random code!

Thank you for the reply! We ended up reimaging the cRio and that seems to have fixed problems!
__________________
FRC 692 Fembots 2005-2009
FRC 4765 PWR Up 2013
FRC 4904 Bot-Provoking 2014 - FOREVER!
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 05:24.

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