a
Dependencies: Locate Move Servo button mbed
Fork of 4thcomp by
main.cpp@8:21f40f92215f, 2016-09-06 (annotated)
- Committer:
- sakanakuuun
- Date:
- Tue Sep 06 09:31:30 2016 +0000
- Revision:
- 8:21f40f92215f
- Parent:
- 7:43692ae2d20a
- Child:
- 9:94aa6a12b730
ss
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 | 6:931d51a70200 | 10 | |
sakanakuuun | 6:931d51a70200 | 11 | wait(1); |
sakanakuuun | 8:21f40f92215f | 12 | |
sakanakuuun | 8:21f40f92215f | 13 | pmove(600, 0); |
sakanakuuun | 8:21f40f92215f | 14 | |
sakanakuuun | 8:21f40f92215f | 15 | back(300, 0); |
sakanakuuun | 8:21f40f92215f | 16 | |
sakanakuuun | 4:1604d599d40f | 17 | while(1) { |
sakanakuuun | 4:1604d599d40f | 18 | update(); |
choutin | 3:56b034c41dc5 | 19 | } |
choutin | 3:56b034c41dc5 | 20 | } |