View Single Post
  #1   Spotlight this post!  
Unread 15-01-2010, 10:59
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Grabbing Output from Robot Sensors

Quote:
Originally Posted by 1951-44U View Post
Well, we have those loops, but we have no others. We have Feed()'s within those loops, too.

Does the line "GetWatchdog().SetExpiration(0.1);" in the initializers do anything? Can I delete this?
That sets the expiration time of the watchdog timer. That means that it must be fed within 0.1 second (100 milliseconds) before it times out and the motors stop with the "Watchdog not fed" error message.

If there are any Wait() calls in your loop that are greater than 100ms, the the watchtog will also time out.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote