| aPPRK_RangeCM | Index |
Definition:
Parameters:
| i | - | The index of the ranger to be read. |
Return Value:
Description:
This routine takes an A2D reading from a ranger input and converts it to centimeters. The conversion is an approximation so the units may not be precise centimeters. The conversion function linearizes the output of the ranger which provides more intuitive values for the user.
Example:
#include <aPPRK.tea>
int main()
{
int r;
r = aPPRK_RangeCM(1);
return r;
}
This would return the reading in centimeters from the ranger with A2D index 1.
Related: