Constrain rates minimum setting (#3124)

Constrain rates minumum setting
10.9-maintenance
haslinghuis 2022-12-08 02:21:13 +01:00 committed by GitHub
parent 29593eccbb
commit 402b7323a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -3042,7 +3042,7 @@ pid_tuning.changeRatesSystem = function(sameType) {
let rcRateMax = 2.55, rcRateMin = 0.01, rcRateStep = 0.01; let rcRateMax = 2.55, rcRateMin = 0.01, rcRateStep = 0.01;
let rateMax = 1.0, rateStep = 0.01; let rateMax = 1.0, rateStep = 0.01;
let expoMax = 1.0, expoStep = 0.01; let expoMax = 1.0, expoStep = 0.01;
const rateMin = 0; let rateMin = 0;
const expoMin = 0; const expoMin = 0;
const pitch_rate_e = $('.pid_tuning input[name="pitch_rate"]'); const pitch_rate_e = $('.pid_tuning input[name="pitch_rate"]');
@ -3120,6 +3120,7 @@ pid_tuning.changeRatesSystem = function(sameType) {
rateLabel.text(i18n.getMessage("pidTuningRateQuickRates")); rateLabel.text(i18n.getMessage("pidTuningRateQuickRates"));
rcExpoLabel.text(i18n.getMessage("pidTuningRcExpoRaceflight")); rcExpoLabel.text(i18n.getMessage("pidTuningRcExpoRaceflight"));
rateMin = 10;
rateMax = 2000; rateMax = 2000;
rateStep = 10; rateStep = 10;
rcRateMax = 2000; rcRateMax = 2000;
@ -3150,6 +3151,7 @@ pid_tuning.changeRatesSystem = function(sameType) {
rateLabel.text(i18n.getMessage("pidTuningRateQuickRates")); rateLabel.text(i18n.getMessage("pidTuningRateQuickRates"));
rcExpoLabel.text(i18n.getMessage("pidTuningRcExpoRaceflight")); rcExpoLabel.text(i18n.getMessage("pidTuningRcExpoRaceflight"));
rateMin = 10;
rateMax = 2000; rateMax = 2000;
rateStep = 10; rateStep = 10;