Octopus!!

Dependencies:   2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel

Fork of KANIv3 by NagaokaRoboticsClub_mbedTeam

Committer:
number_key
Date:
Mon Nov 13 17:34:01 2017 +0900
Revision:
51:64534e908d5c
Parent:
50:3a7c858aa0f9
Backout changeset 3a7c858aa0f973d081ff06fd37568bbd511ebbf8

Who changed what in which revision?

UserRevisionLine numberNew 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
number_key 49:69a7235d837a 5 Bot OCTOPUS;
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");
number_key 49:69a7235d837a 13 OCTOPUS.confirmPad1();
number_key 51:64534e908d5c 14 //OCTOPUS.confirmPad2();
number_key 51:64534e908d5c 15 OCTOPUS.controllDrive();
number_key 51:64534e908d5c 16 //OCTOPUS.controllDrive2();
number_key 49:69a7235d837a 17 // OCTOPUS.controllDrive3();
number_key 49:69a7235d837a 18 //OCTOPUS.controllDrive4();
number_key 49:69a7235d837a 19 OCTOPUS.controllMech();
number_key 49:69a7235d837a 20 //OCTOPUS.calibrate();
number_key 49:69a7235d837a 21 //OCTOPUS.checkConnection();
number_key 49:69a7235d837a 22 //OCTOPUS.checkDegree();
number_key 51:64534e908d5c 23 wait(INTERVAL);
uchitake 1:845af5425eec 24 }
uchitake 1:845af5425eec 25 }