Class Mechanism.FollowerConfig

java.lang.Object
frc.spectrumLib.mechanism.Mechanism.FollowerConfig
Enclosing class:
Mechanism

public static class Mechanism.FollowerConfig extends Object
A TalonFX follower that mirrors the leader's output. Set opposeLeader to MotorAlignmentValue.Opposed when the motor is mounted in the opposite direction and has to spin in reverse to move the mechanism the same way.
  • Constructor Details

    • FollowerConfig

      public FollowerConfig(String name, int id, String canbus, MotorAlignmentValue opposeLeader)
      Parameters:
      canbus - CAN bus name, such as "rio" or "canivore"
  • Method Details

    • getName

      public String getName()
      Name for this follower, used in its alerts and log keys.
    • getId

      public CanDeviceId getId()
    • isAttached

      public boolean isAttached()
    • getOpposeLeader

      public MotorAlignmentValue getOpposeLeader()
      Alignment of the follower relative to the leader. Use MotorAlignmentValue.Opposed when the follower is physically mounted in the opposite direction.