mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Motor reorder and direction dialogs: hardcode throttle value to 6% for spinning
This commit is contained in:
parent
83b2846a1d
commit
f8fbf69e6e
1 changed files with 3 additions and 2 deletions
|
@ -1148,10 +1148,11 @@ TABS.motors.initialize = function (callback) {
|
||||||
function setup_motor_output_reordering_dialog(callbackFunction, zeroThrottleValue)
|
function setup_motor_output_reordering_dialog(callbackFunction, zeroThrottleValue)
|
||||||
{
|
{
|
||||||
const domDialogMotorOutputReorder = $('#dialogMotorOutputReorder');
|
const domDialogMotorOutputReorder = $('#dialogMotorOutputReorder');
|
||||||
|
const idleThrottleValue = zeroThrottleValue + 60;
|
||||||
|
|
||||||
const motorOutputReorderComponent = new MotorOutputReorderComponent($('#dialogMotorOutputReorderContent'),
|
const motorOutputReorderComponent = new MotorOutputReorderComponent($('#dialogMotorOutputReorderContent'),
|
||||||
callbackFunction, mixerList[FC.MIXER_CONFIG.mixer - 1].name,
|
callbackFunction, mixerList[FC.MIXER_CONFIG.mixer - 1].name,
|
||||||
zeroThrottleValue, zeroThrottleValue + 200);
|
zeroThrottleValue, idleThrottleValue);
|
||||||
|
|
||||||
$('#dialogMotorOutputReorder-closebtn').click(closeDialogMotorOutputReorder);
|
$('#dialogMotorOutputReorder-closebtn').click(closeDialogMotorOutputReorder);
|
||||||
|
|
||||||
|
@ -1180,7 +1181,7 @@ TABS.motors.initialize = function (callback) {
|
||||||
{
|
{
|
||||||
const domEscDshotDirectionDialog = $('#escDshotDirectionDialog');
|
const domEscDshotDirectionDialog = $('#escDshotDirectionDialog');
|
||||||
|
|
||||||
const idleThrottleValue = zeroThrottleValue + FC.PID_ADVANCED_CONFIG.digitalIdlePercent * 1000 / 100;
|
const idleThrottleValue = zeroThrottleValue + 60;
|
||||||
|
|
||||||
const motorConfig = {
|
const motorConfig = {
|
||||||
numberOfMotors: self.numberOfValidOutputs,
|
numberOfMotors: self.numberOfValidOutputs,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue