ErickSimoes / Ultrasonic

Minimalist library for Ultrasonic Module HC-SR04, PING))) and Seeed SEN136B5B to Arduino
MIT License
137 stars 65 forks source link

Creation of update function by a maximum distance. #51

Closed viniciusnicassio closed 5 years ago

viniciusnicassio commented 5 years ago

Summary

Updating the timeout value by the maximum distance you want to read.

Description of the Change

The timeout value is given by the maximum distance value that you want to read.

Benefits

Now you can make the maximum distance setting read directly using the desired distance value, not the time.

Possible Drawbacks

I can't imagine any

Verification Process

I did not try it, sorry :/

Applicable Issues

When you keep a close distance and you do not have to "waste time" trying to measure great distances and the ease of converting distance to time.

ErickSimoes commented 5 years ago

Many thanks for your contribution! 👍

Sorry for the delay 😞