Now you can download a copy of these docs so you can use them offline! Download now
MotorSafety.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 #ifndef _MOTOR_SAFETY_
7 #define _MOTOR_SAFETY_
8 
9 #define DEFAULT_SAFETY_EXPIRATION 0.1
10 
11 class MotorSafety {
12 public:
13  virtual void SetExpiration(float timeout) = 0;
14  virtual float GetExpiration() = 0;
15  virtual bool IsAlive() = 0;
16  virtual void StopMotor() = 0;
17  virtual void SetSafetyEnabled(bool enabled) = 0;
18  virtual bool IsSafetyEnabled() = 0;
19  virtual void GetDescription(char *desc) = 0;
20 };
21 
22 #endif
23 

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6