![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
lknds
Dependencies: mbed TrapezoidControl Pulse QEI
Diff: Input/Ultrasonic/USS/USS.h
- Revision:
- 25:d367d1e7a153
- Parent:
- 24:370616a56815
--- a/Input/Ultrasonic/USS/USS.h Wed Sep 18 02:03:56 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -#ifndef USS_H_ -#define USS_H_ - -#include "mbed.h" -#include "LM61CIZ.h" -#include "Pulse.h" - -class USS { - public: - USS(PinName echoPin, PinName trigPin, PinName tempPin); - double ReadDis(void); - double GetDis(void); - private: - float distance_; - PulseInOut echo_; - PulseInOut trig_; - LM61CIZ temp_; -}; - -#endif //ULTRASONI_H_ \ No newline at end of file