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
Fork of Roboshark_V10 by
Diff: main.cpp
- Revision:
- 16:2623db4996af
- Parent:
- 15:8e8b23d4abb4
--- a/main.cpp Tue May 15 21:50:26 2018 +0000 +++ b/main.cpp Mon May 21 20:18:21 2018 +0000 @@ -3,7 +3,7 @@ Erstellt: J. Blunschi geändert: V.Ahlers V.5.18 -main zu Robishark +main zu Roboshark */ @@ -127,8 +127,10 @@ printf("IR Front = %d\n",IrF);*/ switch(links) { - case 0: // State machine für methode Rechts - if((IrR==0) && (IrL==0) && (IrF==1) && (ende == 0)){ + case 0: + if((IrR==0) && (IrL==0) && (IrF==0) && (ende == 0)){ + caseDrive = 2; // State machine für methode Rechts + } else if((IrR==0) && (IrL==0) && (IrF==1) && (ende == 0)){ caseDrive = 2; } else if ((IrR==0) && (IrL==1) && (IrF==0) && (ende == 0)){ caseDrive = 2; @@ -174,9 +176,9 @@ } - printf("ende = %d\n",ende); + //printf("ende = %d\n",ende); - wait (0.01); + wait (0.01); //0.01