![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Basic library for Pololu's Sharp GP2Y0A51SK0F
Dependencies: mbed
Dependents: GrabTest R5 2016 Robotics Team 1
Revision 2:6ebd72287e97, committed 2016-04-08
- Comitter:
- j_j205
- Date:
- Fri Apr 08 01:35:57 2016 +0000
- Parent:
- 1:8db052ec94f1
- Commit message:
- latest localization
Changed in this revision
DistanceSensor_Test.cpp | Show diff for this revision Revisions of this file |
--- a/DistanceSensor_Test.cpp Thu Apr 07 23:06:50 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#include "DistanceSensor.h" -#include "mbed.h" - -int main() -{ - Serial pc(USBTX, USBRX); - DistanceSensor ds(PTB0,1); - - while(true) - { - pc.printf(" \rDistance = %f cm", ds.getDistance()); - wait(1); - } - - return 0; -} \ No newline at end of file