commit d3d88e6df78025c8be470fe34cb0874ae0491e8c Author: jiacai_wang Date: Thu Aug 9 16:58:56 2018 +0800 Initial commit diff --git a/ToggleLight.php b/ToggleLight.php new file mode 100644 index 0000000..551981f --- /dev/null +++ b/ToggleLight.php @@ -0,0 +1,8 @@ + diff --git a/b.php b/b.php new file mode 100644 index 0000000..00a40ec --- /dev/null +++ b/b.php @@ -0,0 +1,5 @@ + diff --git a/caml.php b/caml.php new file mode 100644 index 0000000..7264831 --- /dev/null +++ b/caml.php @@ -0,0 +1,3 @@ + diff --git a/camm.php b/camm.php new file mode 100644 index 0000000..80e4855 --- /dev/null +++ b/camm.php @@ -0,0 +1,3 @@ + diff --git a/camr.php b/camr.php new file mode 100644 index 0000000..6b039c6 --- /dev/null +++ b/camr.php @@ -0,0 +1,3 @@ + diff --git a/car.php b/car.php new file mode 100644 index 0000000..62ba3a6 --- /dev/null +++ b/car.php @@ -0,0 +1,116 @@ + + + + + + +我的监控小车 + + + + + + + +

我的监控小车红红火火恍恍惚惚哈哈哈哈

+

TODO:

+
    +
  1. 摄像头推流到web页面
  2. +
  3. 降低画面延时  3s不能再少了。。  菜鸡,没那个能力。
  4. +
  5. 页面鉴权??  懒得要死鉴个鸡毛
  6. +
  7. 加上音频采集  不加了,又要买usb麦
  8. +
  9. 造个小车
  10. +
  11. 树莓派GPIO控制小车马达转动
  12. +
  13. 实现web控制
  14. +
+

注:因页面有几秒延时(内网3s,外网7s左右),前进后退动作只持续0.3s

+
+


+ +

看什么看,摄像头还没有开启呢😜

+ + + +
+ + + + +
+ +

行驶方向:

+左转 +略左 +直行 +略右 +右转 +

摄像头方向:

+左 +中 +右 +
+ + + + + +
+
+

Created by wjc.

+ + diff --git a/f.php b/f.php new file mode 100644 index 0000000..2fc4b9a --- /dev/null +++ b/f.php @@ -0,0 +1,5 @@ + diff --git a/l.php b/l.php new file mode 100644 index 0000000..9905031 --- /dev/null +++ b/l.php @@ -0,0 +1,3 @@ + diff --git a/ll.php b/ll.php new file mode 100644 index 0000000..8cc1340 --- /dev/null +++ b/ll.php @@ -0,0 +1,3 @@ + diff --git a/movement.js b/movement.js new file mode 100644 index 0000000..456ef6c --- /dev/null +++ b/movement.js @@ -0,0 +1,71 @@ + var xml; + function ToggleLight() + { + xml=new XMLHttpRequest(); + xml.open("GET","./ToggleLight.php",false); + xml.send(); + var result=xml.responseText; + var btn=document.getElementById("light"); + if(result=="0") btn.innerHTML="开灯"; + else btn.innerHTML="关灯"; + } + function Forward() + { + xml=new XMLHttpRequest(); + xml.open("GET","./f.php",false); + xml.send(); + } + function Backward() + { + xml=new XMLHttpRequest(); + xml.open("GET","./b.php",false); + xml.send(); + } + function Straight() + { + xml=new XMLHttpRequest(); + xml.open("GET","./s.php",false); + xml.send(); + } + function Left() + { + xml=new XMLHttpRequest(); + xml.open("GET","./l.php",false); + xml.send(); + } + function Right() + { + xml=new XMLHttpRequest(); + xml.open("GET","./r.php",false); + xml.send(); + } + function LeftLeft() + { + xml=new XMLHttpRequest(); + xml.open("GET","./ll.php",false); + xml.send(); + } + function RightRight() + { + xml=new XMLHttpRequest(); + xml.open("GET","./rr.php",false); + xml.send(); + } + function CamMiddle() + { + xml=new XMLHttpRequest(); + xml.open("GET","./camm.php",false); + xml.send(); + } + function CamLeft() + { + xml=new XMLHttpRequest(); + xml.open("GET","./caml.php",false); + xml.send(); + } + function CamRight() + { + xml=new XMLHttpRequest(); + xml.open("GET","./camr.php",false); + xml.send(); + } diff --git a/r.php b/r.php new file mode 100644 index 0000000..ada0a96 --- /dev/null +++ b/r.php @@ -0,0 +1,3 @@ + diff --git a/rr.php b/rr.php new file mode 100644 index 0000000..66d47e4 --- /dev/null +++ b/rr.php @@ -0,0 +1,3 @@ + diff --git a/s.php b/s.php new file mode 100644 index 0000000..15bbcb6 --- /dev/null +++ b/s.php @@ -0,0 +1,3 @@ +