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_V3 by
Diff: main.cpp
- Revision:
- 7:b2a16b1cf487
- Parent:
- 6:a4b745625dbe
- Child:
- 8:d7dfee648545
--- a/main.cpp Mon Apr 30 13:22:32 2018 +0000
+++ b/main.cpp Mon Apr 30 22:11:38 2018 +0000
@@ -61,7 +61,7 @@
Regler regler(IrRight, IrLeft);
-Fahren fahren(controller, counterLeft, counterRight, SpeedR, SpeedL); //Reihenfolge!!!!!!!!!!!!!!!!!!! Ultra wichtig
+Fahren fahren(controller, counterLeft, counterRight); //Reihenfolge!!!!!!!!!!!!!!!!!!! Ultra wichtig
int main()
{
@@ -97,20 +97,22 @@
int IrL = iRSensor.codeL();
int IrF = iRSensor.codeF();
ende = iRSensor.get_ende();
- SpeedR = regler.get_SpeedR();
- SpeedL = regler.get_SpeedL();
+ //SpeedR = regler.get_SpeedR();
+ //SpeedL = regler.get_SpeedL();
- /* printf (" ende = %d\n",ende);
+ /*printf (" ende = %d\n",ende);
printf (" finish = %d\n",finish);
printf (" finishLast = %d\n",finishLast);
- printf("line = %f\n", line);
+ printf("line = %f\n", line);*/
printf ("IR Right = %d \n", IrR);
printf("IR Left = %d\n",IrL);
- printf("IR Front = %d\n",IrF);*/
+ printf("IR Front = %d\n",IrF);
+ printf("SpeedRm = %f\n",SpeedR);
+ printf("SpeedLm = %f\n",SpeedL);
if ((IrR==1) && (IrL==0) && (IrF==0) && (ende == 0)){
