mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilibc] Use GetBatteryVoltage() in MotorController::SetVoltage
This avoids having to cast to units::voltage_t
This commit is contained in:
committed by
Peter Johnson
parent
d9f9cd1140
commit
2fa52007af
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user