DifferentialFollower Constructor

Follow the differential motor output of another Talon.

If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction either matches master's configured direction or opposes it based on OpposeMasterDirection. MasterID Device ID of the differential master to follow. OpposeMasterDirection Set to false for motor invert to match the master's configured Invert - which is typical when master and follower are mechanically linked and spin in the same direction. Set to true for motor invert to oppose the master's configured Invert - this is typical where the the master and follower mechanically spin in opposite directions.

Definition

Namespace: CTRE.Phoenix6.Controls
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public DifferentialFollower(
	int MasterID,
	bool OpposeMasterDirection
)

Parameters

MasterID  Int32

[Missing <param name="MasterID"/> documentation for "M:CTRE.Phoenix6.Controls.DifferentialFollower.#ctor(System.Int32,System.Boolean)"]

OpposeMasterDirection  Boolean

[Missing <param name="OpposeMasterDirection"/> documentation for "M:CTRE.Phoenix6.Controls.DifferentialFollower.#ctor(System.Int32,System.Boolean)"]

See Also