mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[sim] Allow creating a PWMSim object from a PWMMotorController (#4039)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user