mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Add Encoder Index as a child (#857)
This commit is contained in:
committed by
Peter Johnson
parent
02131639bc
commit
c647a801ad
@@ -540,6 +540,7 @@ public class Encoder extends SensorBase implements CounterBase, PIDSource, Senda
|
||||
}
|
||||
m_indexSource = new DigitalInput(channel);
|
||||
m_allocatedI = true;
|
||||
addChild(m_indexSource);
|
||||
setIndexSource(m_indexSource, type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user