View Single Post
  #6   Spotlight this post!  
Unread 15-01-2009, 11:12
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: IsAutonomous() function

That brings up a good point. I don't see you doing anything with the watchdog. Unless you a) set the expiration to something manageable and b) feed the watchdog regularly, you have the potential of running into major problems with the cRIO resetting on you. Once you get into this scenario, it will be hard to fix depending on where the problem is because you will have a link to the driver station for just a few seconds before it resets again.

I would highly suggest adding this to your robot1 constructor
Code:
GetWatchdog().SetExpiration(100);
and this to the top every function that you're overriding from IterativeRobot (i.e. AutonomousContinuous)
Code:
GetWatchdog().Feed();
Reply With Quote