motor and servo indicators will now have tooltip containing signal length in us
parent
14bb0b5dca
commit
80e60d5638
|
@ -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)'});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue