001/* Copyright (C) Cross The Road Electronics 2024 */
002package com.ctre.phoenix.motorcontrol;
003import com.ctre.phoenix.motorcontrol.IMotorController;
004
005/**
006 * Interface for followers
007 */
008public interface IFollower
009{
010        /**
011         * Set the control mode and output value so that this motor controller will
012         * follow another motor controller. Currently supports following Victor SPX,
013         * Talon SRX, and Talon FX.
014         *
015         * @param masterToFollow
016         *                                              Motor Controller object to follow.
017         */
018        void follow(IMotorController masterToFollow);
019        /**
020         * When master makes a device, this routine is called to signal the update.
021         */
022        void valueUpdated();
023}