Skip to content

Commit

Permalink
[wpilib] Update MotorControllerGroup deprecation message (wpilibsuite…
Browse files Browse the repository at this point in the history
…#6171)

The current message could be read as encouraging the use of CAN motor
controllers. This tries to make it more clear.
  • Loading branch information
sciencewhiz authored Jan 8, 2024
1 parent fa63fbf commit b1b03be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ namespace frc {
* Allows multiple MotorController objects to be linked together.
*/
class [[deprecated(
"Use CAN motor controller followers or "
"PWMMotorController::AddFollower()")]] MotorControllerGroup
"Use PWMMotorController::AddFollower() or if using CAN motor controllers,"
"use their method of following.")]] MotorControllerGroup
: public wpi::Sendable,
public MotorController,
public wpi::SendableHelper<MotorControllerGroup> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
/**
* Allows multiple {@link MotorController} objects to be linked together.
*
* @deprecated Use CAN motor controller followers or {@link
* PWMMotorController#addFollower(PWMMotorController)}.
* @deprecated Use {@link PWMMotorController#addFollower(PWMMotorController)} or if using CAN motor
* controllers, use their method of following.
*/
@SuppressWarnings("removal")
@Deprecated(forRemoval = true, since = "2024")
Expand Down

0 comments on commit b1b03be

Please sign in to comment.