diff --git a/wpilibc/src/main/native/cpp/Joystick.cpp b/wpilibc/src/main/native/cpp/Joystick.cpp index 8a378c59ee..851e25c127 100644 --- a/wpilibc/src/main/native/cpp/Joystick.cpp +++ b/wpilibc/src/main/native/cpp/Joystick.cpp @@ -122,16 +122,6 @@ double Joystick::GetMagnitude() const { return std::hypot(GetX(), GetY()); } -double Joystick::GetDirectionRadians() const { - return std::atan2(GetX(), -GetY()); -} - -double Joystick::GetDirectionDegrees() const { - WPI_IGNORE_DEPRECATED - return (180 / std::numbers::pi) * GetDirectionRadians(); - WPI_UNIGNORE_DEPRECATED -} - units::radian_t Joystick::GetDirection() const { return units::math::atan2(units::dimensionless::scalar_t{GetX()}, units::dimensionless::scalar_t{-GetY()}); diff --git a/wpilibc/src/main/native/include/frc/Joystick.h b/wpilibc/src/main/native/include/frc/Joystick.h index d9c4144119..0f8e101491 100644 --- a/wpilibc/src/main/native/include/frc/Joystick.h +++ b/wpilibc/src/main/native/include/frc/Joystick.h @@ -251,26 +251,6 @@ class Joystick : public GenericHID { */ double GetMagnitude() const; - /** - * Get the direction of the vector formed by the joystick and its origin - * in radians. - * - * @return The direction of the vector in radians - * @deprecated Use GetDirection() instead. - */ - [[deprecated("Use GetDirection() instead.")]] - double GetDirectionRadians() const; - - /** - * Get the direction of the vector formed by the joystick and its origin - * in degrees. - * - * @return The direction of the vector in degrees - * @deprecated Use GetDirection() instead. - */ - [[deprecated("Use GetDirection() instead.")]] - double GetDirectionDegrees() const; - /** * Get the direction of the vector formed by the joystick and its origin. *