Add Encoder Index as a child (#857)

This commit is contained in:
sciencewhiz
2017-12-29 19:48:39 -08:00
committed by Peter Johnson
parent 02131639bc
commit c647a801ad
3 changed files with 4 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ class Encoder : public SensorBase, public CounterBase, public PIDSource {
std::shared_ptr<DigitalSource> m_aSource; // The A phase of the quad encoder
std::shared_ptr<DigitalSource> m_bSource; // The B phase of the quad encoder
std::unique_ptr<DigitalSource> m_indexSource = nullptr;
std::shared_ptr<DigitalSource> m_indexSource = nullptr;
HAL_EncoderHandle m_encoder = HAL_kInvalidHandle;
friend class DigitalGlitchFilter;