Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 2017NHKpin_config FEP omni_wheel PID R1307 ikarashiMDC
main.cpp@1:845af5425eec, 2017-09-05 (annotated)
- Committer:
- uchitake
- Date:
- Tue Sep 05 16:11:20 2017 +0900
- Revision:
- 1:845af5425eec
- Child:
- 3:369d9ee17e84
mbed-os5
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uchitake |
1:845af5425eec | 1 | #include "mbed.h" |
uchitake |
1:845af5425eec | 2 | #include "pin_config.h" |
uchitake |
1:845af5425eec | 3 | #include "bot.h" |
uchitake |
1:845af5425eec | 4 | |
uchitake |
1:845af5425eec | 5 | Bot KANI; |
uchitake |
1:845af5425eec | 6 | Serial pc(USBTX, USBRX, 115200); |
uchitake |
1:845af5425eec | 7 | |
uchitake |
1:845af5425eec | 8 | int main() |
uchitake |
1:845af5425eec | 9 | { |
uchitake |
1:845af5425eec | 10 | int i = 0; |
uchitake |
1:845af5425eec | 11 | pc.printf("const\n\r"); |
uchitake |
1:845af5425eec | 12 | while(1) { |
uchitake |
1:845af5425eec | 13 | KANI.confirmAll(); |
uchitake |
1:845af5425eec | 14 | KANI.controllDrive(); |
uchitake |
1:845af5425eec | 15 | KANI.controllMech(); |
uchitake |
1:845af5425eec | 16 | wait(INTERVAL); |
uchitake |
1:845af5425eec | 17 | pc.printf("%d\n\r", i++); |
uchitake |
1:845af5425eec | 18 | } |
uchitake |
1:845af5425eec | 19 | } |