Program that execute AEB system
Dependencies: AEB Ultrasonic Controller_Master mbed
Revision 7:6547a25e1867, committed 2016-07-11
- Comitter:
- AndreaAndreoli
- Date:
- Mon Jul 11 10:17:50 2016 +0000
- Parent:
- 6:d0717be58ca3
- Commit message:
- bug fixed;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r d0717be58ca3 -r 6547a25e1867 main.cpp --- a/main.cpp Sun Jul 10 13:18:57 2016 +0000 +++ b/main.cpp Mon Jul 11 10:17:50 2016 +0000 @@ -38,7 +38,6 @@ DigitalIn qa(D4); float V = 29; // Set the vehicle speed here Ticker t; -Timer tim; Serial pc(USBTX, USBRX); // tx, rx Serial myrio(D1,D0 ); // tx, rx @@ -93,7 +92,7 @@ if(myrio.readable()) { myrio.scanf("%s",str); var = atoi(str); - pc.printf("%d \n",var); + //pc.printf("%d \n",var); } V = var; Controller_Master_U_V = V; @@ -108,7 +107,7 @@ led_R = !Controller_Master_Y_LED_RED; led_G = !Controller_Master_Y_LED_GREEN; pc.printf("distance: %f \n", Controller_Master_U_D_M); - //pc.printf("speed: %f \n", Controller_Master_U_V); + pc.printf("speed: %f \n", Controller_Master_U_V); /* pc.printf("blue: %d \n", Controller_Master_Y_LED_BLUE); // Call read_cm() to get the distance in cm pc.printf("red: %d \n", Controller_Master_Y_LED_RED); pc.printf("master: %d \n", Controller_Master_Y_MASTER);