|
Re: New Driver Station information
Quote:
Originally Posted by Greg McKaskle
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
|