2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2019-11-01 12:32:40 -04:00
|
|
|
|
2022-05-04 20:37:27 -07:00
|
|
|
#include "frc/motorcontrol/MotorController.h"
|
2019-11-01 12:32:40 -04:00
|
|
|
|
|
|
|
|
#include <frc/RobotController.h>
|
|
|
|
|
|
|
|
|
|
using namespace frc;
|
|
|
|
|
|
2022-05-04 20:37:27 -07:00
|
|
|
void MotorController::SetVoltage(units::volt_t output) {
|
2022-06-02 20:04:18 -07:00
|
|
|
Set(output / RobotController::GetBatteryVoltage());
|
2019-11-01 12:32:40 -04:00
|
|
|
}
|