Go to Post After all of this is said and done, think about how much more you all will know about the lovely state of Montana and other things not related to robotics. :) - Madison [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 28-01-2012, 15:26
Team4014 Team4014 is offline
Registered User
FRC #4014
 
Join Date: Jan 2012
Location: Earth
Posts: 15
Team4014 is an unknown quantity at this point
Exclamation Having troubles with our user watchdog.

We've been having troubles with our user watchdog not being fed, and it's making our robot lag. We want to disable the user watchdog completely, but if nobody knows how to do that, then we can just feed when needed. However, we don't know how to do either of those, so if anyone knows how to do either of those (preferably how to disable it), we would really appreciate a comment. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2012, 16:25
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Having troubles with our user watchdog.

Quote:
Originally Posted by Team4014 View Post
We've been having troubles with our user watchdog not being fed, and it's making our robot lag. We want to disable the user watchdog completely, but if nobody knows how to do that, then we can just feed when needed. However, we don't know how to do either of those, so if anyone knows how to do either of those (preferably how to disable it), we would really appreciate a comment. Thanks!
The userwatchdog is in place to show you that you may have problems in your coding. However, if you are sure that you're not creating the condition yourself, you can remove them by deleting them from the begin statement where your different items are opened.

On the other hand, if you're talking about the system watchdog, then that is telling you that you are slowing down your main loop too much and not allowing data to transfer back and forth between the driver station and the cRio. Creating loops internal to the program will create this problem quickly.

To determine if it is a code problem, or a computer problem (slow computers and slow communications can cause it too) run the default code. If you get no watch dogs using the default code, it's likely a problem with the way you programmed.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2012, 16:25
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Having troubles with our user watchdog.

I think you have the cause and effect backwards. Whatever is causing your robot to lag is causing the user watchdog to not be fed.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2012, 16:57
Team4014 Team4014 is offline
Registered User
FRC #4014
 
Join Date: Jan 2012
Location: Earth
Posts: 15
Team4014 is an unknown quantity at this point
Re: Having troubles with our user watchdog.

We have imaged the robot with the default 2012 robot image, and the watchdog is not being fed, the connection drops, and the only way to bypass this, is to directly connect to the cRIO with a crossover cable. Is the issue in the code or in the connection itself?
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2012, 17:01
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Having troubles with our user watchdog.

The default code should not be watchdogging. Are you running this through a network with a bunch of other computers on it, or is the computer you are running the code from extremely slow?
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2012, 17:46
Team4014 Team4014 is offline
Registered User
FRC #4014
 
Join Date: Jan 2012
Location: Earth
Posts: 15
Team4014 is an unknown quantity at this point
Re: Having troubles with our user watchdog.

It's actually the 2012 issued rookie laptop. It's horribly slow, and there may be some interference from the other wireless networks around it. May that be the case?
Reply With Quote
  #7   Spotlight this post!  
Unread 28-01-2012, 17:52
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Having troubles with our user watchdog.

Hold on.... are you running labview on the classmate while trying to do this? Or have you permanently deployed code to the crio and are only running the classmate in driver-station mode?
Reply With Quote
  #8   Spotlight this post!  
Unread 28-01-2012, 22:32
Team4014 Team4014 is offline
Registered User
FRC #4014
 
Join Date: Jan 2012
Location: Earth
Posts: 15
Team4014 is an unknown quantity at this point
Re: Having troubles with our user watchdog.

We have deployed code, which is the standard, 2012 kit image, and are using the driver station, via the wireless radio in the kit of parts. There are no modifications other than inverting the controls. I would think it should run just fine, but it takes a few tries, and we get a lag from control application to the robot responding that is up to 7 seconds.
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 07:26.

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