![](/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
Diff: DistanceSensor.h
- Revision:
- 1:8db052ec94f1
- Parent:
- 0:d03df6dd14d6
diff -r d03df6dd14d6 -r 8db052ec94f1 DistanceSensor.h --- a/DistanceSensor.h Wed Apr 06 23:02:33 2016 +0000 +++ b/DistanceSensor.h Thu Apr 07 23:06:50 2016 +0000 @@ -6,11 +6,12 @@ class DistanceSensor { public: - DistanceSensor(PinName ai); - float getDistance(); + DistanceSensor(PinName ai, int profNum); + double getDistance(); private: AnalogIn voltage; + int prof; }; #endif \ No newline at end of file