涼太郎 中村
/
9_6test
a
Fork of ARAI45th by
main.cpp@4:db36396371e0, 2016-09-03 (annotated)
- Committer:
- choutin
- Date:
- Sat Sep 03 06:29:49 2016 +0000
- Revision:
- 4:db36396371e0
- Parent:
- 3:56b034c41dc5
a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sakanakuuun | 0:f12d257b587e | 1 | #include "mbed.h" |
sakanakuuun | 0:f12d257b587e | 2 | #include "locate.h" |
choutin | 3:56b034c41dc5 | 3 | #include "math.h" |
choutin | 4:db36396371e0 | 4 | #include "function.h" |
choutin | 3:56b034c41dc5 | 5 | |
choutin | 3:56b034c41dc5 | 6 | |
choutin | 3:56b034c41dc5 | 7 | |
choutin | 3:56b034c41dc5 | 8 | int main(){ |
choutin | 4:db36396371e0 | 9 | movelength(30); |
choutin | 4:db36396371e0 | 10 | while(1){ |
choutin | 4:db36396371e0 | 11 | open_arm(); |
choutin | 4:db36396371e0 | 12 | close_hand(); |
choutin | 4:db36396371e0 | 13 | movelength(1); |
choutin | 4:db36396371e0 | 14 | wait(1); |
choutin | 4:db36396371e0 | 15 | close_arm(); |
choutin | 4:db36396371e0 | 16 | open_hand(); |
choutin | 4:db36396371e0 | 17 | movelength(255); |
choutin | 4:db36396371e0 | 18 | wait(1); |
choutin | 4:db36396371e0 | 19 | } |
choutin | 4:db36396371e0 | 20 | return 0; |
choutin | 3:56b034c41dc5 | 21 | } |