motor and servo indicators will now have tooltip containing signal length in us

10.3.x-maintenance
cTn 2014-08-16 00:16:28 +02:00 committed by Dominic Clifton
parent 51ef74fadf
commit c2bd737362
1 changed files with 2 additions and 0 deletions

View File

@ -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)'});
}
}