mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
[wpilib] Update MotorControllerGroup deprecation message (#6171)
The current message could be read as encouraging the use of CAN motor controllers. This tries to make it more clear.
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -12,8 +12,8 @@ import java.util.Arrays;
|
||||
/**
|
||||
* 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")
|
||||
|
||||
Reference in New Issue
Block a user