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

Fixed variable declaration

This commit is contained in:
fgiudice98 2020-03-10 15:25:18 +01:00
parent 70a8364e5c
commit 054b1ee73a

View file

@ -2335,7 +2335,7 @@ TABS.pid_tuning.updatePIDColors = function(clear = false) {
}; };
TABS.pid_tuning.changeRatesType = function(rateTypeID) { TABS.pid_tuning.changeRatesType = function(rateTypeID) {
let self = this; const self = this;
const dialogRatesType = $('.dialogRatesType')[0]; const dialogRatesType = $('.dialogRatesType')[0];
let sameRatesType = true; let sameRatesType = true;
@ -2366,11 +2366,13 @@ TABS.pid_tuning.changeRatesType = function(rateTypeID) {
}; };
TABS.pid_tuning.changeRatesSystem = function(sameType) { TABS.pid_tuning.changeRatesSystem = function(sameType) {
let self = this; const self = this;
let rcRateMax = 2.55, rcRateMin = 0.01, rcRateStep = 0.01; let rcRateMax = 2.55, rcRateMin = 0.01, rcRateStep = 0.01;
let rateMax = 1.0, rateMin = 0, rateStep = 0.01; let rateMax = 1.0, rateStep = 0.01;
let expoMax = 1.0, expoMin = 0, expoStep = 0.01; let expoMax = 1.0, expoStep = 0.01;
const rateMin = 0;
const expoMin = 0;
const pitch_rate_e = $('.pid_tuning input[name="pitch_rate"]'); const pitch_rate_e = $('.pid_tuning input[name="pitch_rate"]');
const roll_rate_e = $('.pid_tuning input[name="roll_rate"]'); const roll_rate_e = $('.pid_tuning input[name="roll_rate"]');
@ -2515,7 +2517,7 @@ TABS.pid_tuning.changeRatesSystem = function(sameType) {
}; };
TABS.pid_tuning.changeRatesTypeLogo = function() { TABS.pid_tuning.changeRatesTypeLogo = function() {
let self = this; const self = this;
const ratesLogoElement = $('.rates_type img[id="ratesLogo"]'); const ratesLogoElement = $('.rates_type img[id="ratesLogo"]');