diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ee9dca5c..4ea6f908 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1810,5 +1810,11 @@ }, "pidTuningTPABreakPointHelp": { "message": "Throttle PID Attenuation begins when Throttle position exceeds this value. " + }, + "configurationAsyncMode": { + "message": "Asynchronous mode" + }, + "configurationGyroFrequencyTitle": { + "message": "Gyroscope frequency" } } diff --git a/js/fc.js b/js/fc.js index 21efd57a..833a817e 100644 --- a/js/fc.js +++ b/js/fc.js @@ -407,6 +407,31 @@ var FC = { } }; }, + getGyroFrequencies: function () { + return { + 125: { + defaultLooptime: 1000, + looptimes: { + 4000: "250Hz", + 3000: "334Hz", + 2000: "500Hz", + 1500: "667Hz", + 1000: "1kHz", + 500: "2kHz", + 250: "4kHz", + 125: "8kHz" + } + }, + 1000: { + defaultLooptime: 1000, + looptimes: { + 4000: "250Hz", + 2000: "500Hz", + 1000: "1kHz" + } + } + }; + }, getGyroLpfValues: function () { return [ { @@ -564,6 +589,12 @@ var FC = { 200: "200Hz", 400: "400Hz" }; + }, + getAsyncModes: function () { + return [ + 'Disabled', + 'Gyro', + 'All' + ] } - }; diff --git a/tabs/configuration.css b/tabs/configuration.css index 3757fafd..8e3447c8 100644 --- a/tabs/configuration.css +++ b/tabs/configuration.css @@ -203,6 +203,7 @@ .tab-configuration .number, .tab-configuration .select, +.tab-configuration .checkbox, hr { margin-bottom: 5px; @@ -214,7 +215,8 @@ hr } .tab-configuration .number:last-child, -.tab-configuration .select:last-child { +.tab-configuration .select:last-child, +.tab-configuration .checkbox:last-child{ border-bottom: none; padding-bottom: 0; margin-bottom: 0; diff --git a/tabs/configuration.html b/tabs/configuration.html index 335c5ae4..37ee4c56 100644 --- a/tabs/configuration.html +++ b/tabs/configuration.html @@ -193,15 +193,24 @@
-
-
- -
-