CANSparkMax_Follow1

Function CANSparkMax_Follow1 

Source
pub unsafe extern "C" fn CANSparkMax_Follow1(
    this: *mut CANSparkMax,
    leader: CANSparkMax_ExternalFollower,
    deviceID: c_int,
    invert: bool,
) -> REVLibError
Expand description

Causes this controller’s output to mirror the provided leader.

Only voltage output is mirrored. Settings changed on the leader do not affect the follower.

Following anything other than a CAN SPARK MAX is not officially supported.

@param leader The type of motor controller to follow (Talon SRX, Spark Max, etc.). @param deviceID The CAN ID of the device to follow.

@param invert Set the follower to output opposite of the leader