Octopus!!

Dependencies:   2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel

Fork of KANIv3 by NagaokaRoboticsClub_mbedTeam

Committer:
number_key
Date:
Sat Nov 11 17:40:10 2017 +0900
Revision:
49:69a7235d837a
Parent:
43:c659cd5baa14
Child:
50:3a7c858aa0f9
save

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 49:69a7235d837a 14 //OCTOPUS.confirmPad2();
number_key 49:69a7235d837a 15 OCTOPUS.controllDrive();
number_key 49:69a7235d837a 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();
uchitake 1:845af5425eec 23 wait(INTERVAL);
uchitake 1:845af5425eec 24 }
uchitake 1:845af5425eec 25 }