WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/SimpleCRobot.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef SIMPLE_C_ROBOT_H
00008 #define SIMPLE_C_ROBOT_H
00009 
00010 #include "RobotBase.h"
00011 
00012 void Autonomous();
00013 void OperatorControl();
00014 void Initialize();
00015 
00016 bool IsAutonomous();
00017 bool IsOperatorControl();
00018 bool IsDisabled();
00019 
00020 void SetWatchdogEnabled(bool enable);
00021 void SetWatchdogExpiration(float time);
00022 void WatchdogFeed();
00023 
00024 class SimpleCRobot: public RobotBase
00025 {
00026 public:
00027         SimpleCRobot();
00028         virtual ~SimpleCRobot() {}
00029         void StartCompetition();
00030 };
00031 
00032 #endif
 All Classes Functions Variables