Naoyuki SAITO / Mbed 2 deprecated moter_titech_ns

Dependencies:   mbed-rtos mbed

Fork of moter_titech by y w

Revision:
11:5cd36eedffb3
Parent:
10:808032cf71b0
diff -r 808032cf71b0 -r 5cd36eedffb3 main.cpp
--- a/main.cpp	Fri Jan 24 02:34:20 2014 +0000
+++ b/main.cpp	Fri Jan 24 03:53:36 2014 +0000
@@ -108,7 +108,7 @@
 }
  
  void DOU1(void const *argument) {
-  Dou1.period(0.00001);
+  Dou1.period(0.00001f);
   Dou1.pulsewidth(0.000005f);
   int i=1;
   int d=1;
@@ -116,7 +116,7 @@
      if(dou1==1){
         switch(d){
             case 1:
-            Dou1.pulsewidth(0.000004f);
+            Dou1.pulsewidth(0.000006f);
             i=i++;
             wait(0.02);
             if(i>50)d=2;
@@ -145,7 +145,7 @@
      if(dou2==1){
         switch(q){
             case 1:
-            Dou2.pulsewidth(0.000004f);
+            Dou2.pulsewidth(0.000006f);
             j=j++;
             wait(0.02);
             if(j>50)q=2;
@@ -170,7 +170,7 @@
     Thread t2(ZENGO1);
     Thread t3(ZENGO2);
     Thread t4(DOU1);
-    Thread t5(DOU2);
+//    Thread t5(DOU2);
 
     pc.printf("start\r\n");