mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
AG Gain default value to 3.5
add msp rule Improving function
This commit is contained in:
parent
559f126210
commit
c2d8d7225e
1 changed files with 7 additions and 1 deletions
|
@ -181,7 +181,13 @@ 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));
|
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);
|
||||||
|
}
|
||||||
|
$('.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