WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
PWMMotorControllerSim.hpp
Go to the documentation of this file.
1// 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.
4
5#pragma once
6
7#include "wpi/hal/SimDevice.h"
9
10namespace wpi {
11
13
14namespace sim {
15
17 public:
18 explicit PWMMotorControllerSim(const PWMMotorController& motorctrl);
19
20 explicit PWMMotorControllerSim(int channel);
21
22 double GetDutyCycle() const;
23
24 private:
25 wpi::hal::SimDouble m_simDutyCycle;
26};
27} // namespace sim
28} // namespace wpi
Common base class for all PWM Motor Controllers.
Definition PWMMotorController.hpp:35
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.hpp:169
PWMMotorControllerSim(const PWMMotorController &motorctrl)
Definition CTREPCMSim.hpp:13
Definition CvSource.hpp:15