Statistics: Posted by Alan — Mon Apr 28, 2014 7:25 pm
webSocketURL = "http://" + window.location.hostname + "/robot_control";
cameraURL = "http://" + window.location.hostname + ":8080/?action=stream";
socket = new SockJS( webSocketURL );
$("#camera").attr( "src", cameraURL );
$('#motor_stick').joystick({
xSnap: true,
ySnap: true,
moveEvent: function(pos) {
if ( socket.readyState == SockJS.OPEN ) {
socket.send( "Move " + pos.x + " " + pos.y ); } },
endEvent: function(pos) {
if ( socket.readyState == SockJS.OPEN ) {
socket.send( "Move " + pos.x + " " + pos.y ); } }
Statistics: Posted by jarrah — Mon Apr 28, 2014 6:18 pm
Statistics: Posted by jarrah — Mon Apr 28, 2014 9:57 am
Statistics: Posted by Alan — Sun Apr 27, 2014 9:05 pm
Statistics: Posted by jarrah — Sun Apr 27, 2014 12:53 pm
Statistics: Posted by jarrah — Sat Apr 26, 2014 6:17 pm
Statistics: Posted by Alan — Sat Apr 26, 2014 5:49 pm
Statistics: Posted by Alan — Sat Apr 26, 2014 5:38 pm
Statistics: Posted by jarrah — Sat Apr 26, 2014 5:26 pm
Statistics: Posted by jarrah — Fri Apr 25, 2014 4:57 pm