1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 13:25:24 +03:00

Merge pull request #1951 from Asizon/slidersPidDefaults

Improved version PID defaults Sliders reading
This commit is contained in:
Michael Keller 2020-04-11 13:14:53 +12:00 committed by GitHub
commit 4624a030d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -697,6 +697,13 @@ var FC = {
getPidDefaults: function() {
var versionPidDefaults = DEFAULT_PIDS;
// if defaults change they should go here
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
versionPidDefaults = [
42, 85, 35, 23, 90,
46, 90, 38, 25, 95,
30, 90, 0, 0, 90,
];
}
return versionPidDefaults;
},
};