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

AG Gain default value to 3.5

add msp rule

Improving function
This commit is contained in:
Asizon 2020-03-16 13:00:36 +01:00
parent 559f126210
commit c2d8d7225e

View file

@ -181,7 +181,13 @@ TABS.pid_tuning.initialize = function (callback) {
antiGravitySwitch.change(function() {
var checked = $(this).is(':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();
if (ADVANCED_TUNING.antiGravityMode == 0) {
$('.antigravity .antiGravityThres').hide();