blob: cb3cc5b3857320f7dbcec9b6aa7bd1492eede70f [file] [log] [blame]
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -08001/*----------------------------------------------------------------------------*/
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
James Kuszmaul4b81d302019-12-14 20:53:14 -08008#include "frc/SpeedController.h"
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -08009
James Kuszmaul4b81d302019-12-14 20:53:14 -080010#include <frc/RobotController.h>
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -080011
James Kuszmaul4b81d302019-12-14 20:53:14 -080012using namespace frc;
13
14void SpeedController::SetVoltage(units::volt_t output) {
15 Set(output / units::volt_t(RobotController::GetInputVoltage()));
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -080016}