Add DutyCycleEncoder channel constructor (#2158)

Avoids extra boilerplate at user level.
This commit is contained in:
Thad House
2019-12-06 20:58:04 -08:00
committed by Peter Johnson
parent d8f11eb149
commit 67d2fed685
5 changed files with 27 additions and 10 deletions

View File

@@ -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.
*