-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow control of the ignition from the web interfaces
- Loading branch information
Showing
5 changed files
with
169 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,76 @@ | ||
<!-- Raspberry Tank Web UI, February 2013, by Ian Renton. Released under the BSD licence. --> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<head> | ||
<title>Raspberry Tank</title> | ||
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script> | ||
<script type="text/javascript" src="../js/mjpg-streamer.js"></script> | ||
<script type="text/javascript" src="../js/javascript.js"></script> | ||
</head> | ||
<body onload="load()"> | ||
<div style="width:1250px; margin:0 auto;"> | ||
<table border="0"><tr><td> | ||
<div id="webcam" style="width:640px;height:480px;background-color:gray;"> | ||
</div> | ||
</td><td> | ||
<table border="0" style="width:600px;height:600px;margin: 0 auto;"> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('turret_left', true);" onmouseup="set('turret_left', false);" > | ||
<img src="../img/turret-left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('forward', true);" onmouseup="set('forward', false);" > | ||
<img src="../img/forward.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('turret_right', true);" onmouseup="set('turret_right', false);" > | ||
<img src="../img/turret-right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('left', true);" onmouseup="set('left', false);" > | ||
<img src="../img/left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="stop();"> | ||
<img src="../img/stop.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('right', true);" onmouseup="set('right', false);" > | ||
<img src="../img/right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('turret_elev', true);" onmouseup="set('turret_elev', false);"> | ||
<img src="../img/turret-elev.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('reverse', true);" onmouseup="set('reverse', false);" > | ||
<img src="../img/reverse.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('fire', true);" onmouseup="set('fire', false);" > | ||
<img src="../img/fire.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr><td colspan="3"><h3><center>Autonomy <span class="autonomystate">OFF</span>. <a href="#" onclick="toggleAutonomy()"><span class="autonomybutton">Switch ON</span></a></center></td></tr> | ||
</table> | ||
</td></tr> | ||
<tr><td colspan="2"><div class="data"></div></td></tr></table> | ||
</div> | ||
</body> | ||
</html> | ||
<!-- Raspberry Tank Web UI, February 2013, by Ian Renton. Released into public domain without licence. --> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<head> | ||
<title>Raspberry Tank</title> | ||
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script> | ||
<script type="text/javascript" src="../js/mjpg-streamer.js"></script> | ||
<script type="text/javascript" src="../js/javascript.js"></script> | ||
</head> | ||
<body onload="load()"> | ||
<div style="width:1250px; margin:0 auto;"> | ||
<table border="0"><tr><td> | ||
<div id="webcam" style="width:640px;height:480px;background-color:gray;"> | ||
</div> | ||
</td><td> | ||
<table border="0" style="width:600px;height:600px;margin: 0 auto;"> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('turret_left', true);" onmouseup="set('turret_left', false);" > | ||
<img src="../img/turret-left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('forward', true);" onmouseup="set('forward', false);" > | ||
<img src="../img/forward.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('turret_right', true);" onmouseup="set('turret_right', false);" > | ||
<img src="../img/turret-right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('left', true);" onmouseup="set('left', false);" > | ||
<img src="../img/left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="stop();"> | ||
<img src="../img/stop.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('right', true);" onmouseup="set('right', false);" > | ||
<img src="../img/right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('turret_elev', true);" onmouseup="set('turret_elev', false);"> | ||
<img src="../img/turret-elev.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('reverse', true);" onmouseup="set('reverse', false);" > | ||
<img src="../img/reverse.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onmousedown="set('fire', true);" onmouseup="set('fire', false);" > | ||
<img src="../img/fire.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr><td colspan="1"><h3><center><a href="#" onmousedown="set('ignition', true);" onmouseup="set('ignition', false);" >Ignition | ||
</a></center></td><td colspan="2"><h3><center>Autonomy <span class="autonomystate">OFF</span>. <a href="#" onclick="toggleAutonomy()"><span class="autonomybutton">Switch ON</span></a></center></td></tr> | ||
</table> | ||
</td></tr> | ||
<tr><td colspan="2"><div class="data"></div></td></tr></table> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,73 @@ | ||
<!-- Raspberry Tank Web UI, February 2013, by Ian Renton. Released under the BSD licence. --> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<head> | ||
<title>Raspberry Tank - Touch Interface</title> | ||
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script> | ||
<script type="text/javascript" src="../js/mjpg-streamer.js"></script> | ||
<script type="text/javascript" src="../js/javascript.js"></script> | ||
</head> | ||
<body onload="load()"> | ||
<div style="width:640px;margin:0 auto;"> | ||
<div id="webcam" style="width:640px;height:480px;background-color:gray;"> | ||
</div> | ||
<table border="0" style="width:600px;height:600px;margin: 0 auto;"> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('turret_left', true);" > | ||
<img src="../img/turret-left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('forward', true);" > | ||
<img src="../img/forward.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('turret_right', true);" > | ||
<img src="../img/turret-right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('left', true);" > | ||
<img src="../img/left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="stop();" > | ||
<img src="../img/stop.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('right', true);" > | ||
<img src="../img/right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('turret_elev', true);"> | ||
<img src="../img/turret-elev.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('reverse', true);" > | ||
<img src="../img/reverse.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('fire', true);" > | ||
<img src="../img/fire.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr><td colspan="3"><h3><center>Autonomy <span class="autonomystate">OFF</span>. <a href="#" onclick="toggleAutonomy()"><span class="autonomybutton">Switch ON</span></a></center></td></tr> | ||
<tr><td colspan="3"><div class="data"></div></td></tr> | ||
</table> | ||
</div> | ||
</body> | ||
</html> | ||
<!-- Raspberry Tank Web UI, February 2013, by Ian Renton. Released into public domain without licence. --> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<head> | ||
<title>Raspberry Tank - Touch Interface</title> | ||
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script> | ||
<script type="text/javascript" src="../js/mjpg-streamer.js"></script> | ||
<script type="text/javascript" src="../js/javascript.js"></script> | ||
</head> | ||
<body onload="load()"> | ||
<div style="width:640px;margin:0 auto;"> | ||
<div id="webcam" style="width:640px;height:480px;background-color:gray;"> | ||
</div> | ||
<table border="0" style="width:600px;height:600px;margin: 0 auto;"> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('turret_left', true);" > | ||
<img src="../img/turret-left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('forward', true);" > | ||
<img src="../img/forward.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('turret_right', true);" > | ||
<img src="../img/turret-right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('left', true);" > | ||
<img src="../img/left.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="stop();" > | ||
<img src="../img/stop.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('right', true);" > | ||
<img src="../img/right.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr height="33%"> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('turret_elev', true);"> | ||
<img src="../img/turret-elev.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('reverse', true);" > | ||
<img src="../img/reverse.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
<td width="33%" style="text-align:center;"> | ||
<a href="#" onclick="set('fire', true);" > | ||
<img src="../img/fire.png" style="border:none;" /> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr><td colspan="1"><h3><center><a href="#" onmousedown="set('ignition', true);" onmouseup="set('ignition', false);" >Ignition | ||
</a></center></td><td colspan="2"><h3><center>Autonomy <span class="autonomystate">OFF</span>. <a href="#" onclick="toggleAutonomy()"><span class="autonomybutton">Switch ON</span></a></center></td></tr> | ||
<tr><td colspan="3"><div class="data"></div></td></tr> | ||
</table> | ||
</div> | ||
</body> | ||
</html> |