A program that demonstrates the development of library, using as an example an ultrasonic distance sensor HC-SR04.
Dependencies: mbed HCSR04 AutomationElements
The purpose of this program is to encourage students to develope their own classes. Instructions how to follow the development of this program and class HCSR04 for ultrasonic distance measurement are given here.
Revisions of main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
6:bca0839e8295 | 2016-12-10 | Filtering with Ticker object corrected. | File Diff Annotate |
5:889566fb3a85 | 2015-12-07 | Example of filtering the distance with PT1 filter. | File Diff Annotate |
4:052ac3f5c938 | 2015-12-07 | PT1 filter added | File Diff Annotate |
3:3297ea6e3ae1 | 2015-12-07 | Setting and displaying sensor ranges added. Displaying the distance in mm. | File Diff Annotate |
2:f86b1e3609b3 | 2015-12-05 | Library HCSR04 created. | File Diff Annotate |
1:22043b67c31c | 2015-12-04 | A class HCSR04 implemented within the main.cpp file. | File Diff Annotate |
0:ebee649c5b1b | 2015-12-03 | Revision 1: Solution in the main program, without class. | File Diff Annotate |