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.
Fork of Versuch20 by
Diff: main.cpp
- Revision:
 - 2:efa9a78591da
 - Parent:
 - 1:6ef5bc60e69c
 - Child:
 - 3:f44ef28cfb2d
 
--- a/main.cpp	Mon Apr 23 16:18:41 2018 +0000
+++ b/main.cpp	Wed Apr 25 11:16:16 2018 +0000
@@ -9,10 +9,13 @@
 #include "LHR.h"
 #include "Motion.h"
 
+//------------------------------------------------------------------------------
+
 //Motorbefehle von LHR
 int D, sl, sr;
 Timer timey;
 
+//------------------------------------------------------------------------------
 
 AnalogIn sensorValue1(PC_2);        // Frontsensor mitte
 AnalogIn sensorValue2(PC_3);        // Frontsensor links
@@ -30,12 +33,13 @@
 DigitalIn motorDriverFault(PB_14);
 DigitalIn motorDriverWarning(PB_15);
 
-PwmOut pwmLeft(PA_8);
-PwmOut pwmRight(PA_9);
+PwmOut pwmRight(PA_8);
+PwmOut pwmLeft(PA_9);
 
-EncoderCounter counterRight(PB_6, PB_7);
-EncoderCounter counterLeft(PA_6, PC_7);
+EncoderCounter counterLeft(PB_6, PB_7);
+EncoderCounter counterRight(PA_6, PC_7);
 
+//------------------------------------------------------------------------------
 
 Controller controller(pwmLeft, pwmRight, counterLeft, counterRight);
 
@@ -49,6 +53,7 @@
 // Helligkeitssensor aufrufen
 IRSensorZ Sensor6(sensorValue6);
 
+//------------------------------------------------------------------------------
 
 int main()
 {
@@ -70,6 +75,7 @@
             //sr = spurhaltung.speedl();
             motion.switching(D);
             
+            
         }
     }
 }
\ No newline at end of file
    