X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=www%2Findex.html;h=e9e23f672d195fb4fd94cc798953fd7a760a3143;hp=4e6b5650bc3225ea157c69a65d88365f7f2cce3e;hb=5d2b909797fd168b0981af8f4570d608a9a32626;hpb=17c670f1932371d1b1ba431eb0f331507445023e diff --git a/www/index.html b/www/index.html index 4e6b565..e9e23f6 100644 --- a/www/index.html +++ b/www/index.html @@ -6,226 +6,30 @@ + - - - + + + + + + + + + + + + - $('.cmd_vel_circle') - .bind('mousedown touchstart', function(e) { - isDragging = true; - }) - .bind('mouseup touchend mouseleave', function(e) { - isDragging = false; - setSpeed(0, 0); - }) - .bind('mousemove touchmove', function(e) { - if (isDragging) { - // absolute click position - var X,Y; - if (e.originalEvent.touches) { - X = e.originalEvent.touches[0].pageX; - Y = e.originalEvent.touches[0].pageY; - } else { - X = e.pageX; - Y = e.pageY; - } - // relative click position - var Xrel = X - this.offsetLeft - $(this).width()/2; - var Yrel = Y - this.offsetTop - $(this).height()/2; - // scale to -1..+1 - var trans = -Yrel / ($(this).height()/2); - var rot = -Xrel / ($(this).width()/2); - setSpeed(trans, rot*3); - } - }); - } - Wild Thumper control
+
+ {{alert.message}} +
@@ -358,7 +162,7 @@
- +
@@ -381,16 +185,5 @@
- - - - - - - - - - -