未完成
Dependencies: linemiconget petbottle_Loadin5port Kinect OmniPosition PID QEI led R1307 S-ShapeModel SerialMultiByte TFmini fep2 ikarashiMDC linesSnsor omni_wheel solenoid_valve
main.cpp@2:c501f6845500, 2018-10-16 (annotated)
- Committer:
- tanabe2000
- Date:
- Tue Oct 16 03:32:37 2018 +0000
- Revision:
- 2:c501f6845500
- Parent:
- 0:7822f4172b0c
2018 NHK auto A team
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 | 2:c501f6845500 | 10 | DigitalIn toggle(PC_3); |
tanabe2000 | 0:7822f4172b0c | 11 | |
tanabe2000 | 0:7822f4172b0c | 12 | int main() |
tanabe2000 | 0:7822f4172b0c | 13 | { |
tanabe2000 | 2:c501f6845500 | 14 | toggle.mode(PullUp); |
tanabe2000 | 0:7822f4172b0c | 15 | while(1) { |
tanabe2000 | 2:c501f6845500 | 16 | gakugaku.botConfirm();//いじるな |
tanabe2000 | 0:7822f4172b0c | 17 | |
tanabe2000 | 2:c501f6845500 | 18 | // gakugaku.autoMode1();//赤 |
tanabe2000 | 2:c501f6845500 | 19 | gakugaku.autoMode2();//青 |
tanabe2000 | 2:c501f6845500 | 20 | |
tanabe2000 | 0:7822f4172b0c | 21 | |
tanabe2000 | 2:c501f6845500 | 22 | } |
tanabe2000 | 0:7822f4172b0c | 23 | |
tanabe2000 | 0:7822f4172b0c | 24 | } |