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.
Fork of moter_titech by
Diff: main.cpp
- Revision:
- 11:5cd36eedffb3
- Parent:
- 10:808032cf71b0
--- 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");
