001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.wpilibj;
006
007/**
008 * An interface for controllers. Controllers run control loops, the most command are PID controllers
009 * and there variants, but this includes anything that is controlling an actuator in a separate
010 * thread.
011 *
012 * @deprecated None of the 2020 FRC controllers use this.
013 */
014@Deprecated(since = "2020", forRemoval = true)
015public interface Controller {
016  /** Allows the control loop to run. */
017  void enable();
018
019  /**
020   * Stops the control loop from running until explicitly re-enabled by calling {@link #enable()}.
021   */
022  void disable();
023}