CANSparkMax_Follow

Function CANSparkMax_Follow 

Source
pub unsafe extern "C" fn CANSparkMax_Follow(
    this: *mut CANSparkMax,
    leader: *const CANSparkMax,
    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 motor controller to follow.

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