a
Dependencies: Locate Move Servo button mbed
Fork of 3rdcompfixstart by
main.cpp@4:1604d599d40f, 2016-09-02 (annotated)
- Committer:
- sakanakuuun
- Date:
- Fri Sep 02 12:41:13 2016 +0000
- Revision:
- 4:1604d599d40f
- Parent:
- 3:56b034c41dc5
- Child:
- 5:97d9a34e5016
fs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sakanakuuun | 0:f12d257b587e | 1 | #include "mbed.h" |
choutin | 3:56b034c41dc5 | 2 | #include "math.h" |
sakanakuuun | 4:1604d599d40f | 3 | #include "locate.h" |
sakanakuuun | 4:1604d599d40f | 4 | #include "move.h" |
choutin | 3:56b034c41dc5 | 5 | |
sakanakuuun | 4:1604d599d40f | 6 | int main() |
sakanakuuun | 4:1604d599d40f | 7 | { |
sakanakuuun | 4:1604d599d40f | 8 | setup(); |
sakanakuuun | 4:1604d599d40f | 9 | initmotor(); |
choutin | 3:56b034c41dc5 | 10 | |
sakanakuuun | 4:1604d599d40f | 11 | turn_ccw(); |
choutin | 3:56b034c41dc5 | 12 | |
sakanakuuun | 4:1604d599d40f | 13 | while(1) { |
sakanakuuun | 4:1604d599d40f | 14 | update(); |
choutin | 3:56b034c41dc5 | 15 | } |
choutin | 3:56b034c41dc5 | 16 | } |
choutin | 3:56b034c41dc5 | 17 | |
choutin | 3:56b034c41dc5 | 18 | |
choutin | 3:56b034c41dc5 | 19 | |
choutin | 3:56b034c41dc5 | 20 | |
choutin | 3:56b034c41dc5 | 21 | /* |
choutin | 3:56b034c41dc5 | 22 | int main(){ |
choutin | 3:56b034c41dc5 | 23 | setup(); |
choutin | 3:56b034c41dc5 | 24 | initmotor(); |
choutin | 3:56b034c41dc5 | 25 | |
choutin | 3:56b034c41dc5 | 26 | for(int i=0; i < 4; i++) |
choutin | 3:56b034c41dc5 | 27 | { |
choutin | 3:56b034c41dc5 | 28 | movelength(1200); |
choutin | 3:56b034c41dc5 | 29 | turnccw(); |
choutin | 3:56b034c41dc5 | 30 | } |
sakanakuuun | 4:1604d599d40f | 31 | }*/ |