Go to Post Once you have a lathe you'll wonder how you ever got through life without one. - Wayne TenBrink [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 20-01-2015, 20:09
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Offloading to Raspberry Pi resulting in RIO disabling

My robotics team is experiencing problems with offloading to the raspberryPi. I have made a c-sockets UDP networking program to send data from the raspberryPi to the roboRIO/cRIO. I have tested this program between the rpi and my computer, between an rpi and another rpi, and between PCs. All of these cases have worked. However, when I run the program to send data from the raspberryPi to the roboRIO or cRIO, the roboRIO/cRIO disables. Occasionally, the driverstation says "Emergency Stop."

Has anybody else experienced problems like this, or know how to fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2015, 20:16
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,183
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Offloading to Raspberry Pi resulting in RIO disabling

Is your socket blocking the main thread? You probably have to feed the watchdog.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2015, 20:42
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Re: Offloading to Raspberry Pi resulting in RIO disabling

Our robot code currently does not use a watchdog.
I tried putting in "GetWatchdog()" but eclipse says "function 'GetWatchdog' could not be resolved." Do you know what could be causing this.

Thanks for replying
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2015, 01:14
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,112
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: Offloading to Raspberry Pi resulting in RIO disabling

Quote:
Originally Posted by rawrpenguinlion View Post
...when I run the program to send data from the raspberryPi to the roboRIO or cRIO, the roboRIO/cRIO disables. Occasionally, the driverstation says "Emergency Stop."
How are you running the program?

If you're using the command line, you're probably typing its name and pressing Enter. Pressing Enter on the computer running the Driver Station disables the robot. Pressing the space bar when the robot is enabled activates the emergency stop function.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2015, 19:59
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: Offloading to Raspberry Pi resulting in RIO disabling

The disable and estop only occur when the robot is enabled. So if you get in the habit of disabling the robot before you upload new code, this won't be an issue. The other solution is to use more than one computer.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 21-01-2015, 20:13
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Re: Offloading to Raspberry Pi resulting in RIO disabling

Hi,
Thank you for the help.
It appears that the problem was that when I ran the program from shell (on the driverstation computer), I was pressing 'Enter' and the robot would disable.
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 02: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