Macros for the ultrasonic sensor. More...
Macros | |
#define | ULTRASONIC_PULSE_TO_CM(x) (x / 29. / 2.) |
#define | ULTRASONIC_PULSE_TO_IN(x) (x / 74. / 2.) |
Macros for the ultrasonic sensor.
#define ULTRASONIC_PULSE_TO_CM | ( | x | ) | (x / 29. / 2.) |
[in] | x | Pulse width in us. Constants from datasheet. |
#define ULTRASONIC_PULSE_TO_IN | ( | x | ) | (x / 74. / 2.) |
[in] | x | Pulse width in us. Constants from datasheet. |