View Single Post
  #10   Spotlight this post!  
Unread 19-11-2009, 20:43
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: New Driver Station information

Quote:
Originally Posted by Greg McKaskle View Post
Note that I don't actually have the WPILib stuff in front of me, so I think it is kill that you'd call, but I can't be sure.
yes,
GetWatchdog().Kill();

I don't know how you would AND in the state for feed (or any other function), it has no arguments. You would have to use an if.
Code:
From: Watchdog.h
bool Feed(); void Kill(); double GetTimer(); double GetExpiration(); void SetExpiration(double expiration); bool GetEnabled(); void SetEnabled(bool enabled); bool IsAlive(); bool IsSystemActive();
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote