a
Dependencies: Locate Move Servo button mbed
Fork of 3rdcompfixstart by
main.cpp@5:97d9a34e5016, 2016-09-03 (annotated)
- Committer:
- sakanakuuun
- Date:
- Sat Sep 03 10:53:43 2016 +0000
- Revision:
- 5:97d9a34e5016
- Parent:
- 4:1604d599d40f
- Child:
- 6:931d51a70200
ju;
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(); |
sakanakuuun | 5:97d9a34e5016 | 10 | |
sakanakuuun | 5:97d9a34e5016 | 11 | pmovex(900); |
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 | int main(){ |
choutin | 3:56b034c41dc5 | 21 | setup(); |
choutin | 3:56b034c41dc5 | 22 | initmotor(); |
choutin | 3:56b034c41dc5 | 23 | |
choutin | 3:56b034c41dc5 | 24 | for(int i=0; i < 4; i++) |
choutin | 3:56b034c41dc5 | 25 | { |
choutin | 3:56b034c41dc5 | 26 | movelength(1200); |
choutin | 3:56b034c41dc5 | 27 | turnccw(); |
choutin | 3:56b034c41dc5 | 28 | } |
sakanakuuun | 4:1604d599d40f | 29 | }*/ |