pmod_maxsonar (grisp v2.9.0)

View Source

Pmod MAXSONAR module.

The Pmod MAXSONAR cyclically sends measurements via the UART interface. This module converts and stores the latest measurement.

Start the driver with

1> grisp:add_device(uart, pmod_maxsonar).

Summary

Functions

Get the latest measured distance in inches.

Functions

get()

-spec get() -> integer().

Get the latest measured distance in inches.