We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35dd86 commit 6e3e684Copy full SHA for 6e3e684
src/drivers/distance_sensor/srf05/SRF05.cpp
@@ -152,7 +152,7 @@ SRF05::measure()
152
const hrt_abstime timestamp_sample = hrt_absolute_time();
153
const hrt_abstime dt = _falling_edge_time - _rising_edge_time;
154
155
- const float current_distance = dt * 343.0f / 10e6f / 2.0f;
+ const float current_distance = dt * 343.0f / 1e6f / 2.0f;
156
157
if (dt > HXSRX0X_CONVERSION_TIMEOUT) {
158
perf_count(_comms_errors);
0 commit comments