Planet of the Timmies

Here’s the source code:

RangeFinder.cpp

Creative Commons LicenseThis work is licensed under a Creative Commons Licence.

Imperial or Metric measurements can be selected by leaving in or commenting out the #define USEINCHES line, and the extent of the bike can be changed in the BIKEWIDTH define.

In future I would like to add a button for calibrating the bike width.

UPDATE! 30/6/2008 (pm) I couldn’t find anything wrong with the measurements, but I’ve changed the code to display the currently determined range as well as the closest recent range. I’ve uploaded the new code.

UPDATE! 30/6/2008 When I posted the code, it hadn’t exactly been… tested
On my ride in today I got the impression it was giving out values that were closer than they should have been. I shall investigate this evening…


June 28th, 2008 at 11:06 pm ()