Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TrapezoidControl QEI Pulse LM61CIZ
USS.h
00001 #ifndef USS_H_ 00002 #define USS_H_ 00003 00004 #include "mbed.h" 00005 #include "LM61CIZ.h" 00006 #include "Pulse.h" 00007 00008 class USS { 00009 public: 00010 USS(PinName echoPin, PinName trigPin, PinName tempPin); 00011 double ReadDis(void); 00012 double GetDis(void); 00013 private: 00014 float distance_; 00015 PulseInOut echo_; 00016 PulseInOut trig_; 00017 LM61CIZ temp_; 00018 }; 00019 00020 #endif //ULTRASONI_H_
Generated on Tue Jul 12 2022 15:21:28 by
