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.
Diff: main.cpp
- Revision:
- 2:ea39c24e77b2
- Parent:
- 1:293b11fbc576
- Child:
- 3:f99d3703a6d9
--- a/main.cpp Sun Nov 10 10:22:43 2019 +0000
+++ b/main.cpp Wed Dec 04 13:03:51 2019 +0000
@@ -5,40 +5,36 @@
TB6612 motor2(p23,p28,p27); //pwmb,BIN1,BIN2,can brake//
int main() {
- motor1=100; //移動最初1000㎜直進
- motor2=100;
- wait(6);
+ wait(10);
+ motor1=20;
+ motor2=20;
+ wait(10);
+ motor1=0;
+ motor2=0;
+ motor1=40;
+ motor2=40;
+ wait(10);
+ motor1=0;
+ motor2=0;
+ motor1=60;
+ motor2=60;
+ wait(10);
+ motor1=0;
+ motor2=0;
+ motor1=80;
+ motor2=80;
+ wait(10);
+ motor1=0;
+ motor2=0;
+ motor1=80;
+ motor2=80;
+ wait(10);
+ motor1=0;
+ motor2=0;
motor1=100;
motor2=100;
- //nichrome2();
- //drill_spinner();
- //seed_spinner();
- //splash();
- motor1=100; //200mm直進する
- motor2=100;
- wait(12);
+ wait(10);
motor1=0;
- motor2=0; //耕し終了
- //nichrome3();
- motor1=50; //100mm直進する
- motor2=50;
- wait(6);
- motor1=50; //90°左旋回
motor2=0;
- wait(2);
- motor1=50; //200mm直進する
- motor2=50;
- wait(12);
- motor1=50; //90°左旋回
- motor2=0;
- wait(2);
- motor1=50; //300mm直進する
- motor2=50;
- wait(18);
- motor1=50; //90°左旋回
- motor2=0;
- //camera on
-
-
}