mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 00:05:22 +03:00
More Clear
This commit is contained in:
parent
c2d8d7225e
commit
46e3f51d2b
1 changed files with 2 additions and 6 deletions
|
@ -181,12 +181,8 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
antiGravitySwitch.change(function() {
|
||||
var checked = $(this).is(':checked');
|
||||
if (checked) {
|
||||
let itermAcceleratorGain = ADVANCED_TUNING.itermAcceleratorGain / 1000;
|
||||
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
|
||||
itermAcceleratorGain = Math.max(itermAcceleratorGain, 3.5);
|
||||
} else {
|
||||
itermAcceleratorGain = Math.max(itermAcceleratorGain, 1.1);
|
||||
}
|
||||
const MAX_ACCELERATOR_GAIN = semver.gte(CONFIG.apiVersion, "1.43.0") ? 3.5 : 1.1;
|
||||
const itermAcceleratorGain = Math.max(ADVANCED_TUNING.itermAcceleratorGain / 1000, MAX_ACCELERATOR_GAIN);
|
||||
$('.antigravity input[name="itermAcceleratorGain"]').val(itermAcceleratorGain);
|
||||
$('.antigravity .suboption').show();
|
||||
if (ADVANCED_TUNING.antiGravityMode == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue