Previously, in MotorControllerGroups, calling stopMotor() or disable() stopped all the motors in that group. Now that this class is marked for deprecation, it recommends to use PWMMotorController.addFollower() to create groups. This functionality is not consistent in the PWMMotorController class, where calling either of these methods only applies to that motor, and not its followers. The JavaDocs also specify that the follower motor will follow the outputs of the leader. Thus, it is logical that calling either of these methods should also call them for all of that motor's followers.
This adds that functionality in both Java and C++.
Previously, in
MotorControllerGroup
s, callingstopMotor()
ordisable()
stopped all the motors in that group. Now that this class is marked for deprecation, it recommends to usePWMMotorController.addFollower()
to create groups. This functionality is not consistent in the PWMMotorController class, where calling either of these methods only applies to that motor, and not its followers. The JavaDocs also specify that the follower motor will follow the outputs of the leader. Thus, it is logical that calling either of these methods should also call them for all of that motor's followers.This adds that functionality in both Java and C++.