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

Adding Motor Output Limit and cellcount

Fix cell count min

Move tootltip`icons

Cosmetic changes
This commit is contained in:
Asizon 2020-02-28 10:05:16 +01:00 committed by mikeller
parent 0a3a9625b1
commit 7e9cebfbf3
5 changed files with 71 additions and 0 deletions

View file

@ -1142,6 +1142,11 @@ MspHelper.prototype.process_data = function(dataHandler) {
if(semver.gte(CONFIG.apiVersion, "1.42.0")) {
ADVANCED_TUNING.itermRelaxCutoff = data.readU8();
if(semver.gte(CONFIG.apiVersion, "1.43.0")) {
ADVANCED_TUNING.motorOutputLimit = data.readU8();
ADVANCED_TUNING.autoProfileCellCount = data.readU8();
}
}
}
}
@ -2071,6 +2076,11 @@ MspHelper.prototype.crunch = function(code) {
if(semver.gte(CONFIG.apiVersion, "1.42.0")) {
buffer.push8(ADVANCED_TUNING.itermRelaxCutoff);
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
buffer.push8(ADVANCED_TUNING.motorOutputLimit)
.push8(ADVANCED_TUNING.autoProfileCellCount);
}
}
}
}