blob: e0b0cb2f71c7435d20cf050b4b050441ef081a93 [file] [log] [blame]
Austin Schuh812d0d12021-11-04 20:16:48 -07001// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
Brian Silverman8fce7482020-01-05 13:18:21 -08004
5#include "frc/SpeedController.h"
6
7#include <frc/RobotController.h>
8
9using namespace frc;
10
11void SpeedController::SetVoltage(units::volt_t output) {
12 Set(output / units::volt_t(RobotController::GetInputVoltage()));
13}