Skip to content

Commit

Permalink
Constrain rates minimum setting (#3124)
Browse files Browse the repository at this point in the history
Constrain rates minumum setting
  • Loading branch information
haslinghuis authored Dec 8, 2022
1 parent 29593ec commit 402b732
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/tabs/pid_tuning.js
Original file line number Diff line number Diff line change
Expand Up @@ -3042,7 +3042,7 @@ pid_tuning.changeRatesSystem = function(sameType) {
let rcRateMax = 2.55, rcRateMin = 0.01, rcRateStep = 0.01;
let rateMax = 1.0, rateStep = 0.01;
let expoMax = 1.0, expoStep = 0.01;
const rateMin = 0;
let rateMin = 0;
const expoMin = 0;

const pitch_rate_e = $('.pid_tuning input[name="pitch_rate"]');
Expand Down Expand Up @@ -3120,6 +3120,7 @@ pid_tuning.changeRatesSystem = function(sameType) {
rateLabel.text(i18n.getMessage("pidTuningRateQuickRates"));
rcExpoLabel.text(i18n.getMessage("pidTuningRcExpoRaceflight"));

rateMin = 10;
rateMax = 2000;
rateStep = 10;
rcRateMax = 2000;
Expand Down Expand Up @@ -3150,6 +3151,7 @@ pid_tuning.changeRatesSystem = function(sameType) {
rateLabel.text(i18n.getMessage("pidTuningRateQuickRates"));
rcExpoLabel.text(i18n.getMessage("pidTuningRcExpoRaceflight"));

rateMin = 10;
rateMax = 2000;
rateStep = 10;

Expand Down

0 comments on commit 402b732

Please sign in to comment.