blob: 94f760284ccbf33cb11ca1c132f69f2c88eb5c8c [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001/*----------------------------------------------------------------------------*/
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
11class MotorSafety {
12public:
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