Package frc.spectrumLib.mechanism
Class Mechanism.FollowerConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.FollowerConfig
- Enclosing class:
- Mechanism
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 Summary
ConstructorsConstructorDescriptionFollowerConfig(String name, int id, String canbus, MotorAlignmentValue opposeLeader) -
Method Summary
-
Constructor Details
-
FollowerConfig
- Parameters:
canbus- CAN bus name, such as"rio"or"canivore"
-
-
Method Details
-
getName
Name for this follower, used in its alerts and log keys. -
getId
-
isAttached
public boolean isAttached() -
getOpposeLeader
Alignment of the follower relative to the leader. UseMotorAlignmentValue.Opposedwhen the follower is physically mounted in the opposite direction.
-