WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
PWMMotorControllerSim.h
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 <hal/SimDevice.h>
8#include <units/length.h>
9
11
12namespace frc {
13
14class PWMMotorController;
15
16namespace sim {
17
19 public:
20 explicit PWMMotorControllerSim(const PWMMotorController& motorctrl);
21
22 explicit PWMMotorControllerSim(int channel);
23
24 double GetSpeed() const;
25
26 private:
27 hal::SimDouble m_simSpeed;
28};
29} // namespace sim
30} // namespace frc
Common base class for all PWM Motor Controllers.
Definition PWMMotorController.h:35
Definition PWMMotorControllerSim.h:18
PWMMotorControllerSim(const PWMMotorController &motorctrl)
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.h:536
Definition SystemServer.h:9