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.
Dependencies: mbed
Fork of hybrid_arm_main by
Diff: main.cpp
- Revision:
- 10:be0892c68789
- Parent:
- 9:57fb67f05375
diff -r 57fb67f05375 -r be0892c68789 main.cpp
--- 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;
