Revision 1372
Moved prototype for linearize_distance and constants MIN_IR_ADC8 and
MAX_IR_ADC8 from rangefinder.c to rangefinder.h. Added Doxy comments for these
items. Realize that linearize_distance was probably intended to be hidden from
the average user, but doxy errors compelled me to act.
rangefinder.h | ||
---|---|---|
52 | 52 |
#define IR4 3 |
53 | 53 |
/** @brief IR Rangefinder 5 **/ |
54 | 54 |
#define IR5 2 |
55 |
/** @brief smallest meaningful rangefinder reading (logarithmic scale) **/ |
|
56 |
#define MIN_IR_ADC8 20 |
|
57 |
/** @brief largest meaningful rangefinder reading (logarithmic scale) **/ |
|
58 |
#define MAX_IR_ADC8 133 |
|
55 | 59 |
|
56 | 60 |
/** @brief Initialize the rangefinders **/ |
57 | 61 |
void range_init(void); |
58 | 62 |
/** @brief Read the distance from a rangefinder **/ |
59 | 63 |
int range_read_distance(int range_id); |
64 |
/** @brief Convert logarithmic-scale distance readings to a linear scale **/ |
|
65 |
int linearize_distance(int value); |
|
60 | 66 |
|
61 | 67 |
/** @} **/ //end addtogroup |
62 | 68 |
|
Also available in: Unified diff