ultrasonic sensors for roboticized zuca project

Dependencies:   HC_SR04_Ultrasonic_Library mbed

Fork of Nucleo_UltrasonicHelloWorld by EJ Teb

Files at this revision

API Documentation at this revision

Comitter:
Abraxas3d
Date:
Fri Jul 21 17:57:01 2017 +0000
Parent:
2:1673deaeefad
Commit message:
Put in comment and question about supporting multiple ultrasonic sensors on the mBed.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1673deaeefad -r d0e45e12a03f main.cpp
--- a/main.cpp	Fri Jul 21 17:46:29 2017 +0000
+++ b/main.cpp	Fri Jul 21 17:57:01 2017 +0000
@@ -18,6 +18,11 @@
 ultrasonic mu(p30, p29, .1, 1, &dist);    //Set the trigger pin to D30 and the echo pin to D29
                                         //have updates every .1 seconds and a timeout after 1
                                         //second, and call dist when the distance changes
+                                        
+//Other sensors can be declared here. 
+//ultrasonic nu(pwhatever, pwhatever, .1, 1, &distNu);
+//Then we can have multiple independent sensors that each are interrupt driven? 
+//I'm worried that I don't understand enough about interrupts and counting that this will work.
 
 int main()
 {