mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Changes DigitalSource API for HAL ease of use (#144)
This commit is contained in:
committed by
Peter Johnson
parent
7597e3c274
commit
4a3e3a6324
@@ -98,6 +98,7 @@ class Encoder : public SensorBase,
|
||||
|
||||
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;
|
||||
HalEncoderHandle m_encoder = HAL_INVALID_HANDLE;
|
||||
|
||||
std::shared_ptr<ITable> m_table;
|
||||
|
||||
Reference in New Issue
Block a user