mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_RangeFinder: serial backend get_reading returns false
This commit is contained in:
parent
9ac10c3af9
commit
266a908b83
@ -29,7 +29,7 @@ protected:
|
|||||||
|
|
||||||
// it is essential that anyone relying on the base-class update to
|
// it is essential that anyone relying on the base-class update to
|
||||||
// implement this:
|
// implement this:
|
||||||
virtual bool get_reading(uint16_t &reading_cm) { return 0; }
|
virtual bool get_reading(uint16_t &reading_cm) { return false; }
|
||||||
|
|
||||||
// maximum time between readings before we change state to NoData:
|
// maximum time between readings before we change state to NoData:
|
||||||
virtual uint16_t read_timeout_ms() const { return 200; }
|
virtual uint16_t read_timeout_ms() const { return 200; }
|
||||||
|
Loading…
Reference in New Issue
Block a user