motor test

Dependencies:   omni_wheel PID jy901 solenoid aqm0802 camera beep kohiMD linesSnsor lpf RCJESC

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Thu Jan 30 15:45:14 2020 +0000
Commit message:
a

Changed in this revision

Robot.lib Show annotated file Show diff for this revision Revisions of this file
lib/HCSR04.lib Show annotated file Show diff for this revision Revisions of this file
lib/PID.lib Show annotated file Show diff for this revision Revisions of this file
lib/RCJESC.lib Show annotated file Show diff for this revision Revisions of this file
lib/aqm0802.lib Show annotated file Show diff for this revision Revisions of this file
lib/beep.lib Show annotated file Show diff for this revision Revisions of this file
lib/camera.lib Show annotated file Show diff for this revision Revisions of this file
lib/jy901.lib Show annotated file Show diff for this revision Revisions of this file
lib/kohiMD.lib Show annotated file Show diff for this revision Revisions of this file
lib/lineSensor.lib Show annotated file Show diff for this revision Revisions of this file
lib/lpf.lib Show annotated file Show diff for this revision Revisions of this file
lib/omni_wheel.lib Show annotated file Show diff for this revision Revisions of this file
lib/solenoid.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 072b6518ad9a Robot.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/HCSR04.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/PID.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/RCJESC.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/aqm0802.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/beep.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/camera.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/jy901.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/kohiMD.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/lineSensor.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/lpf.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/omni_wheel.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a lib/solenoid.lib
--- /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
diff -r 000000000000 -r 072b6518ad9a main.cpp
--- /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
diff -r 000000000000 -r 072b6518ad9a mbed-os.lib
--- /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