2018F3RC3班
/
f3rc_3_auto_encode
f3rc 3班のエンコーダのプログラムです。
Diff: main.cpp
- Revision:
- 3:f3ef2e7a9407
- Parent:
- 2:a682612dd8b7
- Child:
- 4:dfb5f4860097
diff -r a682612dd8b7 -r f3ef2e7a9407 main.cpp --- a/main.cpp Mon Sep 03 13:38:27 2018 +0000 +++ b/main.cpp Tue Sep 04 03:35:45 2018 +0000 @@ -41,7 +41,7 @@ } /*後退用*/ -void straight(int l) //l=移動距離(mm) +void back(int l) //l=移動距離(mm) { mortor1.period_us(50); mortor2.period_us(50); @@ -59,7 +59,7 @@ } /*右回転*/ -void straight(int l) //l=ecの移動距離(mm) +void right(int l) //l=ecの移動距離(mm) { mortor1.period_us(50); mortor2.period_us(50); @@ -77,7 +77,7 @@ } /*左回転*/ -void straight(int l) //l=ecの移動距離(mm) +void left(int l) //l=ecの移動距離(mm) { mortor1.period_us(50); mortor2.period_us(50); @@ -92,4 +92,7 @@ motor1cw = ; motor2cw = ; } -} \ No newline at end of file +} + +int main(){ + \ No newline at end of file