未完成
Dependencies: linemiconget petbottle_Loadin5port Kinect OmniPosition PID QEI led R1307 S-ShapeModel SerialMultiByte TFmini fep2 ikarashiMDC linesSnsor omni_wheel solenoid_valve
main.cpp@0:7822f4172b0c, 2018-10-12 (annotated)
- Committer:
- tanabe2000
- Date:
- Fri Oct 12 04:40:56 2018 +0000
- Revision:
- 0:7822f4172b0c
- Child:
- 2:c501f6845500
????????;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tanabe2000 | 0:7822f4172b0c | 1 | #include "mbed.h" |
tanabe2000 | 0:7822f4172b0c | 2 | #include "pin_config.h" |
tanabe2000 | 0:7822f4172b0c | 3 | #include "gakubot.h" |
tanabe2000 | 0:7822f4172b0c | 4 | //#include "petbottleLoading.h" |
tanabe2000 | 0:7822f4172b0c | 5 | |
tanabe2000 | 0:7822f4172b0c | 6 | GakuBot gakugaku; |
tanabe2000 | 0:7822f4172b0c | 7 | //petbottleLoading loading; |
tanabe2000 | 0:7822f4172b0c | 8 | Serial pc(USBTX, USBRX, 115200); |
tanabe2000 | 0:7822f4172b0c | 9 | Timer mainT; |
tanabe2000 | 0:7822f4172b0c | 10 | |
tanabe2000 | 0:7822f4172b0c | 11 | int main() |
tanabe2000 | 0:7822f4172b0c | 12 | { |
tanabe2000 | 0:7822f4172b0c | 13 | // mainT.start(); |
tanabe2000 | 0:7822f4172b0c | 14 | while(1) { |
tanabe2000 | 0:7822f4172b0c | 15 | // mainT.reset(); |
tanabe2000 | 0:7822f4172b0c | 16 | // pc.printf("%f\r\n",mainT.read()); |
tanabe2000 | 0:7822f4172b0c | 17 | gakugaku.botConfirm(); |
tanabe2000 | 0:7822f4172b0c | 18 | // gakugaku.controllerMode1(); |
tanabe2000 | 0:7822f4172b0c | 19 | // gakugaku.controllMech1(); |
tanabe2000 | 0:7822f4172b0c | 20 | gakugaku.autoMode1(); |
tanabe2000 | 0:7822f4172b0c | 21 | // wait(0.01); |
tanabe2000 | 0:7822f4172b0c | 22 | |
tanabe2000 | 0:7822f4172b0c | 23 | |
tanabe2000 | 0:7822f4172b0c | 24 | // loading.petbottlemode(); |
tanabe2000 | 0:7822f4172b0c | 25 | |
tanabe2000 | 0:7822f4172b0c | 26 | } |
tanabe2000 | 0:7822f4172b0c | 27 | |
tanabe2000 | 0:7822f4172b0c | 28 | } |