Advertisement
shimniok

IR Ranger Fit

Aug 17th, 2012
1,938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.09 KB | None | 0 0
  1. #define A 3.8631e8
  2. #define B -2.438
  3. float adcToDist(int adc) {
  4.   return A*powf(adc, B);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement