View Single Post
  #2   Spotlight this post!  
Unread 23-03-2010, 16:48
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Reset user program button

Well most of the background tasks are persistent ones (frcnetworkcommunication, frcvision, pcvideoserver, CAN bridge), and they would never have a reason to terminate other than a crash. For the rest of it a script can be setup that iterates through the task listing and kills the unknown or usercode instance specific tasks.

Also on our bot we generally use netconsole for a reboot since it means we don't have to wait for the camera to boot (CAN code seems to die if the camera isn't completely booted).
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote