[sim] Allow creating a PWMSim object from a PWMMotorController (#4039)

This commit is contained in:
Dustin Spicuzza
2022-05-06 11:44:59 -04:00
committed by GitHub
parent dc6f641fd2
commit 99424ad562
3 changed files with 22 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
namespace frc {
class PWM;
class PWMMotorController;
namespace sim {
@@ -26,6 +27,13 @@ class PWMSim {
*/
explicit PWMSim(const PWM& pwm);
/**
* Constructs from a PWMMotorController object.
*
* @param motorctrl PWMMotorController to simulate
*/
explicit PWMSim(const PWMMotorController& motorctrl);
/**
* Constructs from a PWM channel number.
*