-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcamara.html
108 lines (94 loc) · 2.92 KB
/
camara.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<head>
</head>
<style>
body {background-color: lightyellow}
h1 {color:blue}
button {
color: blue;
background:lightgrey;
border: 1px solid #000;
border-radius: 8px;
position: center;
}
</style>
<body>
<div style="text-align:center">
<h1> MJRoBot RPi Web Robot Control <img style="height: 100px"src="/images/robot52.png"> </h1>
<br><br>
<iframe src="http://ENTER_YOUR_IP_HERE:9000/javascript_simple.html" frameborder="0" align="middle" width="640" height="480" align="middle" scrolling="no"></iframe>
<br><br>
<span style="display:inline-block;padding:5px;border:1px solid #fc0; font-size: 140%;font-weight: bold;">
<p>Camera Tilt Angle</p>
<img hspace="18" style="padding-left: 5px">
<button style="height: 50px; width: 100px; font-size: 25px" onclick="downtilt()">-D</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="downcentertilt()">D</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="centertilt()">0</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="upcentertilt()">U</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="uptilt()">U+</button>
<img hspace="18" style="padding-left: 5px">
<br><br>
<p>Camera Pan Position</p>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="leftpan()">+L</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="leftCenterPan()">L</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="centerpan()">0</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="rightCenterPan()">R</button>
<button style="height: 50px; width: 100px; font-size: 25px" onclick="rightpan()">R+</button>
<p></p>
</span>
<script>
var xmlhttp;
xmlhttp=new XMLHttpRequest();
function downtilt()
{
xmlhttp.open("GET","cgi-bin/downtilt.cgi",true);
xmlhttp.send();
}
function downcentertilt()
{
xmlhttp.open("GET","cgi-bin/downcentertilt.cgi",true);
xmlhttp.send();
}
function centertilt()
{
xmlhttp.open("GET","cgi-bin/centertilt.cgi",true);
xmlhttp.send();
}
function upcentertilt()
{
xmlhttp.open("GET","cgi-bin/upcentertilt.cgi",true);
xmlhttp.send();
}
function uptilt()
{
xmlhttp.open("GET","cgi-bin/uptilt.cgi",true);
xmlhttp.send();
}
function leftpan()
{
xmlhttp.open("GET","cgi-bin/leftpan.cgi",true);
xmlhttp.send();
}
function leftCenterPan()
{
xmlhttp.open("GET","cgi-bin/leftCenterPan.cgi",true);
xmlhttp.send();
}
function centerpan()
{
xmlhttp.open("GET","cgi-bin/centerpan.cgi",true);
xmlhttp.send();
}
function rightCenterPan()
{
xmlhttp.open("GET","cgi-bin/rightCenterPan.cgi",true);
xmlhttp.send();
}
function rightpan()
{
xmlhttp.open("GET","cgi-bin/rightpan.cgi",true);
xmlhttp.send();
}
</script>
</body>
</html>