Merge pull request #2770 from limonspb/motor_dialogs_fix

Motor reorder and direction dialogs: hardcode throttle value to 6%
10.8-maintenance
Asizon 2022-01-27 07:43:02 +01:00 committed by GitHub
commit b14107822d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1148,10 +1148,11 @@ TABS.motors.initialize = function (callback) {
function setup_motor_output_reordering_dialog(callbackFunction, zeroThrottleValue)
{
const domDialogMotorOutputReorder = $('#dialogMotorOutputReorder');
const idleThrottleValue = zeroThrottleValue + 60;
const motorOutputReorderComponent = new MotorOutputReorderComponent($('#dialogMotorOutputReorderContent'),
callbackFunction, mixerList[FC.MIXER_CONFIG.mixer - 1].name,
zeroThrottleValue, zeroThrottleValue + 200);
zeroThrottleValue, idleThrottleValue);
$('#dialogMotorOutputReorder-closebtn').click(closeDialogMotorOutputReorder);
@ -1180,7 +1181,7 @@ TABS.motors.initialize = function (callback) {
{
const domEscDshotDirectionDialog = $('#escDshotDirectionDialog');
const idleThrottleValue = zeroThrottleValue + FC.PID_ADVANCED_CONFIG.digitalIdlePercent * 1000 / 100;
const idleThrottleValue = zeroThrottleValue + 60;
const motorConfig = {
numberOfMotors: self.numberOfValidOutputs,