motor test
Dependencies: omni_wheel PID jy901 solenoid aqm0802 camera beep kohiMD linesSnsor lpf RCJESC
Revision 0:072b6518ad9a, committed 2020-01-30
- Comitter:
- piroro4560
- Date:
- Thu Jan 30 15:45:14 2020 +0000
- Commit message:
- a
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Robot.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/Robot/#2f13b9af324f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/HCSR04.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/piroro4560/code/HCSR04/#600abd132df5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/PID.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/aberk/code/PID/#6e12a3e5af19
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/RCJESC.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/RCJESC/#a25bbbe058b4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/aqm0802.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/piroro4560/code/aqm0802/#f86833c58a5f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/beep.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/beep/#dbb0f89dc4cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/camera.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/camera/#12ef615ee47f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/jy901.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Cat_Bot/code/jy901/#a93909601341
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/kohiMD.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/kohiMD/#87d96da7a474
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/lineSensor.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/linesSnsor/#058a2a20c0d1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/lpf.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/lpf/#f252bd51e899
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/omni_wheel.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +http://os.mbed.com/teams/NHK-Robocon2016_Nagaoka_B_Team/code/omni_wheel/#cfec945ea421
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/solenoid.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/Quadrifoglio/code/solenoid/#028d1164ff74
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,48 @@ +#include "mbed.h" +#include "robot.h" +#include "sensorGen.h" +#include "aqm0802.h" +#include "beep.h" + +sensor sensor; +robot robo; + +int main() { + const bool test = true; + while(1) { + if (!test) //test + { + if () //白線踏んでない + { + if () //ボール持ってない + { + if () //ボール見えてる -> chaseBall + { + robo.chaseBall( , ); + } + else //ボールみえてない -> searchBall + { + robo.searchBall(); + } + } + else //ボール持ってる + { + if () //ゴール見える -> moveGoal + { + robo.moveGoal(); + } + else //ゴール見えない -> detour + { + robo.detour(); + } + } + } + else //踏んだ + { + + } + } else { + test(); + } + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Thu Jan 30 15:45:14 2020 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#430e64fce8098fd5e54f6de32f3f029f35dc705f