From 80e60d5638c9f5f3fa02e134f02a800310597661 Mon Sep 17 00:00:00 2001 From: cTn Date: Sat, 16 Aug 2014 00:16:28 +0200 Subject: [PATCH] motor and servo indicators will now have tooltip containing signal length in us --- tabs/motor_outputs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabs/motor_outputs.js b/tabs/motor_outputs.js index 2e26bc62..7cbe962c 100644 --- a/tabs/motor_outputs.js +++ b/tabs/motor_outputs.js @@ -347,6 +347,7 @@ TABS.motor_outputs.initialize = function (callback) { var height = (data * (block_height / full_block_scale)); var color = parseInt(data * 0.256); + $('.motor-' + i).prop('title', MOTOR_DATA[i] + ' us'); $('.motor-' + i + ' .indicator').css({'margin-top' : margin_top + 'px', 'height' : height + 'px', 'background-color' : 'rgb(' + color + ',0,0)'}); } @@ -357,6 +358,7 @@ TABS.motor_outputs.initialize = function (callback) { var height = (data * (block_height / 1000)); var color = parseInt(data * 0.256); + $('.servo-' + i).prop('title', SERVO_DATA[i] + ' us'); $('.servo-' + i + ' .indicator').css({'margin-top' : margin_top + 'px', 'height' : height + 'px', 'background-color' : 'rgb(' + color + ',0,0)'}); } }