#include <kern/global.h>
Functions | |
void | irdist_set_calibration (uint16_t m, uint16_t c) |
uint16_t | irdist_read (int port) |
uint16_t irdist_read | ( | int | port | ) |
Read a Sharp IR distance sensor connected to an analog port and return the distance in cm
port | port to read from |
void irdist_set_calibration | ( | uint16_t | m, | |
uint16_t | c | |||
) |
Set calibration values for IR distance sensors. Calibration values can be calculated using the irdistcal program.
m | calibration gradient | |
c | calibration offset |