|
|
@ -27,6 +27,9 @@ protected: |
|
|
|
// get a reading, distance returned in reading_cm
|
|
|
|
// get a reading, distance returned in reading_cm
|
|
|
|
bool get_reading(uint16_t &reading_cm) override; |
|
|
|
bool get_reading(uint16_t &reading_cm) override; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// maximum time between readings before we change state to NoData:
|
|
|
|
|
|
|
|
uint16_t read_timeout_ms() const override { return 500; } |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|
// function codes
|
|
|
|
// function codes
|
|
|
|