Package com.ctre.phoenix.motorcontrol
Interface IFollower
- All Known Subinterfaces:
IMotorController,IMotorControllerEnhanced
- All Known Implementing Classes:
BaseMotorController,BaseTalon,TalonFX,TalonSRX,VictorSPX,WPI_TalonFX,WPI_TalonSRX,WPI_VictorSPX
public interface IFollower
Interface for followers
-
Method Summary
Modifier and TypeMethodDescriptionvoidfollow(IMotorController masterToFollow) Set the control mode and output value so that this motor controller will follow another motor controller.voidWhen master makes a device, this routine is called to signal the update.
-
Method Details
-
follow
Set the control mode and output value so that this motor controller will follow another motor controller. Currently supports following Victor SPX and Talon SRX.- Parameters:
masterToFollow- Motor Controller object to follow.
-
valueUpdated
void valueUpdated()When master makes a device, this routine is called to signal the update.
-