8static constexpr float COUNTS_TO_DEGREES = 360.0f / 16384;
10static constexpr uint8_t MAX_CONSECUTIVE_ERRORS = 5;
Bus-independent core; the I2C and SSI hubs provide read_count(), the entities poll it.
uint8_t consecutive_errors_
virtual bool read_count(uint16_t &count)=0
The current 14-bit count from the bus; false on a bus or CRC error.
bool read_encoder()
Read a fresh angle; false on a bus or CRC error, while suspended, or when setup failed.
uint16_t get_count() const
Most recent absolute angle as a raw count in the range [0, 16383].
float get_angle_degrees() const
Most recent absolute shaft angle in degrees, in the range [0, 360).