![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LUIS
main.cpp@0:fcc396b03bbe, 2018-10-05 (annotated)
- Committer:
- pirottealex
- Date:
- Fri Oct 05 14:55:14 2018 +0000
- Revision:
- 0:fcc396b03bbe
a;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pirottealex | 0:fcc396b03bbe | 1 | #include "mbed.h" |
pirottealex | 0:fcc396b03bbe | 2 | #include "fct.h" |
pirottealex | 0:fcc396b03bbe | 3 | #define LAVABRE 5 |
pirottealex | 0:fcc396b03bbe | 4 | |
pirottealex | 0:fcc396b03bbe | 5 | int main() { |
pirottealex | 0:fcc396b03bbe | 6 | |
pirottealex | 0:fcc396b03bbe | 7 | init(); |
pirottealex | 0:fcc396b03bbe | 8 | wait(LAVABRE); |
pirottealex | 0:fcc396b03bbe | 9 | Timer t1; |
pirottealex | 0:fcc396b03bbe | 10 | t1.start(); |
pirottealex | 0:fcc396b03bbe | 11 | int count=0; |
pirottealex | 0:fcc396b03bbe | 12 | while(count<5) |
pirottealex | 0:fcc396b03bbe | 13 | { |
pirottealex | 0:fcc396b03bbe | 14 | pc.printf("TOUR %0.3f\n\r",t1.read()); |
pirottealex | 0:fcc396b03bbe | 15 | t1.reset(); |
pirottealex | 0:fcc396b03bbe | 16 | get_position(); |
pirottealex | 0:fcc396b03bbe | 17 | wait(2); |
pirottealex | 0:fcc396b03bbe | 18 | count++; |
pirottealex | 0:fcc396b03bbe | 19 | } |
pirottealex | 0:fcc396b03bbe | 20 | } |
pirottealex | 0:fcc396b03bbe | 21 | |
pirottealex | 0:fcc396b03bbe | 22 | |
pirottealex | 0:fcc396b03bbe | 23 | |
pirottealex | 0:fcc396b03bbe | 24 |