mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Removed sync group from SpeedController interface (#51)
CANJaguar is the only motor controller using sync groups, so that feature doesn't belong in an interface used by all motor controllers. If teams want to use sync groups, they should cast to the appropriate motor controller type themselves.
This commit is contained in:
committed by
Peter Johnson
parent
e842ff7ad5
commit
9e99df1cf7
@@ -16,7 +16,7 @@
|
||||
class PWMSpeedController : public SafePWM, public SpeedController {
|
||||
public:
|
||||
virtual ~PWMSpeedController() = default;
|
||||
virtual void Set(float value, uint8_t syncGroup = 0) override;
|
||||
virtual void Set(float value) override;
|
||||
virtual float Get() const override;
|
||||
virtual void Disable() override;
|
||||
virtual void StopMotor() override;
|
||||
@@ -31,4 +31,4 @@ class PWMSpeedController : public SafePWM, public SpeedController {
|
||||
|
||||
private:
|
||||
bool m_isInverted = false;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user