1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 07:45:29 +03:00

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

This commit is contained in:
cTn 2014-08-16 00:16:28 +02:00 committed by Dominic Clifton
parent 51ef74fadf
commit c2bd737362

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