B15 Motor Test

Dependencies:   mbed

Fork of _B15_T4_Motor by BULME_BERTL15

Files at this revision

API Documentation at this revision

Comitter:
Enenkel
Date:
Fri Jun 19 06:52:24 2015 +0000
Parent:
1:0f7c167a4f97
Commit message:
B15 T4 MOTOR TEST

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 0f7c167a4f97 -r 416e90645a22 main.cpp
--- a/main.cpp	Sun May 31 16:35:31 2015 +0000
+++ b/main.cpp	Fri Jun 19 06:52:24 2015 +0000
@@ -28,9 +28,11 @@
     Von=1;                       // Motor Spannung EIN
     MotorR_EN=MotorL_EN=1;       // Beide Motoren ENABLE
     while(1) {                   // Anfang der Schleife (ohne Abbruch)   
-        MotorR_FORWARD = MotorL_FORWARD = 1;  // Beide Motoren vorwärts EIN
+        MotorR_FORWARD = 1;      // RECHTER Motor vorwärts EIN 
+        MotorL_FORWARD = 1;      // LINKER Motoren vorwärts EIN
         wait (1.0);              // warte 1 Sekunde  
-        MotorR_FORWARD = MotorL_FORWARD = 0;  // Motoren AUS  
+        MotorR_FORWARD = 0;      // RECHTER Motor STOP
+        MotorL_FORWARD = 0;      // LINKER Motoren STOP  
         wait (1.0);              // warte 1 Sekunde 
     }                            // Springe zum Anfang der Schleife 
 }                                // Ende des Hauptprogrammes