X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=www%2Findex.html;h=97428fe915329182ea9e77e270e2c5f7f64e0b60;hp=4e6b5650bc3225ea157c69a65d88365f7f2cce3e;hb=c8ec98bdd30f8e533da331fe48742237ccc230d2;hpb=17c670f1932371d1b1ba431eb0f331507445023e diff --git a/www/index.html b/www/index.html index 4e6b565..97428fe 100644 --- a/www/index.html +++ b/www/index.html @@ -6,373 +6,105 @@ + - - - + + + + + + + + + + + + - $('.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}} +
+
-
+

Power

- -
- -
- V -
-
- -
- -
- A -
-
+ +

Sensors

- -
- -
- lx -
-
- -
- -
- -
-
- -
- -
- % -
-
- -
- -
- kPa -
-
- - + + + + +
-
+
- - - - +
- - +
- - - - +
- - +
- - - - +
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
+ + + + +
@@ -381,16 +113,24 @@
- - - - - - - - - - - + +