mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Remove most 2022 deprecations (#4205)
Excludes "old" commands and SimDevice functions.
This commit is contained in:
13
wpilibc/src/main/native/cpp/motorcontrol/MotorController.cpp
Normal file
13
wpilibc/src/main/native/cpp/motorcontrol/MotorController.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
// 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.
|
||||
|
||||
#include "frc/motorcontrol/MotorController.h"
|
||||
|
||||
#include <frc/RobotController.h>
|
||||
|
||||
using namespace frc;
|
||||
|
||||
void MotorController::SetVoltage(units::volt_t output) {
|
||||
Set(output / units::volt_t(RobotController::GetInputVoltage()));
|
||||
}
|
||||
Reference in New Issue
Block a user