Naoyuki SAITO / Mbed 2 deprecated moter_titech_ns

Dependencies:   mbed-rtos mbed

Fork of moter_titech by y w

Files at this revision

API Documentation at this revision

Comitter:
senna0116
Date:
Fri Jan 24 02:34:20 2014 +0000
Parent:
9:56d571c1cb9f
Child:
11:5cd36eedffb3
Commit message:
moter_titech_ns;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Jan 24 02:24:50 2014 +0000
+++ b/main.cpp	Fri Jan 24 02:34:20 2014 +0000
@@ -66,7 +66,7 @@
             pc.printf("dou\r\n");
             break;
         
-        case'l':
+        case'q':
             dou2=1;
             c=0;
             pc.printf("dou_2gouki\r\n");
@@ -140,15 +140,15 @@
   Dou2.period(0.00001);
   Dou2.pulsewidth(0.000005f);
   int j=1;
-  int l=1;
+  int q=1;
  while(true){
      if(dou2==1){
-        switch(l){
+        switch(q){
             case 1:
             Dou2.pulsewidth(0.000004f);
             j=j++;
             wait(0.02);
-            if(j>50)l=2;
+            if(j>50)q=2;
             break;
             
             case 2:
@@ -156,7 +156,7 @@
             j=j--;
             wait(0.02);
             if(j<2){
-                l=1;
+                q=1;
                 dou2=0;
                 }
             break;