[wpilib] DutyCycleEncoderSim: Add channel number constructor (#5118)

This commit is contained in:
Ryan Blue
2023-02-20 02:12:48 -05:00
committed by GitHub
parent 3e9788cdff
commit de65a135c3
3 changed files with 23 additions and 6 deletions

View File

@@ -26,7 +26,14 @@ class DutyCycleEncoderSim {
explicit DutyCycleEncoderSim(const DutyCycleEncoder& encoder);
/**
* Set the position tin turns.
* Constructs from a digital input channel.
*
* @param channel digital input channel
*/
explicit DutyCycleEncoderSim(int channel);
/**
* Set the position in turns.
*
* @param turns The position.
*/