001 /*----------------------------------------------------------------------------*/ 002 /* Copyright (c) FIRST 2008-2012. All Rights Reserved. */ 003 /* Open Source Software - may be modified and shared by FRC teams. The code */ 004 /* must be accompanied by the FIRST BSD license file in the root directory of */ 005 /* the project. */ 006 /*----------------------------------------------------------------------------*/ 007 008 package edu.wpi.first.wpilibj; 009 010 /** 011 * 012 * @author brad 013 */ 014 public interface MotorSafety { 015 public static final double DEFAULT_SAFETY_EXPIRATION = 0.1; 016 void setExpiration(double timeout); 017 double getExpiration(); 018 boolean isAlive(); 019 void stopMotor(); 020 void setSafetyEnabled(boolean enabled); 021 boolean isSafetyEnabled(); 022 String getDescription(); 023 }