diff --git a/wpilibc/src/main/native/cpp/motorcontrol/MotorController.cpp b/wpilibc/src/main/native/cpp/motorcontrol/MotorController.cpp index a4a00a1ca7..9d20144ca8 100644 --- a/wpilibc/src/main/native/cpp/motorcontrol/MotorController.cpp +++ b/wpilibc/src/main/native/cpp/motorcontrol/MotorController.cpp @@ -9,5 +9,5 @@ using namespace frc; void MotorController::SetVoltage(units::volt_t output) { - Set(output / units::volt_t(RobotController::GetInputVoltage())); + Set(output / RobotController::GetBatteryVoltage()); }