[wpilib] Rename MotorType constants to all caps

This commit is contained in:
Peter Johnson
2026-03-17 16:40:35 -07:00
parent 6559d78658
commit 7815248d62
4 changed files with 31 additions and 29 deletions

View File

@@ -22,21 +22,21 @@ class RobotDriveBase : public MotorSafety {
/**
* The location of a motor on the robot for the purpose of driving.
*/
enum MotorType {
enum class MotorType {
/// Front-left motor.
kFrontLeft = 0,
FRONT_LEFT = 0,
/// Front-right motor.
kFrontRight = 1,
FRONT_RIGHT = 1,
/// Rear-left motor.
kRearLeft = 2,
REAR_LEFT = 2,
/// Rear-right motor.
kRearRight = 3,
REAR_RIGHT = 3,
/// Left motor.
kLeft = 0,
LEFT = 0,
/// Right motor.
kRight = 1,
RIGHT = 1,
/// Back motor.
kBack = 2
BACK = 2
};
RobotDriveBase();