Octopus!!
Dependencies: 2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel
Fork of KANIv3 by
main.cpp@23:797d25f3df5e, 2017-10-01 (annotated)
- Committer:
- takeuchi
- Date:
- Sun Oct 01 11:43:53 2017 +0900
- Branch:
- develop1
- Revision:
- 23:797d25f3df5e
- Parent:
- 17:79fa65706f92
fix inheritance problem
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 | pc.printf("const\n\r"); |
uchitake |
1:845af5425eec | 11 | while(1) { |
UCHITAKE |
15:9aa11febe517 | 12 | printf("loop\n\r"); |
uchitake |
1:845af5425eec | 13 | KANI.confirmAll(); |
takeuchi |
23:797d25f3df5e | 14 | KANI.controllDrive(); |
uchitake |
1:845af5425eec | 15 | KANI.controllMech(); |
uchitake |
3:369d9ee17e84 | 16 | KANI.calibrate(); |
uchitake |
1:845af5425eec | 17 | wait(INTERVAL); |
uchitake |
1:845af5425eec | 18 | } |
uchitake |
1:845af5425eec | 19 | } |