ROBOSTEP / Mbed 2 deprecated hybrid_arm_fan

Dependencies:   mbed

Fork of hybrid_arm_main by ROBOSTEP_SHARE

Files at this revision

API Documentation at this revision

Comitter:
hare
Date:
Fri May 13 11:42:03 2016 +0000
Parent:
9:57fb67f05375
Commit message:
2016 5 13 can kairyou

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri May 13 06:53:35 2016 +0000
+++ b/main.cpp	Fri May 13 11:42:03 2016 +0000
@@ -34,11 +34,11 @@
             printf("%river=%d\n\r",river_eco_loca);
             led4=!led4;
             }
+        }
         send_data[0] = degree >> 8;
         send_data[1] = degree & 255;
         send_data[2] = pattern;
         can1.write(CANMessage(6, send_data, 3));
-        }
   //  printf("1\n\r");
     }
 int fan_power=1100;
@@ -47,7 +47,7 @@
      motor_up.period_us(20);
      motor_down.period_us(20);
     
-can_sub.attach_us(&receive,20000);
+can_sub.attach_us(&receive,10000);
 can1.frequency(1000000);
      motor_up=0;
      motor_down=0;