mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Merge pull request #1921 from Asizon/AGGainDefaultFix
AG Gain default value to 3.5
This commit is contained in:
commit
78878b9320
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ TABS.pid_tuning.initialize = function (callback) {
|
||||||
antiGravitySwitch.change(function() {
|
antiGravitySwitch.change(function() {
|
||||||
var checked = $(this).is(':checked');
|
var checked = $(this).is(':checked');
|
||||||
if (checked) {
|
if (checked) {
|
||||||
$('.antigravity input[name="itermAcceleratorGain"]').val(Math.max(ADVANCED_TUNING.itermAcceleratorGain / 1000, 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();
|
$('.antigravity .suboption').show();
|
||||||
if (ADVANCED_TUNING.antiGravityMode == 0) {
|
if (ADVANCED_TUNING.antiGravityMode == 0) {
|
||||||
$('.antigravity .antiGravityThres').hide();
|
$('.antigravity .antiGravityThres').hide();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue