SensorRangeFinder: add distBottom function to get the vertical distance

This commit is contained in:
bresch
2020-04-03 11:01:23 +02:00
committed by Mathieu Bresciani
parent a998da1781
commit 572ad2df0a
5 changed files with 26 additions and 6 deletions
+2
View File
@@ -88,6 +88,8 @@ public:
void setRange(float rng) { _sample.rng = rng; }
float getRange() const { return _sample.rng; }
float getDistBottom() const { return _sample.rng * _cos_tilt_rng_to_earth; }
void setDataReadiness(bool is_ready) { _is_sample_ready = is_ready; }
void setValidity(bool is_valid) { _is_sample_valid = is_valid; }