motor and servo indicators will now have tooltip containing signal length in us
parent
51ef74fadf
commit
c2bd737362
|
@ -347,6 +347,7 @@ TABS.motor_outputs.initialize = function (callback) {
|
||||||
var height = (data * (block_height / full_block_scale));
|
var height = (data * (block_height / full_block_scale));
|
||||||
var color = parseInt(data * 0.256);
|
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)'});
|
$('.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 height = (data * (block_height / 1000));
|
||||||
var color = parseInt(data * 0.256);
|
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)'});
|
$('.servo-' + i + ' .indicator').css({'margin-top' : margin_top + 'px', 'height' : height + 'px', 'background-color' : 'rgb(' + color + ',0,0)'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue