1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 04:45:20 +03:00

Add Dynamic Notch Max Hz

Remove white spaces

Remove white space2

Revert and add suggested changes

Some cosmetic changes

MinHz Changes

Fix MinHz Max
This commit is contained in:
Asizon 2020-02-05 12:11:02 +01:00
parent 2925646d82
commit e3041286a3
5 changed files with 39 additions and 2 deletions

View file

@ -1078,6 +1078,9 @@ MspHelper.prototype.process_data = function(dataHandler) {
FILTER_CONFIG.gyro_rpm_notch_harmonics = data.readU8();
FILTER_CONFIG.gyro_rpm_notch_min_hz = data.readU8();
}
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
FILTER_CONFIG.dyn_notch_max_hz = data.readU16();
}
}
}
}
@ -2007,6 +2010,9 @@ MspHelper.prototype.crunch = function(code) {
.push8(FILTER_CONFIG.gyro_rpm_notch_harmonics)
.push8(FILTER_CONFIG.gyro_rpm_notch_min_hz);
}
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
buffer.push16(FILTER_CONFIG.dyn_notch_max_hz);
}
}
break;
case MSPCodes.MSP_SET_PID_ADVANCED: