CTRE Phoenix C++ 5.35.1
Loading...
Searching...
No Matches
ctre::phoenix::motorcontrol::IFollower Class Referenceabstract

Interface for followers. More...

#include <ctre/phoenix/motorcontrol/IFollower.h>

Inheritance diagram for ctre::phoenix::motorcontrol::IFollower:
ctre::phoenix::motorcontrol::IMotorController ctre::phoenix::motorcontrol::IMotorControllerEnhanced ctre::phoenix::motorcontrol::can::BaseMotorController ctre::phoenix::motorcontrol::can::VictorSPX ctre::phoenix::motorcontrol::can::BaseTalon ctre::phoenix::motorcontrol::can::BaseTalon ctre::phoenix::motorcontrol::can::VictorSPX ctre::phoenix::motorcontrol::can::WPI_BaseMotorController ctre::phoenix::motorcontrol::can::WPI_VictorSPX ctre::phoenix::motorcontrol::can::TalonSRX ctre::phoenix::motorcontrol::can::TalonSRX ctre::phoenix::motorcontrol::can::WPI_VictorSPX ctre::phoenix::motorcontrol::can::WPI_TalonSRX ctre::phoenix::motorcontrol::can::WPI_VictorSPX ctre::phoenix::motorcontrol::can::WPI_TalonSRX ctre::phoenix::motorcontrol::can::WPI_TalonSRX

Public Member Functions

virtual ~IFollower ()
 
virtual void Follow (ctre::phoenix::motorcontrol::IMotorController &masterToFollow)=0
 Set the control mode and output value so that this motor controller will follow another motor controller.
 
virtual void ValueUpdated ()=0
 When master makes a device, this routine is called to signal the update.
 

Detailed Description

Interface for followers.

Constructor & Destructor Documentation

◆ ~IFollower()

virtual ctre::phoenix::motorcontrol::IFollower::~IFollower ( )
inlinevirtual

Member Function Documentation

◆ Follow()

virtual void ctre::phoenix::motorcontrol::IFollower::Follow ( ctre::phoenix::motorcontrol::IMotorController & masterToFollow)
pure virtual

Set the control mode and output value so that this motor controller will follow another motor controller.

Currently supports following Victor SPX, Talon SRX, and Talon FX.

Parameters
masterToFollowMotor Controller object to follow.

Implemented in ctre::phoenix::motorcontrol::can::BaseMotorController.

◆ ValueUpdated()

virtual void ctre::phoenix::motorcontrol::IFollower::ValueUpdated ( )
pure virtual

When master makes a device, this routine is called to signal the update.

Implemented in ctre::phoenix::motorcontrol::can::BaseMotorController.


The documentation for this class was generated from the following file: