CTRE Phoenix C++ 5.33.1
IFollower.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5namespace phoenix {
6namespace motorcontrol {
7
8/* forward proto */
9class IMotorController;
10
11/**
12 * Interface for followers
13 */
14class IFollower {
15public:
16 virtual ~IFollower(){}
17 /**
18 * Set the control mode and output value so that this motor controller will
19 * follow another motor controller. Currently supports following Victor SPX,
20 * Talon SRX, and Talon FX.
21 *
22 * @param masterToFollow
23 * Motor Controller object to follow.
24 */
25 virtual void Follow(ctre::phoenix::motorcontrol::IMotorController & masterToFollow) = 0;
26 /**
27 * When master makes a device, this routine is called to signal the update.
28 */
29 virtual void ValueUpdated()= 0;
30};
31
32} // namespace motorcontrol
33} // namespace phoenix
34} // namespace ctre
Interface for followers.
Definition: IFollower.h:14
virtual ~IFollower()
Definition: IFollower.h:16
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 control...
virtual void ValueUpdated()=0
When master makes a device, this routine is called to signal the update.
Interface for motor controllers.
Definition: IMotorController.h:35
namespace ctre
Definition: paramEnum.h:5