Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) 2019 FIRST. All Rights Reserved. */ |
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 4 | /* must be accompanied by the FIRST BSD license file in the root directory of */ |
| 5 | /* the project. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | #include "frc/SpeedController.h" |
| 9 | |
| 10 | #include <frc/RobotController.h> |
| 11 | |
| 12 | using namespace frc; |
| 13 | |
| 14 | void SpeedController::SetVoltage(units::volt_t output) { |
| 15 | Set(output / units::volt_t(RobotController::GetInputVoltage())); |
| 16 | } |