mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Add DutyCycleEncoder channel constructor (#2158)
Avoids extra boilerplate at user level.
This commit is contained in:
committed by
Peter Johnson
parent
d8f11eb149
commit
67d2fed685
@@ -32,6 +32,13 @@ class DutyCycleEncoder : public ErrorBase,
|
||||
public Sendable,
|
||||
public SendableHelper<DutyCycleEncoder> {
|
||||
public:
|
||||
/**
|
||||
* Construct a new DutyCycleEncoder on a specific channel.
|
||||
*
|
||||
* @param channel the channel to attach to
|
||||
*/
|
||||
explicit DutyCycleEncoder(int channel);
|
||||
|
||||
/**
|
||||
* Construct a new DutyCycleEncoder attached to an existing DutyCycle object.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user